Download MetaTrader 5
To add comments, please log in or register
They are already making profit using the Market. You can join them!
Luis
226
Luis 2015.02.17 16:38 

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

honest_knave
959
honest_knave 2015.02.17 17:29  

Alternatively, you could check the reason that OnDeInit() is being called and then avoid deleting objects if reason==REASON_CHARTCHANGE

Luis
226
Luis 2015.02.21 17:09  
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

/
To add comments, please log in or register