unstable behavior of EA: how to prevent and fix ?
Please view the following code:
Explanation:
The above coding is for putting a BUYSTOP order if none placed before.
Output is ok in general, with the Buystopline and Buystop 's stoploss line presented on the chart.
But it 's not ok for all the time.
wow ! this is the first time I hear about this rule (count down).
Thank you for your useful information.
wow ! this is the first time I hear about this rule (count down).
Please view the following code:
Explanation:
The above coding is for putting a BUYSTOP order if none placed before.
Output is ok in general, with the Buystopline and Buystop 's stoploss line presented on the chart.
But it 's not ok for all the time.
Sometimes, the Buystop order is continuously deleted and recreated at every quote without tiny change on the order open price .
As consequence, the BS line and the BS 's SL line on the chart is flickering (blink) according to quotes
(And of course, the Order ticket of BS order shown in "Trade tab" of Terminal window keep changing at every code)
I doubt if there is some error like data overloaded or something like that.
If so, which Properties Directive statements would I use to prevent the EA from overloading ?
Thanks a lot