macd:=stkindi(\'\',\'macd.macd1\',0,datatype);
if l<ref(llv(l,20),1) and macd<0 and ref(macd,1)<0 and macd<ref(macd,1) then buy(1,1,market);