As far as I know, new ticks are ignored if the start function has not completed it execution, so I am not sure this is your problem.
That's really good. Where can I read about this?
Read about the special function start() -> https://book.mql4.com/programm/special. Quoting:
Slava: Divide by zero in the EA stops your EA permanently. See https://docs.mql4.com/runtime/errors
in my case i want to turn off or terminate ea from continuing trading after reaching certain point.
if(AccontEquity() < (amountdeposited -( amountdeposite x 0.2)))
turn off ea
else if(AccontEquity() > (amountdeposited -( amountdeposite x 0.2)))
please help fix this. thanks in advance.
Do not double post!
I have deleted your other topic.
Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.