In Expert Advisors the special function start() is called (and
executed) immediately after a new tick comes. If a new tick has come
during the execution of the special function start(), this tick will be
ignored, i.e. the special function start() will not be called for
execution when such a tick comes.
So something else must be causing your CPU problems.
p.s. Why are u resurrecting threads that have nothing to do with your question? Start a new thread next time...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
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?
That's really good. Where can I read about this?
Read about the special function start() -> https://book.mql4.com/programm/special. Quoting:
p.s. Why are u resurrecting threads that have nothing to do with your question? Start a new thread next time...
Slava:
Divide by zero in the EA stops your EA permanently. See https://docs.mql4.com/runtime/errors
hello sir,
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)))
{
continue trading
}
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.
Use ExpertRemove().