Block user to make him not allow to change chart, timeframe or EA parameters during part of the execution,
Alternatively, you could check the reason that OnDeInit() is being called and then avoid deleting objects if reason==REASON_CHARTCHANGE
honest_knave:
Alternatively, you could check the reason that OnDeInit() is being called and then avoid deleting objects if reason==REASON_CHARTCHANGE
Thank you for your answer, yes I will do that, but will have no effect of what Im trying to achieve, but thank you for your time anyway.
Greetings
BeLikewater

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
Dear Forum:
Im creating a martingale EA, using objects, so when you change timeframe, for example, OnDeiNit() function is called, but I have "delete object" in that part of the code. So Is there a way to block the user the ability to perform that actions? Changing timeframe, charts, etc....
Thank you