OK, it works with visualization ON, and on normal graph.
So the problem is probably that graph isn't created in moment of creating object. Solutions?
![Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types](/i/community/logo_mql5_small.png)
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
- www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5
graziani:
Yes, read the documentation OK, it works with visualization ON, and on normal graph.
So the problem is probably that graph isn't created in moment of creating object. Solutions?
![](https://c.mql5.com/3/20/wink__11.gif)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
i miss those SL/TP markers on backtest graphs, anybody has a code how to draw it?
Tried like this, but nothing happens, although it works in simple loop: