READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Is bar open function

1 replies

huangwh88

Customer, bbp_participant, community, sq-ultimate, 107 replies.

Visit profile

8 years ago #235353

Hello,

I want to code an EA that evaluates the market only at the close of each bar. If conditions are met, a market order is immediately opened.

1) Should I use the Is bar open function? Is bar close = bar open?

2) If the indicator shift = 1, does it refer to the bar that just closed, or the bar that just opened?

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #235381

Hello,

you can use “IsBarOpen is True” but also checking “evaluate rule on bar open only” will do the same job.

Condition will be evaluated as soon as last working bar closes. It becomes bar with shift = 1

0

Viewing 1 replies (of 1 total)