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

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識(shí)>>正文內(nèi)容

[求助] 為什么平多以后 還是馬上開(kāi)多 怎么才能止損以后 不在開(kāi)同向的倉(cāng) , 知道反向信號(hào)出現(xiàn)在開(kāi)倉(cāng) [金字塔]

  • 咨詢內(nèi)容:

    if barpos = 0 then
     stopprice := l - stopnum;
    if aspect = 0 then begin
    //多頭處理
    if l <= stopprice   then begin
     sell(holding>0,holding,0);

     aspect:= 1;
     stopprice := h+stopnum;
    end
    //處理移動(dòng)的底部
    if l - stopnum > stopprice then
     stopprice := l-stopnum;
    end
    if aspect = 1 then begin
    //空頭處理
    if h >= stopprice then begin
     sellshort(holding<0,holding,0);


     aspect:= 0;
     stopprice := l-stopnum;
    end
    //處理移動(dòng)的底部
    if h + stopnum < stopprice then
     stopprice := h+stopnum;
    end
    dt:=Buy(開(kāi)倉(cāng)時(shí)間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0)  ,lots,LIMITR,Max(Open,UpperBand)+1*MINDIFF),orderqueue;
    kt:=BuyShort(開(kāi)倉(cāng)時(shí)間 and  NOT(TYPE(3)=1) and l<=LowerBand  and (HOLDING=0) ,lots,LIMITR,Min(Open,LowerBand)-1*MINDIFF),orderqueue;

         
    if dt then begin

    buy(dt and NOT(TYPE(1)=1),10%,0);
    end;
    if kt then begin

    buyshort(kt and NOT(TYPE(1)=3),10%,0);
    end;

     

  • 金字塔客服:
    此主題相關(guān)圖片如下:6h(%n$8ie9yl~15@5v5wnl2.jpg

     

  • 用戶回復(fù):

    variable:n=0;

    variable:m=0;

    if barpos = 0 then
     stopprice := l - stopnum;
    if aspect = 0 then begin
    //多頭處理
    if l <= stopprice   then begin
     sell(holding>0,holding,0);

     aspect:= 1;
     stopprice := h+stopnum;

     n:=1;

     m:=0;
    end
    //處理移動(dòng)的底部
    if l - stopnum > stopprice then
     stopprice := l-stopnum;
    end
    if aspect = 1 then begin
    //空頭處理
    if h >= stopprice then begin
     sellshort(holding<0,holding,0);


     aspect:= 0;
     stopprice := l-stopnum;

     m:=1;

     n:=0;
    end
    //處理移動(dòng)的底部
    if h + stopnum < stopprice then
     stopprice := h+stopnum;
    end;


    dt:=開(kāi)倉(cāng)時(shí)間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0);

    kt:=開(kāi)倉(cāng)時(shí)間 and  NOT(TYPE(3)=1) and l<=LowerBand  and (HOLDING=0);   

     
    if dt  and m=1 then begin

    buy(1,10%,0);
    end;
    if kt  and n=1 then begin

    buyshort(1,10%,0);
    end;

     

     

    這兩句用來(lái)是干什么的?

    dt:=Buy(開(kāi)倉(cāng)時(shí)間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0)  ,lots,LIMITR,Max(Open,UpperBand)+1*MINDIFF),orderqueue;
    kt:=BuyShort(開(kāi)倉(cāng)時(shí)間 and  NOT(TYPE(3)=1) and l<=LowerBand  and (HOLDING=0) ,lots,LIMITR,Min(Open,LowerBand)-1*MINDIFF),orderqueue;

    這樣的胡亂賦值有什么意義?

    [此貼子已經(jīng)被作者于2013/11/13 9:08:10編輯過(guò)]

     

  • 網(wǎng)友回復(fù): 不好意思我新學(xué)的, 有的地方還是不太懂    現(xiàn)在又出來(lái)一個(gè)問(wèn)題, if h >= stopprice then begin
     sellshort(holding<0,holding,0); 會(huì)平空  不在開(kāi)空  但是 l <= stopprice  會(huì)開(kāi)空    我的 策略是  最低價(jià)突破下軌做空  h >= stopprice  時(shí)平空 不在開(kāi)倉(cāng) 直到 最低價(jià)突破下軌在做空

     

  • 網(wǎng)友回復(fù):

    l <= stopprice  上面代碼里面哪里有根據(jù)這個(gè)判斷條件開(kāi)倉(cāng)的?不都是l<=LowerBand  才開(kāi)倉(cāng)的?

 

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

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


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
主站蜘蛛池模板: 加勒比一本 | 亚洲欧美日韩国产精品 | 99久久免费精品国产免费高清 | 久久香蕉综合色一综合色88 | 91成人在线免费视频 | 99免费观看 | 国产精品午夜性视频 | 国产亚洲欧美另类一区二区三区 | 国语精品视频在线观看不卡 | 天天操天天干天天拍 | 欧美亚洲第一区 | 99爱在线精品视频网站 | 在线亚洲精品国产成人二区 | 天天精品 | 国产成人精品实拍在线 | 久久九九有精品国产56 | 亚洲欧美专区精品久久 | 国产一区二区久久 | 丁香午夜 | 久久日韩精品激情 | 久久亚洲不卡一区二区 | 中文字幕在线视频在线看 | 日韩欧美黄色 | 亚洲欧洲尹人香蕉综合 | 俄罗斯一级在线播放 | 香蕉网在线播放 | 欧美 国产 日本 | 激情五月色婷婷在线观看 | 亚洲波多野结衣日韩在线 | 日韩www| 成人影院在线观看视频 | 综合久久网 | 香蕉97超级碰碰碰碰碰久 | 久久综合九色综合狠狠97 | 中文字幕三级理论影院 | 精品视频在线观看一区二区 | 久久日韩 | 亚洲专区欧美专区 | 精品亚洲一区二区三区在线播放 | 免费一级特黄3大片视频 | 国产精品va |