相关标签:考夫曼自适应均线,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; 点击复制上述代码粘贴到到公式管理器
{别忘了将本网告诉您身边的朋友,向朋友传达有用资料,也是一种人情,你朋友会感谢你的。}