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

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

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

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

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


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

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

    這里就把原版策略分享給大家,拋磚引玉,為大家提供一點思路。
    從原版策略給的默認參數(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個最小變動價位

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

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 精品国产污污免费网站| 在线人成精品免费视频| 厨房掀起馊子裙子挺进去| 国产h视频在线观看网站免费| 在线视频你懂的国产福利| 三上悠亚在线网站| 日本爽爽爽爽爽爽在线观看免 | 莲花宝鉴无删减电影在线看| 国产无遮挡无码视频免费软件| 337p日本欧洲亚洲大胆人人| 在线观看视频99| sss欧美一区二区三区| 性欧美丰满熟妇XXXX性 | 国产99精品在线观看| 免费精品99久久国产综合精品| 国产无遮挡吃胸膜奶免费看| 国产成人污污网站在线观看| 国产主播福利精品一区二区| 午夜精品久久久久久毛片| 人人揉人人捏人人添| 亚洲va在线va天堂va不卡下载 | 免费看片aⅴ免费大片| 人善交VIDE欧美| 亚洲国产欧洲综合997久久| 久久香蕉精品视频| 一二三四日本视频中文| 67194在线午夜亚洲| 韩国免费A级作爱片无码| 菠萝蜜网站入口| 精品久久久久久中文字幕无码软件| 精品一区二区久久久久久久网精| 男女超爽视频免费播放| 粗大的内捧猛烈进出在线视频| 波多野结衣无限| 日产国语一区二区三区在线看| 国产成人精品亚洲2020| 国产精品视频一| 中国国产成人精品久久| 我要看一级毛片| 中文免费观看视频网站| 我的3个美艳馊子白莹小说|