-
int start(){ return(0); }
Don't mix the event handlers. You should stop using the old event handlers and IndicatorCounted() and start using new event handlers.
Event Handling Functions - MQL4 Reference
How to do your lookbacks correctly - MQL4 programming forum #9-14 & #19 (2016) - Indicators go through a deinit/unload/load/init cycle. Check the UninitializeReason In deinit, save what you want (in a GV). In init, check and restore what you want.
- EAs don't unload; just save in a variable.

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
Good day, I need some help please. I want the button to stay the way it is when the time frame is changed.