Reply

Move StopLoss with IsBarOpenIsTrue

1 replies

Gustavo Carrano

Subscriber, bbp_participant, community, 16 replies.

Visit profile

8 years ago #113710

Hi Mark.

 

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)[0]) 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?

 

IF 
   IsBarOpen is True 
   Order Position ( 2 )  is Long
   BarsSinceOrderOpen ( 2 )  > 0
     
THEN
         Move Stop Loss to:
         Magic Number: 2
         Price: Lowest(4)[0]
 

 

My best regards

 

Gustavo

0

Gustavo Carrano

Subscriber, bbp_participant, community, 16 replies.

Visit profile

8 years ago #130461

Hi Mark.

 

I found the problem 🙂

 

Best regards

 

Gustavo

0

Viewing 1 replies (of 1 total)