相關標簽:考夫曼自適應均線,5種均線交易系統,期貨簡單均線交易系統,現貨均線交易系統,最好的均線交易系統,均線交易系統,外匯均線交易系統,最簡單均線交易系統,我的外匯均線交易系統,
模型策略源碼:runmode:0; input:length1(10,5,60,5); input:length2(5,5,60,5); ama:=md(close,length1); ama1:=ema(ama,length2); entrylongcond:=ref(cross(ama,ama1),1); entryshortcond:=ref(cross(ama1,ama),1); if holding=0 then begin if entrylongcond then buy(1,1,limitr,open); end if holding=0 then begin if entryshortcond then buyshort(1,1,limitr,open); end if holding>0 then begin if entryshortcond then begin sell(1,holding,limitr,open); buyshort(1,1,limitr,open); end end if holding<0 then begin if entrylongcond then begin sellshort(1,holding,limitr,open); buy(1,1,limitr,open); end end 盈虧:asset-50000,noaxis,colorred,linethick2; 點擊復制上述代碼粘貼到到公式管理器
{別忘了將本網告訴您身邊的朋友,向朋友傳達有用資料,也是一種人情,你朋友會感謝你的。}