coding; insertion of comma separated list of Magic Numbers (all together)
Of course, it's possible. Split the string (StringSplit) into elements, convert them to integers. For each one, do a OrderSelect loop.
You agree to website policy and terms of use
I have found an interesting indicator showing Breakeven level information for MT4.
The indicator displays the breakeven line in the form of a horizontal line on the chart of a currency pair; Sell and Buy separated and/or one line cumulative.
To calculate the breakeven line, open positions for this currency pair are taken.
I am asking if is it possible to evaluate not only one magic number, but a combination of Multiple Magic Numbers generating a cumulative breakeven line.
so from :
extern int MagicNumber = 123; // Evaluation only orders matching this magic number
to :
input string Magic_numbers = "12345,123456,327,67"; // comma separated list of Magic Numbers (evaluated all together)
Many thanks, greetings