I'm trying to set up an indicator do show simply 1 or 0 in Market Analyzer if Close[0] is above or below the daily pivot point (mid point).
I'm using this:
{
if (Close[0]> Pivots(PivotRange.Daily,HLCCalculationMode.DailyBars,20).PP[0])
Plot0.Set(1);
else Plot0.Set(0);
}
Can anyone help me to identify what is wrong in this code?
Thanks in advance,
Rodrigo

Comment