大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频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级高清毛片 国产一级片毛片 | 国产精品久久久久激情影院 | 伊人精品 | 久久精品天天中文字幕人 | 国产成人视屏 | 伊人色综合久久天天 | 精品一区二区久久久久久久网精 | 国模无水印一区二区三区 | 三上悠亚在线一区 | 精品一区二区久久久久久久网精 | 欧美一级成人免费大片 | 国产亚洲精品在天天在线麻豆 | 狠狠干天天爽 | 国产精品视频一区二区猎奇 | 视频一区二区在线 | 日本不卡视频网站 | 狠狠操天天射 | 一级黄色免费网站 | 3d动漫免费一区二区三区 | 欧美乱妇高清视频免欢看关 | 国产青青久久 | 偷偷操不一样的久久 | 女人18级毛片久久 | 成人国产一区二区三区 | 妞干网这里只有精品 | 奇米第八色 | 亚洲精品美女在线观看 | 神马视频我不卡 | 伊人中文字幕 | 国产精品免费在线播放 | 欧美国产精品不卡在线观看 | 亚洲一区欧美 | 一级片免费| 黄色大全网站 | 久久精品国产99久久99久久久 | 亚洲欧美日韩一区二区 | 韩国 欧美 日产 国产精品 | 久久er99热这里只是精品 |