ORB Not Triggering Short Trades
-
Why is this only triggering long trades and not short trades? I have both longs and shorts setup the same.

-
The logic is correct. Is this the whole project or just part of it? Because the issue must be somewhere else.
-
This is the whole project. See attached

-
Market properties were used. I am afraid such properties are referring to the condition WHEN you are running the backtest.
That may be why any condition won't change throughout the backtest, and only one side (buy or sell) is run.
-
@xburbx said in ORB Not Triggering Short Trades:
Why is this only triggering long trades and not short trades? I have both longs and shorts setup the same.

You're asking at 9:30 to check the M30 high/low candlestick at the 9:30 timestamp. I think this is incorrect. At that time, the candlestick is starting, and the only available price is the M30 open price, so the ask price is always > , but the bid price is never < itself. I think you should check the 9:30 candlestick at 10:00 at least.
-
I adjusted to reflect the 10:00AM but it still isn't triggering any short trades?

-
I made some adjustments and found I could get shorts to fire but the trades seem to be executing on multiple 30M bars per today when there should only be 1 trade / day and on the first price over the high/low range.

-
@xburbx This is what I mean, starting from your initial project. Be careful when working with candlestick levels, as you'll often get invalid price or invalid stop-loss errors (your pending orders gave me those errors). For simplicity, I used pips.

-
-Thanks. I wouldn't use pips though for my stop loss/target on this. I would need it to work off of percentage of price for target and stop.
-For the 'once a day' tab you have 10:00-10:05. Does that mean it will only look for trades within that time period? The trade itself should be allowed to show up anytime up until 16:00.
-In your condition bar, the time stamp is 9:30. I thought it was based on the 10:00 as the ending bar range from 9:30-10?
-
@xburbx said in ORB Not Triggering Short Trades:
-Thanks. I wouldn't use pips though for my stop loss/target on this. I would need it to work off of percentage of price for target and stop. <<ok, pay attention for invalid price>>
-For the 'once a day' tab you have 10:00-10:05. Does that mean it will only look for trades within that time period? The trade itself should be allowed to show up anytime up until 16:00. <<you can extend the time range till 16:00>>
-In your condition bar, the time stamp is 9:30. I thought it was based on the 10:00 as the ending bar range from 9:30-10? <<yes because at 10:00 the M30 candle at 09:30 time stamp is completely formed, so you can check the high and low>>
-
Anyone? Looking to figure this out.
-
You are requesting to program the pending orders at the exact same time you are checking for both buy/sell conditions. This is why only buys are programmed, because that is the only condition that can be true. The sell condition cannot be true at that exact time. You need to check those conditions BEFORE the moment those conditios are checked, not at the exact one.