相關標簽:惠比特交易和配種專區,夢三國交易專區,夢三國交易專區速秒,靈緹格力交易專區,中京交易市場下載專區,古幣銀元交易專區,長毛德牧交易專區,夢三國交易專區在哪里,qq交易專區,
模型策略源碼:input:n(11,1,20,1); input:m(35,5,120,5); longcond:=ref(close,1)-ref(close,n)>=m*mindiff; longprice:=open; shortcond:=ref(close,n)-ref(close,1)>=m*mindiff; shortprice:=open; if holding=0 then begin if longcond then buy(1,1,limitr,longprice); end if holding=0 then begin if shortcond then buyshort(1,1,limitr,shortprice); end if holding>0 then begin if time=closetime(0) then sell(1,holding,limitr,close); end if holding<0 then begin if time=closetime(0) then sellshort(1,holding,limitr,close); end 收益:asset,noaxis,colormagenta; 次數:totaltrade,linethick0; 勝率:percentwin,linethick0; 連虧:maxseqloss,linethick0; 連贏:maxseqwin,linethick0; 點擊復制上述代碼粘貼到到公式管理器
{別忘了將本網告訴您身邊的朋友,向朋友傳達有用資料,也是一種人情,你朋友會感謝你的。}