I'm using the standard Ninja Pivots indicator in one of my strategies and I'm getting weird (ie inconsistent) results with it. To illustrate the issue, I've created a very basic strategy that draws an UpArrow below a bar if its low is lower than Pivot Point S2 and if its high is above Pivot Point S2. This works well, but not always.
The code below should generate an UpArrow in the 6B 09-13 10 min bar chart today at 12:40 CET (and at a few other times later in the day) but it doesn't draw a single UpArrow, although the condition is clearly met (S2 is at 1.5306). Why?
Thanks a lot for any pointers.
if(Low[0] <= Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20).S2[0] && Close[0] >= Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20).S2[0])
{
DrawUpArrow("Long" + CurrentBar, false, 0, Low[0]- 3*(TickSize), Color.Green);
}
Comment