Opening Range Breakout Strategy per candle
-
Hi,
I've tried looking at previous forums with no success.Trying to create a basic Opening Range Breakout strategy on a single candle's range.
For example: I want to trade an ORB on the 16:30 candle. I've tried to make it a pending buy order at break of the high and a pending sell order at the break of the low with an OCO trading condition that cancels the opposite order if one is activated. I would like to setup this strategy for multiple specific candles (16:30 candle is just one example of multiple candles I will use this on) which I believe I can do in the future by just adding more Time Filter conditions like my current example. Also, I keep getting a zero divide error, and I'm not sure that I've constructed this in the best possible way. Any help is great appreciated for this simple concept to work successfully, thank you!
Shared project: https://fxdreema.com/shared/3WjG4q88e
-
@sauce What exactly is this not doing? You can use the on trade tab for when trade created to delete opposite pending. Personally I test each block to ensure it's doing as required so I know which block is likely to cause the problem, it's probably something simple like the time filter block.
-
@jstap It’s coming back with a divide zero error, is there a better way to filter time condition? Not sure why I get a zero calculation error. Thanks for your help!
-
@sauce This is one of those errors that comes up now and then, not sure why, Start a new project with something simple like draw arrow at set time, once this is working add to your EA.
-
I’ve tried multiple instruments and get this error. I’ve used the simple draw arrow idea before and I did work, but when actually taking trades this happens.
-
@sauce Now you need to strip back until you find the blocks responsible.
-
@jstap understood, that was my original question. I’m having trouble finding the error since it worked before with displaying arrows.
-
@sauce I am unsure then, process of elimination is your only option.
-
@jstap thanks for your help! I found that making one of the pending orders into an OCO itself and getting rid of the other trading action worked
-
@sauce Was going to suggest this I just didn't know if it would choose candle hi/lo for the oco order.
Glad you got it working. -
@jstap thanks again! would you mind looking into one more post I made for a different strategy? https://fxdreema.com/forum/topic/13820/heikin-ashi-as-a-line-color-change-custom-indicator-condition/2
