To keep things simple, let's say that I have an indicator (HiLoOpen attached below) that plots the average of the previous day high, the previous day low, and the current day open:
(High[1]+Low[1]+Open[0])/3
I would like to use a second indicator(HiLoOpenINTRADAY attached below) to plot this value as a horizontal line on an intraday minute chart.
Unfortunately, I have been unable to plot the horizontal line based on the previous day high, previous day low, and the current day open. Instead I am getting a horizontal line based on the previous minute high, previous minute low, and the current minute open.
I've looked through the NinjaTrader 8 help guide and studied the BarsPeriod function and found a reference sample that is similar to my objective (Synchronizing a DataSeries object to a secondary time frame -- http://ninjatrader.com/support/forum...ead.php?t=3572). I've also found other threads about secondary data series, but I seem to be missing part of the picture.
Using the GetDayBar() and CurrentDayOHL() functions is unfortunately not an option--the attached indicators are extremely simple and only for the sake of example; the actual indicators I will be using are far more complex and it would be impractical to use either the GetDayBar() or the CurrentDayOHL() functions.
There must be a way to reference the dataseries of another indicator in another timeframe.
If anyone has any ideas, any feedback would be great!
Comment