I have a trendline trader,needs some features added to it. i need it to perfom only one trade based on its magic number, since i use my trendline trader in several charts(currency pairs forex). for example if i have my trendline trader in many charts, as soon as one trade is triggered, all the rest of the trend trader lines on other charts wont trade even if they get triggered.,also added is an automatic stop loss and take profit that should be ordered automatically(just in case of power or network failure) i should be able to assign those values, i can have more than one magic number( changed manually) just in case i favor more than one trade. But not more than one trade per magic number. consider all the trendlines as pending orders, if one gets triggered, the rest gest cancelled(all those with the same magic number as the triggered or opened trade).