您現在的位置:程序化交易>> 期貨公式>> (MC)multicharts>> MC知識>>正文內容

期貨期權交流k線形態策略 [MC]

  • 咨詢內容: 看到這個帖子,分享一下

    原文請見:
    http://www.zenotrade.com/

    我們假設,相似的k線形態導致相似的價格變化,例如下圖所示:


    在國外的一個博客(davenewberg.com/Trading/)中找到了一個叫3-4 BAR PATTERN TRADES的策略,就是利用最近的幾根k線來進行交易。

    這個策略的思想非常好,可以很好地捕捉日內價格形態暗示的交易機會。在實際使用時,需要把止損止盈以及點差參數根據標的商品的屬性進行設置。我把它在股指期貨和一些商品上進行了測試,策略經過一些修正和加工后盈利能力非常不錯,甚至可以實盤。

    這里就把原版策略分享給大家,拋磚引玉,為大家提供一點思路。
    從原版策略給的默認參數大小來看,應該是做外匯的策略,easy language源碼如下:

    ///////////////////////////////// TRADE VARIABLES //////////////////////////////////
    Var: TradeType (0), MultiX (true);{Multiple exits can be turned on here or below in "MultiExits"}
    Var: Series3Low(0), Series4Low(0), Series5Low(0); //declare variablesTradeType=1;

    //////// SET TradeType 1-9 including 7.2 Here /////////////////
    Series3Low = Lowest (Low, 3);
    Series4Low = Lowest (Low, 4);
    Series5Low = Lowest (Low, 4); //define variables

    ////////////////////////////// TRADE ENTRIES //////////////////////////////
    If TradeType=1 and H[3]>H[2] and C[2]<C[1] and L[1]>L[2] and H[1]>H[2] and H[0]>H[3] thenBuy ("T1Long") Next Bar at H[3]+ .0001 stop;  // 如果換成國內期貨,0.0001可以改成1個最小變動價位

    If TradeType=1 and MarketPosition = 1 then begin; SetStopContract; SetPercentTrailing (.002, -.002); end;//(floor amount, stop)

    If TradeType=2and H[3]>H[2] and C[2]<C[1] and L[2]<L[3] and O[1]<C[2] and C[1]>C[2] and L[1]<L[2]Then Buy Next Bar at H[2]+ .0001 stop;

    If TradeType=3and H[3]>H[2] and C[2]<C[3] and O[1]>C[2] and H[1]>H[3] and H[0]>H[1]Then Buy Next Bar at H[1]+ .0001 stop;

    If TradeType=4 //long and H[3]>H[2] and H[2]>H[1] and L[3]<L[2] and L[2]<L[1]Then Buy Next Bar at H[3]+.0001 stop;

    If TradeType=5 //short and H[3]>H[2] and H[2]>H[1] and L[3]<L[2] and L[2]<L[1]Then sell short next bar at L[3]-.0001 stop;

    If TradeType=6 and H[3]>h[2] and C[2]<C[3] and O[1]>C[2] and H[1]>H[3]Then Buy Next Bar at H[1]+ .0001 stop;

    If TradeType=7 and L[4]<L[5] and L[3]<L[4] and H[5]>H[4] and H[4]>H[3]and H[2]<H[3] and H[1]<h[3] and L[2]>L[3] and L[1]>L[3] //and a series of 2 small inside barsThen Sell Short Next Bar at H[1]- .001 stop;

    If TradeType=7.2 and L[5]<L[6] and L[4]<L[5] and H[6]>H[5] and H[5]>H[4]and H[3]<H[4] and H[2]<H[4] and H[1]<h[4] and L[3]>L[4] and L[2]>L[4] and L[1]>L[4] //and a series of 3 small inside barsThen Sell Short Next Bar at H[1]- .001 stop;

    If TradeType=8 and H[4]<H[3] and C[3]>C[2] and C[2]<C[3] and O[1]<C[2] and C[1]>C[2]Then Buy Next Bar at H[3]+ .001 stop;

    If TradeType=9 and H[3]<H[4] and C[3]>C[4] and H[2]>H[3] and C[2]<C[3] and L[1]<L[3] and C[1]>C[3]Then Buy next bar at H[2]+.0001 stop;



















     

  • MC技術部: 感謝分享, 幫您排版了一下

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 亚洲最大激情中文字幕| 久久99国产乱子伦精品免费| 精品国产一区二区三区香蕉 | 视频一区视频二区在线观看| 国产青年摘花xxx| 中文字幕欧美日韩| 最近高清中文国语在线观看| 亚洲色中文字幕在线播放| 美日韩一区二区三区| 国产日韩av免费无码一区二区| 99精品一区二区免费视频| 成人毛片一区二区| 久久精品国产福利电影网| 欧美潮喷videosvideo| 公和我在厨房好爽中文字幕| 饭冈加奈子黑人解禁在线播放| 国产精品无码专区在线播放 | 欧美黑人5o厘米全进去| 午夜影院app| 韩国男男腐啪GV肉视频| 国产精品国产三级国产普通话| gogo高清全球大胆高清| 成年午夜无码av片在线观看| 久久精品无码一区二区三区不卡| 欧美日韩中文一区二区三区| 免费人成年激情视频在线观看 | 中文字幕无线码免费人妻| 最近中文字幕mv在线视频www | 久久精品午夜福利| 欧美姓爱第一页| 亚洲色成人网一二三区| 精品国产一区二区三区久久| 国产乱子伦农村xxxx| 成年人在线网站| 国产精品国产亚洲精品看不卡| 99国产在线播放| 妓女嫖客叫床粗话对白| 久久99国产这里有精品视| 日韩精品一区二区三区中文| 亚洲国产精品久久丫| 波多野结衣两部黑人mp4|