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

您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

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

  • 咨詢內容:

    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;

     

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

     

  • 用戶回復:

    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;

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

    [此貼子已經被作者于2013/11/13 9:08:10編輯過]

     

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

     

  • 網友回復:

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

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产在线97色永久免费视频 | 色狠狠色综合久久8狠狠色 色狠狠成人综合网 | 免费又黄又硬又大爽日本 | 夜夜天天干 | 久久爰www免费人成 久久在现 | 亚洲综合网在线观看 | 日韩欧美亚洲每日更新网 | 亚洲一区欧美在线 | 一级毛片视频 | 亚洲日本视频在线 | 精品99视频 | 成人抖音破解 | 亚洲性色永久网址 | 麻豆国产在线观看免费 | 亚洲日韩欧美视频 | 日本无翼乌全彩无遮挡动漫 | 中文字幕丰满孑伦 | 免费一级录像 | 99精品免费在线观看 | 成视频年人黄网站免费视频 | 午夜性影院爽爽爽爽爽爽 | 欧美国产综合视频 | 成人网视频 | 亚洲影视一区 | 国产精品视频偷伦精品视频 | 国产视频你懂的 | 黄色顶级视频 | 国产精品七七在线播放 | 成人福利在线视频 | 日韩免费成人 | 亚洲综合日韩精品欧美综合区 | 天天爱添天天爱添天天爱添 | 欧美成人se01短视频在线看 | 日韩一级精品视频在线观看 | 久久亚洲精品中文字幕二区 | 大象焦伊人久久综合网色视 | 亚亚洲乱码一二三四区 | 精品欧美一区手机在线观看 | 成年网站免费视频黄 | 在线成人毛片 | 天天摸天天操天天射 |