I think you made a couple of mistakes probably.
First, you need to make series from priceClose().

vars Closes = series(priceClose());


if( NumOpenLong==0 and Closes[0]>Closes[1]) enterLong();
if( NumOpenShort==0 and Closes[0]<Closes[1]) enterShort();


I also commented line:

//plotWFOCycle(Equity,0);

And then, did traing and test and after that Zorro plotted me equity line.

Maybe it helps ?

Neb


Last edited by Neb; 03/27/21 21:36.