I am working on a trading strategy using the Strategy Builder in NinjaTrader 8, and I've encountered a challenge that I hope you can help me with.
My strategy is set up to enter trades on a 5-minute chart, but I want to include a condition that involves the real-time value of a 50-period SMA from an hourly chart. The issue I'm facing is that my strategy seems to wait for the hourly bar to close before evaluating the condition, which is causing delays in trade entries.
Here's what I've done so far:
1. I've added a 60-minute data series in the Strategy Builder.
2. I've created a condition where the strategy should enter a long position when the close of the 5-minute bar is greater than the 50-period SMA of the 60-minute series.
3. The 'Bars ago' is set to '0' for the hourly SMA.
However, it appears that the strategy waits for the hourly bar to complete before checking this condition, and I would like it to use the latest available hourly SMA value instead of waiting for the bar to close.
I'm looking for a way to make the strategy evaluate the hourly SMA condition in real-time, on each 5-minute bar close, without having to wait for the hourly bar to finish. Is there a way to achieve this intra-bar evaluation using the Strategy Builder, or do I need to switch to custom NinjaScript coding for this functionality?
Any advice or guidance on how I can resolve this would be greatly appreciated.
Thank you in advance for your help!
Comment