ma10_60min:=STKINDI('','MA.MA1(10,16,20,60)',0,5);
ma16_60min:=STKINDI('','MA.MA2(10,16,20,60)',0,5);
ma10_30min:=STKINDI('','MA.MA1(10,12,20,60)',0,4);
ma12_30min:=STKINDI('','MA.MA2(10,12,20,60)',0,4);
if cross(ma10_60min,ma16_60min) then buy(holding=0,1,market);
if cross(ma10_30min,ma12_30min) then sell(1,0,market);