I finally got this to compile, but it doesn't work.
if (CurrentBar > 1)
{
if (BarsArray[0].BarsPeriod.BarsPeriodType != BarsPeriodType.PointAndFigure)
{
throw new Exception("This strategy requires a Point and Figure chart. Please apply it to a PnF chart.");
}
}
Any help is appreciated.

Comment