Operation to the opening of the candle not to the tick
-
Greetings. I have a doubt, I want to create an EA that opens the operations to the opening or closing of each candle but not on each tick. I appreciate if someone can guide me on this to know what block to use. Thanks in advance.
-
Once/ bar block is used for that .
If the block is used at the start of your following rows of blocks then it will take action at the beginning of each candle.
If used in the middle somewhere it will take action somewhere in the spand of a candle time if your other conditions are true .
-
In which event I put it On Init, On Timer or on Tick because I still understand if it goes on tick it runs on the first tick of the new candle but not the opening of the candle.
-
It goes under on tick , if used on top it will only activate once when a new candle opens , and only once . Then it wont check contiions at all until the next candle is opended, so it blocks everything else.
And if used below your main conditions and above buy/sell blocks it will check the conditions on every tick and when its true it will only pass once , and that can be anywere in the spand of the candle time, at the beggining middle or end of it .