Graphical Objects are not created on "symbols". They are created on "charts", irrespective of what symbol they may be displaying.
The object property "OBJPROP_SYMBOL" is not for that purpose, and its for the "OBJ_CHART" graphical object.
All your object creations are on the chart id 0, which is simply the current chart.
If you want to create the graphical objects in other charts, you need to identify the chart id of those charts and use that chart id when creating the objects.
You have asked this question before ... Creating objects on multiple charts
And you were given an answer ... https://www.mql5.com/en/forum/455871#comment_50234941
Why are you not applying it?
Creating objects on multiple charts
- 2023.10.17
- www.mql5.com
Hi Everyone, not entirely how this works since this is my first post:) Everything in this EA works fine, i tested it all multiple times...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi, i was wondering whether it is possible to create objects on multiple charts simultaneously in a backtest. The following code is obviously basic, I've made it simplier so i wouldn/t exceed character usage but its supposed to be able to identify types of candles and does so perfectly. However, despite only two symbols within the 'symbol_loop', the objects created will only create for just one symbol and timeframe, despite using two symbols and two timeframes. I've attached screenshots, the visualize backtest of EURUSD 1h works perfectly but the other charts look like the second screenshot of EURUSD 15m. I've tested the code, this has nothing to do with recognizing the candlesticks on different timeframes, simply an inability to create those objects for different charts. Can i fix this so that all symbols and timeframes considered will create objects for the chart as the EURUSD 1H example I've shown? And if so, how can that be achieved? I've also attached the settings I've used. Thanks for the help in advance!