When I use a several pairs and run it in strategy tester, the two window will be created, EURUSD D1 and USDJPY D1:
MqlRates d1[];
ArraySetAsSeries(d1, true);
CopyRates("EURUSD", PERIOD_D1, 0, count_bars+1 ,d1);
MqlRates d2[];
ArraySetAsSeries(d2, true);
CopyRates("USDJPY", PERIOD_D1, 0, count_bars+1 ,d2);
How to get the ChartID for created windows ?
Thanks
Why do you assume that calling CopyRates should open charts for corresponding symbol in the tester? I don't think it works like this.
When I use a several pairs and run it in strategy tester, the two window will be created, EURUSD D1 and USDJPY D1:
MqlRates d1[];
ArraySetAsSeries(d1, true);
CopyRates("EURUSD", PERIOD_D1, 0, count_bars+1 ,d1);
MqlRates d2[];
ArraySetAsSeries(d2, true);
CopyRates("USDJPY", PERIOD_D1, 0, count_bars+1 ,d2);
How to get the ChartID for created windows ?
Thanks
I don't think you can. You only have access to the current chart (the one you set by choosing Symbol/Period in the Strategy Tester).
By the way, what to do ?
I don't think you can. You only have access to the current chart (the one you set by choosing Symbol/Period in the Strategy Tester).
By the way, what to do ?
sad.
i just want to draw my lines and texts on both charts.
Yes it is.
Any reference for this?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When I use a several pairs and run it in strategy tester, the two window will be created, EURUSD D1 and USDJPY D1:
How to get the ChartID for created windows ?
Thanks