I am calling the pivot point indicator from another indicator I have.
This is how I am calling it in my indicator
double temp =Pivots1(PivotRange.Daily,HLCCalculationMode.Daily Bars,0,0,0,0).GetVal();
Then I am immediately printing to the output window to check the val
Print ("Pivot is - "+temp);
This is the function I have added to the Piivot indicator to return the val
public double GetVal()
{
Update();
return (pp);
}
The strange thing is that on the first couple of returns, the value is "0" then after a tick it kicks in and returns correctly.
Can anyone shed some light on why it is returning "0" first even though i am updating?
Thanks for any help.
Comment