Originally Posted By: DMB
Programming error I don't understand. The two lines involved:

var BreakoutValue = 0.3 * (priceHigh(1)-priceLow(1));
...
plot("BreakoutValue",BreakoutValue,NEW,BLUE);

The error referring to the plot function:
'BreakoutValue' undeclared identifier

As far as I can tell I have declared it.


Everything seems fine with your example.

Carefully check in which line you got error, you might have accidentaly referenced BreakoutValue somewhere in the code where it's not yet declared (that is above the declaration). Unfortunately, Zorro is buggy, you have to search for the error one or two lines above the line number that Zorro reports.