您現(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)容
主站蜘蛛池模板: 日本精品久久久久中文字幕| 亚洲欧美日韩中文字幕一区二区三区 | 一级毛片在线完整免费观看| sao浪美人的激爱之路| 手机看片福利永久国产日韩| 能顺利播放的男男网站free| 毛茸茸性XXXX毛茸茸毛茸茸| 最近中文字幕免费mv视频7| 欧美性猛交xxxx乱大交蜜桃| 日本护士xxxx爽爽爽| 夜先锋av资源网站| 国产日韩精品欧美一区喷水| 吃奶呻吟打开双腿做受动态图 | 毛片在线免费观看网站| 日韩中文字幕视频在线观看| 好男人社区神马在线观看www| 国产精品成年片在线观看| 四虎国产永久免费久久| 亚洲免费视频观看| 一本久久a久久精品亚洲| 色综合天天综合中文网| 精品久久久久成人码免费动漫| 欧美一区二区三区精品影视| 妞干网在线免费视频| 国产剧情在线看| 亚洲成A人片在线观看无码3D| 中文字幕欧美日韩高清| 亚洲日本久久一区二区va| 男女抽搐动态图| 日本69式xxx视频| 国产精品亚洲精品日韩已满| 午夜免费一级片| 久久狠狠躁免费观看| 67194线路1(点击进入)| 精品国产一二三区在线影院| 日本高清乱理伦片| 国产精品成熟老女人视频| 人与动人物欧美网站| 两根手指就抖成这样了朝俞| 青青青青久在线观看视频| 欧美a级毛欧美1级a大片免费播放 欧美a级片在线观看 |