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

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

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

  • 咨詢內容:

    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  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 日韩在线第二页 | 成人私人影院www片免费高清 | 欧美成人欧美激情欧美风情 | 成人免费视频一区二区 | 麻豆精品不卡国产免费看 | 日韩影院在线 | 欧美香蕉 | 波多野结衣免费视频观看 | 521a成v视频网站在线入口 | 91桃色在线看片 | 欧美国产大片 | 热门国产xvideos中文 | 欧美高清日韩 | 国产精品大片天天看片 | 国产成人在线观看网站 | a黄色网| 日韩在线视频免费 | 日韩福利片午夜在线观看资源 | 日韩高清欧美精品亚洲 | 成年在线观看视频免费看 | 亚洲欧美在线播放 | 日韩在线视精品在亚洲 | 国产视频 一区二区 | 狠狠色噜噜狠狠狠狠狠色综合久久 | 欧美日韩国产超高清免费看片 | 清风阁爱干 | 国产乱理伦片在线看 | aaa影院| 亚洲成a人片在线观看播放 亚洲成精品动漫久久精久 亚洲大尺度 | 欧美又黄又嫩大片a级 | 亚洲sss综合天堂久久久 | 欧美成人精品手机在线观看 | 亚洲欧美日韩国产 | 最近的2019中文字幕免费一页 | 亚洲视频一区二区三区 | wwwxxx视频| 五月天综合婷婷 | 色综合a怡红院怡红院首页 色综合久久久久久888 | 国产h在线观看 | 97婷婷狠狠成为人免费视频 | 亚欧洲精品在线视频免费观看 |