Is bar open function
1 replies
huangwh88
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
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)