期貨期權交流年化400% 策略 [MC]
-
咨詢內容:
本帖最后由 ipqhjjybj 于 2017-3-21 19:59 編輯
2017-3-21 18:35 上傳 下載附件(35.14 KB) 2017-3-21 18:35 上傳 下載附件(32.36 KB)
策略報告如此,想問下回測效果這樣的策略有哪里需要注意的么。??1min IF1603 曲線。
策略思想:
? ?? ?? ?? ?? ?? ?1、永遠在場內,不止盈不止損,每個bar判定多空方向 , 把握趨勢的收益。
? ?? ?? ?? ?? ?? ?2、用過使用 1min的類高頻方法,來控制最大回撤。
? ?? ?? ?? ?? ?? ?3、兩個參數,短期策略參數與長期策略參數。
input: attrShortN(6) , attrLongM(9) ;
var: max_mi(0.0),min_mi(0.0),shortDirection(0),aveLongM_lag1(0.0),
? ???aveLongM(0.0) ,??longDirection(0) , nowDirection(0);
max_mi = Highest(High[1] ,attrShortN - 2);
min_mi = Lowest(Low[1] , attrShortN - 2);
shortDirection = 0;
if close <= min_mi and close <= Open[attrShortN-1] then shortDirection = -1;
if close >= max_mi and close >= Open[attrShortN-1] then shortDirection = 1;
aveLongM_lag1 = Average( Close[1] , attrLongM);
aveLongM = Average( Close , attrLongM);
longDirection = 0;
if aveLongM >= aveLongM_lag1 then longDirection = 1;
if aveLongM < aveLongM_lag1 then longDirection = -1;
nowDirection = longDirection;
if shortDirection <> 0 then nowDirection = shortDirection;
if marketposition = 0 then begin
? ? ? ? if nowDirection > 0 then buy ("bk") next bar market;? ? ? ?
? ? ? ? if nowDirection < 0 then sellshort ("sk") next bar market;
end;
if marketposition > 0 and nowDirection < 0 then sellshort ("ns") next bar market;
if marketposition < 0 and nowDirection > 0 then buy ("nb") next bar market;C.png (22.11 KB, 下載次數: 6)
2017-3-21 18:37 上傳
點擊文件名下載附件
?
- MC技術部: 樓主有股票穩定收益的交易策略分享吧?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容