Buy at 3min before the next 15min candle
-
I would like to know how one would build a simple EA that opens a trade i.e. buy at 3min before the next 15min candle.
example
Buy at every 12th min, every 27th min, every 42nd min and 57th min.
Target variable = If this variable is reached don't take trades for the rest of the day.
Thanks in advance.
-
@barenyb Hello,
I'm not sure I get the target variable part, but if you want to open a trade 3 mins before the close of a candle, maybe this will work?? you will need to test it out. Or in some cases you may need to place the strategy before the once per bas block.

-
Just a question will this work. This is on time function not on tick as there might not be ticks at the desired time.
I see there is second, third and forth periods that can be used in one block but not sure if im using them in the right way


-
The Target variable will be a input once this is reached don't take and more trades for the day.
-
@barenyb No. That will not work. All those time variables should be of a string type and then specifed like this: 00:04, 00:49, and so on.