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

請問哪里寫錯了? [金字塔]

  • 咨詢內容:

    if BARPOS=1 then begin
      haClose: = (Open + High + Low + Close) / 4;
      haOpen :=open;
      haHigh := Max (High, max(haOpen, haClose));
      haLow  := Min (Low, min(haOpen, haClose));
    end


    haClose := (Open + High + Low + Close) / 4 ;
    haOpen  := (ref(haOpen,1)+ ref(haClose,1))/2;
    X1:ref(haOpen,1),NODRAW;X2:ref(haClose,1),NODRAW;X3:ref(haOpen,1)+ ref(haClose,1),NODRAW;X4:(ref(haOpen,1)+ ref(haClose,1))/2,NODRAW;X5:haOpen,NODRAW;
    haHigh  := Max (High, max(haOpen, haClose));
    haLow   := Min (Low, min(haOpen, haClose));


    aa:stickline(haClose>haOpen,haClose,haOpen,8,1),colored;
    ab:stickline(haClose>haOpen,haHigh,max(haClose,haOpen),0,1),colored;
    ac:stickline(haClose>haOpen,min(haClose,haOpen),haLow,0,1),colored;
    ad:stickline(haClose<haOpen,haClose,haOpen,8,0),colorblue;
    ae:stickline(haClose<haOpen,haHigh,max(haClose,haOpen),0,1),colorblue;
    af:stickline(haClose<haOpen,min(haClose,haOpen),haLow,0,1),colorblue;

     

     


    此主題相關圖片如下:2014-11-25_22-07-48.png

    為什么圖中K線的X5沒有值?導致副圖中K線總是間隔一根K線才顯示.哪里寫錯了呢?

     

  • 金字塔客服:

    variable:haclose=0,haopen=0,hahigh=0,halow=0;
    if BARPOS=1 then begin
      haClose: = (Open + High + Low + Close) / 4;
      haOpen := open;
      haHigh := Max (High, max(haOpen, haClose));
      haLow  := Min (Low, min(haOpen, haClose));
    end
    r1:=(ref(haOpen,1)+ ref(haClose,1))/2;
    r2:=ref(haOpen,1);
    r3:=ref(haClose,1);
    r4:=ref(haOpen,1)+ ref(haClose,1);
    r5:=(ref(haOpen,1)+ ref(haClose,1))/2;
    if barpos>1 then begin
    haClose : =(Open + High + Low + Close) / 4 ;
    haOpen  : =r1;
    X1:r2,NODRAW;
    X2:r3,NODRAW;
    X3:r4,NODRAW;
    X4:r5,NODRAW;
    X5:haOpen,NODRAW;
    haHigh  := Max (High, max(haOpen, haClose));
    haLow   := Min (Low, min(haOpen, haClose));

    end
    stickline(haClose>haOpen,haClose,haOpen,8,1),colored;
    stickline(haClose>haOpen,haHigh,max(haClose,haOpen),0,1),colored;
    stickline(haClose>haOpen,min(haClose,haOpen),haLow,0,1),colored;
    stickline(haClose<haOpen,haClose,haOpen,8,0),colorblue;
    stickline(haClose<haOpen,haHigh,max(haClose,haOpen),0,1),colorblue;
    stickline(haClose<haOpen,min(haClose,haOpen),haLow,0,1),colorblue;

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 蜜桃成熟之蜜桃仙子| 国产精品日本一区二区在线播放| 奇米影视777色| 国产精品白丝喷水在线观看| 国产情侣真实露脸在线| 又紧又大又爽精品一区二区| 亚洲精品在线视频观看| 亚洲国产亚洲综合在线尤物| 久久在精品线影院精品国产| 一二三四在线观看免费高清视频 | 欧美变态柔术ⅹxxx另类| 日本漫画大全彩漫| 好男人好资源影视在线| 国产日韩在线视频| 免费黄网在线观看| 亚洲免费福利视频| 三级网站在线播放| 豆奶视频最新官网| 精品中文字幕乱码一区二区| 欧美一级特黄aa大片在线观看免费| 成年女人免费v片| 国产精品国产三级国产普通话| 四虎永久精品免费网址大全| 亚洲欧美精品久久| 中文字幕人妻中文AV不卡专区| 2019中文字幕在线观看| 精品无码久久久久久尤物| 欧美大尺度xxxxx视频| 成人777777| 国产成人精品男人免费 | 国产婷婷综合在线视频中| 人人澡人人澡人人澡| 久久国产乱子伦精品在| 91精品国产高清久久久久久| 老司机免费福利午夜入口ae58| 欧美性猛交xxxx| 好男人在线社区www在线视频一| 国产大学生系列| 亚洲欧美日韩在线不卡| 一本无码人妻在中文字幕免费| 龙珠全彩里番acg同人本子 |