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

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

請問老師關于日內多次突破交易的問題 [MC]

  • MC用戶求助:

    關于swinghigh函數的用法,您可以先看一下帖子http://forums.icetech.com.cn/for ... &extra=page%3D1,在學習這個帖子的過程中遇到的問題可以直接在該帖子下方回帖。

    ?

    另外,關于您的這個策略需求,我簡單在您的代碼中加了幾行代碼,如下:

    input:btime(0930),etime(1445);

    var:thigh(0),tlow(0),mp(0);

    if date<>date[1] then begin

    ? ? mp=0;

    ? ? thigh=0;

    ? ? tlow=0;

    ? ?end;

    if time=btime then begin

    ? ? thigh=highd(0);

    ? ? tlow=lowd(0);

    ? ? end;

    mp=marketposition;

    if time>btime and time<etime then begin

    ? ? if mp=0 and close cross above thigh then begin

    ? ? ? ?buy ("b1")next bar at thigh stop;

    ? ? ? ? end;

    ? ? if mp=1 then sell("sp") next bar at tlow stop;

    ?

    ? ? if mp=0 and close cross under tlow then begin

    ? ? ? ? sellshort ("s1")next bar at tlow stop;

    ? ? ? ? end;

    ? ? if mp=-1 then buytocover("bp") next bar at thigh stop;

    //增加

    ? ? if mp=0 and mp[1]<>0 then begin

    ? ? ? ? ? ? thigh=highd(0);

    ? ? ? ? ? ? tlow=lowd(0);

    ? ? end;

    //增加

    {這個地方,是一個即時的代碼,也就是當前一根bar上持倉,而當根bar未持倉,那么重新賦值thigh和tlow,后續的進場會根據這兩個新的值進行進場和出場了}

    end;

    ?

  • MC回復討論一:

    關于swinghigh函數的用法,您可以先看一下帖子http://forums.icetech.com.cn/for ... &extra=page%3D1,在學習這個帖子的過程中遇到的問題可以直接在該帖子下方回帖。

    ?

    另外,關于您的這個策略需求,我簡單在您的代碼中加了幾行代碼,如下:

    input:btime(0930),etime(1445);

    var:thigh(0),tlow(0),mp(0);

    if date<>date[1] then begin

    ? ? mp=0;

    ? ? thigh=0;

    ? ? tlow=0;

    ? ?end;

    if time=btime then begin

    ? ? thigh=highd(0);

    ? ? tlow=lowd(0);

    ? ? end;

    mp=marketposition;

    if time>btime and time<etime then begin

    ? ? if mp=0 and close cross above thigh then begin

    ? ? ? ?buy ("b1")next bar at thigh stop;

    ? ? ? ? end;

    ? ? if mp=1 then sell("sp") next bar at tlow stop;

    ?

    ? ? if mp=0 and close cross under tlow then begin

    ? ? ? ? sellshort ("s1")next bar at tlow stop;

    ? ? ? ? end;

    ? ? if mp=-1 then buytocover("bp") next bar at thigh stop;

    //增加

    ? ? if mp=0 and mp[1]<>0 then begin

    ? ? ? ? ? ? thigh=highd(0);

    ? ? ? ? ? ? tlow=lowd(0);

    ? ? end;

    //增加

    {這個地方,是一個即時的代碼,也就是當前一根bar上持倉,而當根bar未持倉,那么重新賦值thigh和tlow,后續的進場會根據這兩個新的值進行進場和出場了}

    end;

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 老子午夜精品我不卡影院 | 欧美高清无砖专区欧美精品 | 国产一区二区三区在线免费观看 | 国产精品视频视频久久 | 日韩一区二区中文字幕 | 国产高清a毛片在线看 | 综合久久综合久久 | 亚洲人人爱 | 亚洲视频精品 | 四虎8848精品永久在线观看 | 99久久99热久久精品免费看 | 国产精品久久国产精麻豆99网站 | 国产99在线a视频 | 国产乱人视频在线播放不卡 | 日日夜夜视频 | 欧美日韩在线观看视频 | 伊人久久大香线焦综合四虎 | 国产精品久久免费 | 99热这里只有精品国产在热久久 | 久久亚洲精品成人综合 | 亚洲一区二区三区免费 | 日韩免费观看一级毛片看看 | 久久97久久 | 国产精品久久久久一区二区三区 | 91亚洲在线 | 搡的我好爽视频在线观看 | 久久99精品一久久久久久 | 99热这里只有精品在线播放 | 99久久精品毛片免费播放 | 日韩欧美在线一级一中文字暮 | 亚洲悠悠色综合中文字幕 | 久久永久免费视频 | 偷亚洲偷国产欧美高清 | 日本一区二区高清 | 久久国产一久久高清 | 日本一级淫片a免费播放 | 欧美亚洲国产精品久久久 | 国产人伦视频在线观看 | 日韩精品亚洲精品485页 | 八戒久久精品一区二区三区 | 深夜影院在线 |