相關標簽:中美合資肯特系統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; 點擊復制上述代碼粘貼到到公式管理器
{別忘了將本網告訴您身邊的朋友,向朋友傳達有用資料,也是一種人情,你朋友會感謝你的。}