input:m(14,2,100,10);
TYP := (HIGH + LOW + CLOSE)/3;
ccI:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
if c>ma(c,30) and c>stkindi(\'\',\'ma.ma1(30)\',0,6) and ccI<100 then buy(holding=0,1,marketr);
if c<enterprice-10 then sell(1,0,marketr);
if hhv(h,enterbars+1)>enterprice+10 and openprofit<hhv(openprofit,enterbars+1)*0.7 then sell(1,0,marketr);