BONUS and possibly more important question - Can anyone tell me why Zorro keeps entering at the Close instead of the red line which is the Dot11High on limit?

Quote:

function ChannelSwing()
{

vars Price = series(price());
vars High = series(priceHigh());
vars Low = series(priceLow());
vars Close = series(priceClose());

vars Dot11High = series((Close[0]+High[0]+Low[0])/3*2-Low[0]);

var shortentry = Dot11High[1];
var shortstop = 100*PIP;
var shorttarget = 100*PIP;


if(Dot11High[0] < Dot11High[1])
{
Entry = shortentry;
Stop = shortstop;
TakeProfit = shorttarget;
enterShort();
}

plot("Dot11High",Dot11High[1],0,RED);

}

function run()
{
set(LOGFILE+TICKS+PLOTNOW);
BarPeriod = 1440;
LookBack = 100;


NumYears = 2;
Weekend = 2;


while(asset(loop("EUR/USD")))
while(algo(loop("ChannelSwing")))
{
if(Algo == "ChannelSwing")
ChannelSwing();
}

PlotScale = -10;
PlotWidth = 2000;
PlotHeight1 = 500;

}