Reply

Open Order X minutes after Daily Bar Open

2 replies

vabsie

Customer, bbp_participant, community, 14 replies.

Visit profile

6 years ago #113231

Hi Marc ..

 

I’m creating a strategy that needs to open an order about 5 minutes or so after the Daily candle has opened.

 

Sorry if this is a dumb question, but I can’t find exactly what I need in older threads.

 

My main problem is that some brokers have a 5 minute freeze on NY close … and I therefore want my EA to only assess the rules and open an order 5 minutes after the Daily candle has opened.

 

Is there an easy way to do this in EA Wizard?

 

Thank you.

 

Vabsie

0

Mark Fric

Administrator, sq-ultimate, 3 replies.

Visit profile

6 years ago #128574

if I understand you you want to trade on Daily timeframe, but you want top open trade 5 minutes after the open.

 

It is possible to do this. By default rules in EA are evaluated every tick, so it should be enough to add time condition to the rule, like;

 

IF

Hour = 0 and Minute = 5

and

… some other rules…

THEN

 

Just be aware that there could multiple ticks in one minute (even in one second) so you should probably use a variable to save information that the rule for given day was already triggered

and check this variable in IF condition to nottrigger it again.

Mark
StrategyQuant architect

0

vabsie

Customer, bbp_participant, community, 14 replies.

Visit profile

6 years ago #128576

Great thanks a lot Mark .. and sorry for spelling your name wrong in the above post!

 

Vabsie

0

Viewing 3 posts - 1 through 3 (of 3 total)