人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

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

期貨期權(quán)交流k線形態(tài)策略 [MC]

  • 咨詢內(nèi)容: 看到這個(gè)帖子,分享一下

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

    我們假設(shè),相似的k線形態(tài)導(dǎo)致相似的價(jià)格變化,例如下圖所示:


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

    這個(gè)策略的思想非常好,可以很好地捕捉日內(nèi)價(jià)格形態(tài)暗示的交易機(jī)會。在實(shí)際使用時(shí),需要把止損止盈以及點(diǎn)差參數(shù)根據(jù)標(biāo)的商品的屬性進(jìn)行設(shè)置。我把它在股指期貨和一些商品上進(jìn)行了測試,策略經(jīng)過一些修正和加工后盈利能力非常不錯(cuò),甚至可以實(shí)盤。

    這里就把原版策略分享給大家,拋磚引玉,為大家提供一點(diǎn)思路。
    從原版策略給的默認(rèn)參數(shù)大小來看,應(yīng)該是做外匯的策略,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;  // 如果換成國內(nèi)期貨,0.0001可以改成1個(gè)最小變動價(jià)位

    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技術(shù)部: 感謝分享, 幫您排版了一下

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 511411198  點(diǎn)擊這里給我發(fā)消息進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價(jià)格!


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 日日狠日 | 免费女人视频 | 日日操夜夜 | 免费一级毛片在线播放视频 | 最新欧美日韩 | 2020最新国产精品视频 | 插菊花网 | 久久成人亚洲香蕉草草 | 在线观看一夜七次郎国产 | 亚洲成a人片77788 | 99视频在线永久免费观看 | 成人午夜精品网站在线观看 | 你懂的视频在线播放 | 久久久国产一区二区三区 | 涩涩涩丁香色婷五月网视色 | 亚洲精品无码不卡 | 成人国产一区二区 | 人人干人人草 | 成人影院一区二区三区 | 人人爽天天爽 | 天天色天天插 | 九九精品免费 | 亚洲波多野结衣日韩在线 | 德国free性video极品 | 中文字幕在线免费观看视频 | 亚洲成a人片在线观看中 | 欧美日韩精品在线视频 | aa级一级天堂片免费观看 | 国产毛片a | 国产在线拍 | 日韩影院在线 | 一本到在线 | 夜夜揉揉日日人人视频 | 手机看片日韩日韩国产在线看 | 成人免费在线观看 | 在线免费看片网站 | 99精品视频观看 | 午夜情趣视频 | 毛片免费的 | 欧美 国产 日本 | 亚洲精品永久www嫩草 |