I'm trying to use Camarilla Pivots in my strategy, and I'm having a couple issues.
I'm using it like this:
CamarillaPivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20)
Core issue... I just get back 0 (zero) for S1[0], S2[0], R1[0], R2[0], etc.
The docs say to use ".Pp.IsValidDataPoint(0)" in order to "ensure you are accessing accurate values", but there is no ".Pp" definition available, or even a mention of what it is suppose to be checking (if it did exist).
For some background, my strategy is running on a 3min chart. I'm loading the daily series, if that makes a difference, with:
AddDataSeries(BarsPeriodType.Day, 1)
And I'm calling the CamarillaPivots() method in my OnBarUpdate() method, when BarsInProgress is the daily series, and when IsFirstTickOfBar is true. (Maybe one of these things is the issue???)
Thanks for any help!
Comment