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

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

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

  • 咨詢內(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
    //處理移動的底部
    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
    //處理移動的底部
    if h + stopnum < stopprice then
     stopprice := h+stopnum;
    end
    dt:=Buy(開倉時間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0)  ,lots,LIMITR,Max(Open,UpperBand)+1*MINDIFF),orderqueue;
    kt:=BuyShort(開倉時間 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
    //處理移動的底部
    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
    //處理移動的底部
    if h + stopnum < stopprice then
     stopprice := h+stopnum;
    end;


    dt:=開倉時間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0);

    kt:=開倉時間 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;

     

     

    這兩句用來是干什么的?

    dt:=Buy(開倉時間 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0)  ,lots,LIMITR,Max(Open,UpperBand)+1*MINDIFF),orderqueue;
    kt:=BuyShort(開倉時間 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編輯過]

     

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

     

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

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

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 人人搞人人干 | 手机亚洲第1页 | 国产精品久久久久久久免费 | 欧美精品亚洲精品日韩 | 亚洲第一激情 | 久操成人 | free性中国hd护士高清 | 婷婷人人爽人人做人人添 | 免费精品视频 | 欧美视频手机在线 | 日韩专区亚洲国产精品 | 久久综合婷婷香五月 | 国产成人精品日本亚洲专区6 | 亚洲色图图 | 国产精品手机视频一区二区 | 精品午夜一区二区三区在线观看 | 日本三级视频在线播放 | 国内自拍欧美 | 黄站在线 | a级毛片高清免费视频 | 天天做天天添婷婷我也去 | 日韩国产欧美在线观看一区二区 | 国产色婷婷亚洲 | jk制服啪啪网站 | 国产精品欧美亚洲韩国日本 | 欧美日韩一区二区三区视频播 | 视频一区二区在线观看 | 91免费永久国产在线观看 | 国产成人手机在线好好热 | 日韩福利网站 | 日韩免费视频观看 | 一菊综合网成人综合网 | 在线播放一区二区三区 | 中文字幕制服丝袜 | 欧美激情一区二区三级高清视频 | 一品毛片| 精品亚洲成a人片在线观看 精品亚洲成a人在线播放 | 性欧美free荷兰hd | 伦理剧在线播放 | 视频在线观看网站免费 | 午夜影视免费 |