咨詢(xún)內(nèi)容:p:=26;s:=12;m:=9;atrm:=20; multipler:=10;pp:=NUMTOSTR(p,0);ss:=NUMTOSTR(s,0);mm:=NUMTOSTR(m,0);atrmm:=NUMTOSTR(atrm,0);macd:=stkindi('','macd.macd1('&pp&','&ss&','&mm&')',21,75);diff:=stkindi('','macd.diff('&pp&','&ss&','&mm&')',21,75);atr:=stkindi('','atr.atr('&atrmm&')',21,75); if cross(macd,0) and diff>=0.03 or (hhv(h,10)-LLV(l,10))>=0.15 then begin sellshort(1,0,market); buy(holding=0,1,market);endif cross(0,macd) and diff>=0.03 or (hhv(h,10)-LLV(l,10))>=0.15 then begin sell(1,0,market); buyshort(holding=0,1,market);end if openprofit/multipler>1.5*atr then begin sell(1,0,marketr); sellshort(1,0,market);endif openprofit<0 and abs(openprofit)/multipler>1.5*atr then begin sell(1,0,marketr); sellshort(1,0,market);end
金字塔客服:
cross(macd,0) and diff>=0.03 or (hhv(h,10)-LLV(l,10))>=0.15