hi :)
sorry 0(1)
the right condition is this:
condition1= len>len1 and len>len2 and len1>len2 ;
condition2=len<len1 and len<len2 and len1<len2;
condition3=H crosses over Highest(h,30);
condition4=L crosses under Lowest(l,30);
if condition1 and condition3 then buy next bar at market;
if...