inputs:Standard(26);
inputs:Turning(9);
inputs:Delayed(52);

Vars:StandLine(0);
Vars:TurnLine(0);
Vars:Span1(0);
Vars:Span2(0);

StandLine = (Highest(High, Standard) + Lowest(Low, Standard))/2;
TurnLine  = (Highest(High, Turning) + Lowest(Low, Turning))/2;
Span1 = (StandLine + TurnLine)/2;
Span2 = (Highest(High, Delayed) + Lowest(Low, Delayed))/2;

plot1(StandLine,"Standard");
plot2(TurnLine,"Turning");
plot3[-25](Span1,"Span1");
plot4[-25](Span2,"Span2");
plot5[25](Close,"Delay");