大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現在的位置:程序化交易>> 期貨公式>> (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高清免费国产自产拍 | 亚洲综合图片人成综合网 | 日韩精品国产自在久久现线拍 | 亚洲欧洲日本精品 | 在线欧美 | 免费国产一区二区三区 | 国产精品探花一区在线观看 | 天天艹天天射 | 日日日日人人人夜夜夜2017 | 女十八毛片 | 欧美区一区 | 国产精品合集久久久久青苹果 | 国产精品美女www爽爽爽视频 | 亚洲精品成人网久久久久久 | 激情综合网五月婷婷 | 国产欧美亚洲另类第一页 | 激情欧美一区二区三区中文字幕 | 国产精品99久久久久久人 | 国产午夜精品不卡视频 | 草草草在线视频 | 伊人色美文情网址 | 日韩欧美二区 | 中文字幕日本不卡一二三区 | 久久久久18 | 有色视频在线观看免费高清 | 国产日韩欧美亚洲精品95 | 老司机午夜性大片免费 | 欧美成人禁片在线观看网址 | 黄片毛片免费观看 | 亚洲国产美女视频 | 天天久久综合 | 毛片录像 | 精品亚洲在线 | 久久99精品久久久久久野外 | 久久综合给会久久狠狠狠 | 免费看成人毛片日本久久 | 特黄aa级毛片免费视频播放 | 国内精品小视频在线 |