condition1 = CurrentBar > 1 and close crosses over var0 ;
condition2 = CurrentBar > 1 and close crosses below var1 ;
if condition1 then Buy ( "BBandLE" ) next bar at var0 stop ;
if condition2 then SellShort ( "BBandSE" ) next bar at var1 stop ;
if marketposition=1 then sell next bar at lowest(low, ExitLen) stop;
if marketposition=-1 then buytocover next bar at highest(high, ExitLen) stop;
================================================