Sequence of rule execution
3件の返信
こんにちは,
Suppose we have a source code in the usual format:
Rule 1
—————–
Rule 2
—————-
Rule 3
When the EA is running in MT4, are the rules evaluated in this sequence?
For example, rule 1 is to enter a buy stop order, and rule 2 is to cancel the stop order. If both rules are true, is it possible for a buy stop to be created?
0
こんにちは,
in such case the stop order will be created and cancelled immediately. You need to add additional conditions to avoid that situation
0
こんにちは,
in such case the stop order will be created and cancelled immediately. You need to add additional conditions to avoid that situation
ありがとうございます、トマス。.
To clarify my understanding, when the EA is being read by MT4 from top to bottom,
Is every true condition executed immediately after being read?
Or does MT4 finish reading the entire EA, then all the true conditions are executed in one go?
0
Yes, once you drop it on a chart all conditions are evaluated
0
3件の返信を表示中 - 1 - 3件目 (全3件中)