I am examining the code of the PriorWeekOHLC indicator , as I found it on this forum (http://www.ninjatrader.com/support/f...php?linkid=540).
It is pretty straightforward, but the only thing I can't figure out is why it does'nt work on daily charts, even if I eliminate the intraday filter condition ( if(!Bars.BarsType.IsIntraday) return; .
I am sure I am missing something as the standard indicator PriorDayOHLC uses the same intraday filter condition. But why do we have to rule out Daily charts? As I work on DateTime objects to calculate next week start and then roll back currentOHLC to PreviousOHLC, should'nt it work in daily charts too? ... can you help?
Thanks
Andrea
Comment