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

VBA求助 [金字塔]

  • 咨詢內(nèi)容:

    不知道什么原因,總提示語法錯(cuò)誤,將前兩行的定義 數(shù)據(jù)類型去掉,仍然報(bào)語法錯(cuò)誤,希望高手解答啊~

    public InpMinihub as Integer
     public hubnum as Integer

     public hubid()
     public hubopen()
     public hubclose()
     public hubbas()
     public hublast()

     private history
     private grd 

    Sub Init(gridobj as grid)
     grd=gridobj
     history=grd.getHistoryData()
     InpMiniHub=3
    End Sub

    Sub getHub()
     hubnum=0
     barpos=0
     do
      barpos=dupHub(barpos)
     loop while barpos<history.count-1

    End Sub


    Function dupHub(pos as integer)
     dim curopen,curclose,curbas,curlast
     dim wide as integer
     
     curopen=history.High(pos)
     curclose=history.Low(pos)
     curbas=pos
     wide=1
     
     for idx=pos+1 to history.datacount-1
      if (history.high(idx)<curclose or history.low(idx)>curopen) then
       if (wide<InpMiniHub) then
        dupHub=idx
        exit function
       else
        hubopen(hubnum)=curopen
        hubclose(hubnum)=curclose
        hubbas(hubnum)=curbas
        hublast(hubnum)=idx-1
        hubwide(hubnum)=getHubLevel(hublast-hubbas+1)
        hubid(hubnum)="0_"+hubbas(hubnum)+"_"+hublast(hubnum) 
        dupHub=idx
        hubnum++
        exit function
       end if
      else
       wide++
       curopen=(curopen*wide+history.high(idx))/(wide+1)
       curclose=(curclose*wide+history.low(idx))/(wide+1)
      end if
     next
     
    End Function

     

  • 金字塔客服:

    你這里根本就不是VBS的語法

     

  • 用戶回復(fù):

    vbs沒有數(shù)據(jù)類型定義的,那些as Integer之類的都需要修改,函數(shù)的參數(shù)也一樣,不要定義數(shù)據(jù)類型。

     

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

    http://www.weistock.com/bbs/dispbbs.asp?boardid=5&Id=10387

    看看這個(gè)帖子,好好學(xué)習(xí)一下vbs語法。

 

如果以上指標(biāo)公式不適用于您常用的行情軟件

或者您想改編成選股公式,以便快速選出某種形態(tài)個(gè)股的話,

可以聯(lián)系我們相關(guān)技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流進(jìn)行 有償 改編!

 


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 女的张开腿让男人桶爽30分钟| 欧美专区日韩专区| 国产一区二区三区樱花动漫| 欧美亚洲国产激情一区二区| 国产麻豆入在线观看| jizz免费在线观看| 成人国产网站v片免费观看| 久久天天躁狠狠躁夜夜躁2014 | 日本一在线中文字幕天堂| 亚洲jizzjizz在线播放久| 欧美日韩福利视频一区二区三区| 人人色在线视频播放| 精品久久久无码中文字幕天天| 国产一级一片免费播放i| 麻豆国产三级在线观看| 国产真实系列在线| 3d动漫精品一区二区三区| 国内精品影院久久久久| 99精品久久久中文字幕| 女人被狂c躁到高潮视频| 一级白嫩美女毛片免费| 扒开女同学下面粉粉嫩嫩| 久久国产精品久久精| 日韩在线国产精品| 九一制片厂果冻传媒56| 李老汉别揉我奶了嗯啊h| 亚洲免费电影网| 欧美人成人亚洲专区中文字幕| 亚洲国产精品福利片在线观看| 欧美日韩在线视频| 亚洲欧美乱综合图片区小说区| 正在播放国产一区| 亚洲精品在线视频观看| 浪荡女天天不停挨cao日常视频| 伊人性伊人情综合网| 男女激烈试看120秒动态图| 再深点灬舒服灬太大了添a | 国产主播一区二区三区| 香焦视频在线观看黄| 国产午夜亚洲精品不卡免下载| 香蕉视频国产在线观看|