When you post code please use the CODE button (Alt-S)!
It doesn't “grasp” anything. You paste your code into it. No next time. This time. Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
Messages Editor
Forum rules and recommendations - General - MQL5 programming forum (2023)
iTime(_Symbol, _Period, 0) won't give the correct time of the latest bar in OnCalculate. Use time[rates_total-1] instead.
Edit:
I'm fixing it for you
A mistake was made with ObjectSetString, the object name wasn't put in there. Some other adjustments needed as well.
A mistake was made with ObjectSetString, the object name wasn't put in there. Some other adjustments needed as well.
Thank you Conor it works now.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Trying to convert an mql4 to mql5 breakeven indicator but nothing is drawn on the chart.
My mql5 conversion
What is wrong ?