相关标签:中美合资肯特系统18tc,肯特纳通道,肯特纳,惠比特交易和配种专区,梦三国交易专区,梦三国交易专区速秒,灵缇格力交易专区,中京交易市场下载专区,古币银元交易专区,
模型策略源码:runmode:0; input:avglength(40),atrlength(40); ma1:=ref(ma((high+low+close)/3,avglength),1); upperband:=ma1+ref(ma(tr,atrlength),1); lowerband:=ma1-ref(ma(tr,atrlength),1); entrylongcond:=ma1>ref(ma1,1) and high>=upperband; exitlongcond:=low<=ma1; entryshortcond:=ma1<ref(ma1,1) and low<=lowerband; exitshortcond:=high>=ma1; if holding=0 then begin if entrylongcond then buy(1,1,limitr,max(open,upperband)); end if holding=0 then begin if entryshortcond then buyshort(1,1,limitr,min(open,lowerband)); end if holding>0 then begin if exitlongcond then sell(1,holding,limitr,min(open,ma1)); end if holding<0 then begin if exitshortcond then sellshort(1,holding,limitr,max(open,ma1)); end 盈亏:asset-50000,noaxis,colorred,linethick2; 点击复制上述代码粘贴到到公式管理器
{别忘了将本网告诉您身边的朋友,向朋友传达有用资料,也是一种人情,你朋友会感谢你的。}