Today I noticed that the EA triggered my Stop Loss 3 min after the Bar had openned (this EA uses Range Bar). At the open of that bar the condition should not be triggered because my stop loss price was less than 50 pips from the market price. In other words, the Stop Loss (Lowest(4)) price at the open bar was the open price of the new bar. See rules bellow. What intrigged me was that 3 min after the bar opened the very first condition (IsBarOpenisTrue) was long gone!
Shouldn’t the IsBarOpenisTrue function be triggered only in the very first tick of the bar?IFIsBarOpen is TrueOrder Position ( 2 ) is LongBarsSinceOrderOpen ( 2 ) > 0THENMove Stop Loss to:Magic Number: 2Price: Lowest(4)
My best regards
You must be logged in to reply to this topic.