您現(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)容
主站蜘蛛池模板: 国产二区在线播放| 性按摩xxxx| 亚洲日本va在线观看| 秋霞日韩久久理论电影| 国产三级精品三级男人的天堂| 中文字幕色网站| 国内精品伊人久久久久777| yellow字幕网在线91pom国产 | 国产亚洲福利一区二区免费看 | 在线观看国产小视频| 一级一级人与动毛片| 无码人妻丰满熟妇区免费| 久久精品国产大片免费观看| 欧洲亚洲综合一区二区三区| 亚洲日本香蕉视频| 激情婷婷六月天| 免费一级毛片在线播放不收费| 精品无码成人久久久久久| 国产一区二区三区无码免费 | 影音先锋男人站| 中文字幕人妻无码一夲道| 日本人善交69xxx| 久久精品国产四虎| 最近中文字幕免费mv视频| 亚洲人成网站999久久久综合| 欧美日韩国产成人精品| 亚洲精品无码久久久久| 狠狠色噜噜狠狠狠狠网站视频| 免费看香港一级毛片| 精品国产自在久久| 四虎国产精品成人免费久久 | 女人让男人桶的小视频| 一区二区日韩精品中文字幕| 成人AAA片一区国产精品| 中文在线第一页| 成年男女免费视频网站| 丰满人妻一区二区三区免费视频| 日本一区视频在线播放| 久久久久人妻一区二区三区vr| 日本漫画工囗全彩内番漫画狂三| 久久国产中文字幕|