亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? main.frm

?? 枕善居漢化的stockchart股軟 描 述:實時股票圖表曲線示例 Ver 1.0 網 站:http://www.mndsoft.com/ e-mail :mndsoft@163.com 最新的
?? FRM
?? 第 1 頁 / 共 4 頁
字號:
'Debug.Print "iDateCnt"; iDateCnt
'Debug.Print "x:"; x; " rRSO:"; rRightSideOffset
'Debug.Print "x:"; x; " iC:"; iCount; " LB:"; LBound(aData, 1)
        If iDateCnt = 0 Then   'print date if all data is for 1 day
            If x - iBarSpacing <= 0 Or iCount = LBound(aData, 1) + 1 Then
                ChartBox.CurrentY = ChartBox.ScaleHeight - (iTextHeight)
                ChartBox.CurrentX = ChartBox.ScaleLeft + 2
                ChartBox.Print sDateLast$
            End If
        End If
                    
        '***** Time labels
        If iTimeTrigger = 1 Then
            If iNextX >= x Then 'we have room for the time string
                ChartBox.CurrentX = x - (ChartBox.TextWidth(sTime$) / 2)
                ChartBox.CurrentY = iBottomPlotMargin
                ChartBox.Print sTime$
        '*****' vert grid
                ChartBox.DrawStyle = vbDot
                Y1 = ChartBox.ScaleTop
                Y2 = iBottomPlotMargin  ' ChartBox.ScaleHeight - 35
                ChartBox.Line (x, Y1)-(x, Y2), iGridColor
                'short "pointer line" in red to time string
                Y1 = iBottomPlotMargin - 10  'ChartBox.ScaleHeight - 25
                ChartBox.DrawStyle = vbSolid
                ChartBox.Line (x, Y1)-(x, Y2), vbRed
                iNextX = x - ChartBox.TextWidth(sTime$) - 5
            End If
            'sDateLast$ = sDate$
        End If
        ChartBox.DrawStyle = vbDot
        'draw the day marker here so it will be on top of grid
        If iDateTrigger = 1 And iBarDataPeriodMins > 0 Then
            sDateLast$ = sDate$
            ChartBox.Line (x, ChartBox.ScaleTop)-(x, iBottomPlotMargin), iDateMarkerColor '1911939  'iGridColor
        End If
'************************************
''***********************************
'*****price bar plot
'************************************
'************************************
        ChartBox.DrawStyle = vbSolid
        Select Case iTicType
            Case ttHLOC  'standard HLOC bar plot
                'price body
                Y1 = 4 + (dMaxPrice - aData(iCount).dHigh) * dHeight2RangeRatio
                Y2 = 4 + (dMaxPrice - aData(iCount).dLow) * dHeight2RangeRatio
                ChartBox.Line (x, Y1)-(x, Y2), iTicBodyColor
                'open tick
                Y1 = 4 + (dMaxPrice - aData(iCount).dOpen) * dHeight2RangeRatio
                ChartBox.Line (x - 2, Y1)-(x + 1, Y1), iTicOpenColor
                'close tick
                Y1 = 4 + (dMaxPrice - aData(iCount).dClose) * dHeight2RangeRatio
                ChartBox.Line (x, Y1)-(x + 3, Y1), iTicCloseColor
            Case ttCandle  'candle plot
                Dim iCandleColor As Long
                'if close >open then plot color is up color
                If aData(iCount).dClose - aData(iCount).dOpen >= 0 Then
                    iCandleColor = iTicCandleUpColor
                Else
                    iCandleColor = iTicCandleDnColor
                End If
                'price body
                Y1 = 4 + (dMaxPrice - aData(iCount).dOpen) * dHeight2RangeRatio  'open
                Y2 = 4 + (dMaxPrice - aData(iCount).dClose) * dHeight2RangeRatio  'close
                If iBarSpacing > 6 Then  'draw a "fatter" candle body
                    ChartBox.Line (x - 2, Y1)-(x + 3, Y2), iCandleColor, BF
                Else
                    ChartBox.Line (x - 1, Y1)-(x + 1, Y2), iCandleColor, BF
                End If
                'wick  from high to lo
                Y1 = 4 + (dMaxPrice - aData(iCount).dHigh) * dHeight2RangeRatio   'hi
                Y2 = 4 + (dMaxPrice - aData(iCount).dLow) * dHeight2RangeRatio   'lo
                ChartBox.Line (x, Y1)-(x, Y2), iCandleColor
            Case ttLine 'only plot from close to close
                Y1 = 4 + (dMaxPrice - aData(iCount).dClose) * dHeight2RangeRatio
                Y2 = 4 + (dMaxPrice - aData(iCount - 1).dClose) * dHeight2RangeRatio
                ChartBox.Line (x - iBarSpacing, Y2)-(x, Y1), iTicCloseColor
        End Select
'************************vol data
        ChartBox.DrawStyle = vbSolid
        ChartBox.DrawWidth = 2
        Y1 = rSplit2 - 1
        Y2 = rSplit2 - (aData(iCount).iVol * (dHeightVol / dMaxVol))
        ChartBox.Line (x, Y1)-(x, Y2), iVolColor
        
'*******************set-up for next bar
        iNumBarsPloted = iNumBarsPloted + 1
        iTimeTrigger = 0
        iDateTrigger = 0
        iCount = iCount - 1
        x = x - iBarSpacing
    Loop
    
'****print vol data
    sTemp$ = "Volume: " & aData(iCount).iVol
    'draw a "blackout rect for better visibility of the text
    ChartBox.Line (1, rSplit1 + 3)-(1 + ChartBox.TextWidth(sTemp$), rSplit1 + 3 + ChartBox.TextHeight(sTemp$)), iBackColor, BF
    ChartBox.CurrentX = 1
    ChartBox.CurrentY = rSplit1 + 3
    ChartBox.Print "Volume: " & aData(iCount).iVol
    
    iX = 0
'Debug.Print "iNumBarsPloted: "; iNumBarsPloted

'******************************************
'********plot indicators
    Call PlotAvg
    Call PlotIndicator
    
'********draw dividers
    ChartBox.DrawStyle = vbSolid
    ChartBox.Line (0, rSplit1)-(ChartBox.ScaleWidth + 5, rSplit1), vbRed
    ChartBox.Line (0, rSplit2)-(ChartBox.ScaleWidth + 5, rSplit2), vbRed

'****************exit clean up
    ChartBox.DrawMode = iDmode
    ChartBox.DrawStyle = iStyle
    ChartBox.DrawWidth = iDrWidth
    ChartBoxV.Picture = ChartBox.Image
    IsChartDrawn = True
    IsDrawing = 0
    fClickingBarSpacing = 0
    Screen.MousePointer = vbDefault
End Sub

Private Sub mnuPuBarSpacing_Click()
    Dim sText As String, sInpResult As String
    
    sText$ = "Enter Bar Spacing....  " & vbCrLf & vbCrLf _
            & "Current Setting: " & iBarSpacing
    sInpResult$ = InputBox(sText$, sSettingChange$, iBarSpacing)
    
    If sInpResult$ <> "" And IsNumeric(sInpResult$) Then
        If Val(sInpResult$) < 1 Then Exit Sub
        iBarSpacing = CInt(sInpResult$)
        Call ChartBoxDraw
    End If
End Sub

Private Sub mnuPuBlankSpace_Click()
    Dim sText As String, sInpResult As String
    
    sText$ = "Enter Right side of chart 'Blank Space'....10 Minimum. " _
            & vbCrLf & vbCrLf & "Current Setting: " & iBlankSpace
    sInpResult$ = InputBox(sText$, sSettingChange$, iBlankSpace)
    
    If sInpResult <> "" And IsNumeric(sInpResult$) Then
        If Val(sInpResult$) < 10 Then Exit Sub
        iBlankSpace = CInt(sInpResult$)
        Call SetMargins
        Call ChartBoxDraw
    End If
End Sub

Private Sub mnuPuCancelDrawing_Click()
    fCancelDrawingTool = True
End Sub

Private Sub mnuPuCrossHairColor_Click()
    iCrossHairColor = GetColorDlg(iCrossHairColor)
End Sub

Private Sub mnuPuCrossHairMode_Click()
    Dim sText As String, sInpResult As String

    sText$ = "Enter new DrawMode for crosshairs...." _
            & "Any number from 1 to 16.  " _
            & "6,8,15 work best...   15 is default."
    sInpResult$ = InputBox(sText$, sSettingChange$, iCrossHairMode)
    
    If sInpResult$ <> "" And IsNumeric(sInpResult$) Then
        If sInpResult$ > 0 And sInpResult$ < 17 Then _
            iCrossHairMode = CInt(sInpResult$)
    End If
    
End Sub

Private Sub mnuPuIndSettings_Click()
    frmIndicators.Show 1, Me
End Sub

Private Sub mnuPuSettingsChart_Click()
    Call GetOptionsDlg
End Sub

Private Sub stbBottom_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    If InStr(stbBottom.Panels(4).Text, sUnknownSymbol$) <> 0 Then
        stbBottom.Panels(4).ToolTipText = "DblClick to edit"
    Else
        stbBottom.Panels(4).ToolTipText = sEmpty
    End If
End Sub

Private Sub stbBottom_PanelDblClick(ByVal Panel As MSComctlLib.Panel)
    Select Case Panel.Index
        Case 4
            'if the symbol in unknown then it can be entered by dblclk the symbol status panel
            If InStr(Panel.Text, sUnknownSymbol$) <> 0 Then MsgBox "left as exercise for....."
    End Select
End Sub

Private Sub SetupToolbar()
    
    tbLeft.ImageList = imgList  'set tb image list
    
    'set button images
    tbLeft.Buttons("ReDraw").Image = "ReDraw"
    tbLeft.Buttons("IncBarSpace").Image = "IncBarSpace"
    tbLeft.Buttons("DecBarSpace").Image = "DecBarSpace"
    tbLeft.Buttons("ScrollData").Image = "ScrollData"
    tbLeft.Buttons("OpenFile").Image = "OpenFile"
    tbLeft.Buttons("DownLoad").Image = "DownLoad"
    tbLeft.Buttons("Options").Image = "Options"
    tbLeft.Buttons("Indicators").Image = "Indicators"
    tbLeft.Buttons("DrawingTools").Image = "DrawingTools"
    tbLeft.Buttons("Camera").Image = "Camera"
    tbLeft.Buttons("About").Image = "About"
    
    'set tb tooltips
    tbLeft.Buttons("ReDraw").ToolTipText = "刷新"
    tbLeft.Buttons("IncBarSpace").ToolTipText = "增加Increase BarSpacing"
    tbLeft.Buttons("DecBarSpace").ToolTipText = "減少Decrease BarSpacing"
    tbLeft.Buttons("ScrollData").ToolTipText = "Scroll-LButton Left 1-RButton Right 1- +Shift 10+ Incr."
    tbLeft.Buttons("OpenFile").ToolTipText = "打開文件"
    tbLeft.Buttons("DownLoad").ToolTipText = "下載數據"
    tbLeft.Buttons("Options").ToolTipText = "選項"
    tbLeft.Buttons("Indicators").ToolTipText = "示例"
    tbLeft.Buttons("DrawingTools").ToolTipText = "繪制工具"
    tbLeft.Buttons("Camera").ToolTipText = "抓圖"
    tbLeft.Buttons("About").ToolTipText = "關于"
    
End Sub
Private Sub tbLeft_ButtonClick(ByVal Button As MSComctlLib.Button)

'Debug.Print Button.Key
    Select Case Button.Key  'handle tb click events
        Case "OpenFile"
            Call GetDataFile
        
        Case "DownLoad"
            frmDownLoad.Show 1, Me
        Case "ReDraw"
            Call ChartBoxDraw
        
        Case "IncBarSpace"
            If fClickingBarSpacing = True Or IsDrawing = True Then Exit Sub
            fClickingBarSpacing = True
            If iBarSpacing < 30 Then
                iBarSpacing = iBarSpacing + 1
            End If
            iCalcdAvailBars2Plot = (Int(rRightSideOffset / iBarSpacing) + 1)
            WriteIni sINIsetFile, "Settings", "BarSpacing", CStr(iBarSpacing)
            Call ChartBoxDraw
        
        Case "DecBarSpace"
            If fClickingBarSpacing = True Or IsDrawing = True Then Exit Sub
            fClickingBarSpacing = True
            If iBarSpacing > 1 Then
                iBarSpacing = iBarSpacing - 1
            End If
            iCalcdAvailBars2Plot = (Int(rRightSideOffset / iBarSpacing) + 1)
            WriteIni sINIsetFile, "Settings", "BarSpacing", CStr(iBarSpacing)
            Call ChartBoxDraw
        
        Case "ScrollData"
            'need to catch the right button click in the mouse up event

        Case "Options"
            Call GetOptionsDlg
        
        Case "Indicators"
            frmIndicators.Show 1, Me
        
        Case "DrawingTools"
            Set objDrawingTools = DrawingTools
            frmDrawingTools.Show 1, Me
            Set objDrawingTools = Nothing
        
        Case "Camera"
            Call CheckForSnapDir
            Call GetAndSaveSnapShot
        
        Case "About"
            frmAbout.Show 0, Me
    End Select
        
End Sub

Private Sub tbLeft_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
    'It's an ugly hack to get the right mouse click on the toolbar but since the click
    'won't handle right buttons and it fires after the mouseUp event so we need
    'to find the x-y coord. for the button and determine if is the one we want....
'Debug.Print "X:"; x; " y:"; y
'Debug.Print tbLeft.Buttons("ScrollData").Top; " "; tbLeft.Buttons("ScrollData").Top + tbLeft.Buttons("ScrollData").Height

    If y > tbLeft.Buttons("ScrollData").Top And _
        y < tbLeft.Buttons("ScrollData").Top + tbLeft.Buttons("ScrollData").Height Then
        If Shift Then  'shift button pressed.. large incr.
            If Button = 1 Then
                iScrolledAmount = iScrolledAmount + iScrollIncrement
            ElseIf Button = 2 Then
                iScrolledAmount = iScrolledAmount - iScrollIncrement
            End If
        Else  'normal 1 bar scroll increment
            If Button = 1 Then
                iScrolledAmount = iScrolledAmount + 1
            ElseIf Button = 2 Then
                iScrolledAmount = iScrolledAmount - 1
            End If
        End If
        If iScrolledAmount < 0 Then
            iScrolledAmount = 0
'        ElseIf iScrolledAmount > (iUBaData - iScrolledAmount) - iCalcdAvailBars2Plot Then
'            iScrolledAmount = (iUBaData - iScrolledAmount) - iCalcdAvailBars2Plot
        ElseIf iScrolledAmount > iUBaData - iCalcdAvailBars2Plot Then
            iScrolledAmount = iUBaData - iCalcdAvailBars2Plot
        End If
        Call ChartBoxDraw
        
        'check if button needs to be dis/enabled
        If iScrolledAmount = 0 And iUBaData - iCalcdAvailBars2Plot <= 0 Then
            tbLeft.Buttons("ScrollData").Enabled = False 'nothing to scroll
        Else
            tbLeft.Buttons("ScrollData").Enabled = True 'need to be able to scroll back
        End If
 
    End If
End Sub
Private Sub CheckForSnapDir()
    Dim sPath As String
    sPath$ = App.Path & "\Snaps"   ' Set the path.
    If Dir(sPath$, vbDirectory) = sEmpty$ Then 'not found... make
        MkDir sPath$
    End If
End Sub
Private Sub GetOptionsDlg()
    frmOptions.Show 1, Me
    Call GetIniSettings  'get any new settings
    Call SetColors
    Call SetMargins
    Call ChartBoxDraw
End Sub

Private Sub GetDataFile()
    Static fIn As Boolean
    If fIn Then Exit Sub  'stop DblClk on the toolbar from bring up the open dlg twice
    fIn = True
    sSymbol$ = sEmpty
    If Not OpenDataFile Then fIn = False: Exit Sub
    Call LoadData
    Call SetMargins
    Call ChartBoxDraw
    fKillSplash = True  'flag to unload splash/progress
    fIn = False  'ok to run again
End Sub


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频一二三区| 国产色产综合色产在线视频| 欧美电视剧免费观看| 国产精品萝li| 精品一区二区三区蜜桃| 在线观看91视频| 久久久精品欧美丰满| 亚洲第一狼人社区| 国产91在线|亚洲| 91精品视频网| 亚洲一区二区三区四区五区黄 | 蜜臀av性久久久久蜜臀aⅴ流畅 | 久久影院视频免费| 视频一区欧美精品| 色一情一伦一子一伦一区| 欧美va在线播放| 午夜精品影院在线观看| 色综合久久中文综合久久牛| 亚洲自拍另类综合| 97se亚洲国产综合在线| 久久久久久免费网| 免费在线观看一区| 欧美日韩成人在线| 午夜久久久影院| 一本大道久久a久久综合婷婷 | 中文字幕国产一区二区| 久久99热狠狠色一区二区| 9191国产精品| 免费欧美日韩国产三级电影| 欧美久久久久久久久中文字幕| 一区二区三区在线观看网站| 97久久精品人人爽人人爽蜜臀| 日本一二三不卡| 粉嫩欧美一区二区三区高清影视| 精品久久久久久久久久久久久久久久久| 日韩专区中文字幕一区二区| 欧美色图第一页| 亚欧色一区w666天堂| 欧美伊人久久久久久久久影院| 亚洲精品成人精品456| 色网站国产精品| 亚洲一级二级三级在线免费观看| 91福利在线导航| 亚洲第一久久影院| 日韩亚洲欧美中文三级| 国产在线看一区| 国产视频视频一区| 精品999在线播放| 美日韩一区二区| 日韩美女在线视频| 国产乱人伦偷精品视频免下载| 精品国产伦一区二区三区免费| 国产成人在线免费观看| 蓝色福利精品导航| 精品日产卡一卡二卡麻豆| 国产一区二三区| 中文字幕在线不卡国产视频| 97国产一区二区| 日本成人超碰在线观看| 久久免费视频一区| 91麻豆精品一区二区三区| 亚洲午夜激情网站| 欧美www视频| av在线综合网| 日韩在线观看一区二区| 国产婷婷一区二区| 欧美三级欧美一级| 久久99精品国产| 亚洲三级在线免费观看| 日韩一区二区三区三四区视频在线观看 | 久久精品国产一区二区三| 国产精品水嫩水嫩| 9191成人精品久久| 成人精品视频一区二区三区尤物| 亚洲综合图片区| 2欧美一区二区三区在线观看视频| 成人免费毛片a| 首页综合国产亚洲丝袜| 国产欧美日韩精品在线| 欧美日本在线看| 不卡av在线免费观看| 免费国产亚洲视频| 亚洲精品国产精华液| 国产亚洲成aⅴ人片在线观看| 欧美色综合影院| 成人免费毛片aaaaa**| 免费成人性网站| 欧美激情一区二区三区在线| 精品黑人一区二区三区久久| 99精品久久只有精品| 日韩精品一二三区| 一区二区三区四区视频精品免费| 日韩欧美在线1卡| 欧美午夜一区二区三区免费大片| 国产伦精品一区二区三区在线观看| 亚洲国产精品视频| 中文字幕视频一区| 久久久久久久久久美女| 欧美一区二区三区在线| 91黄色免费网站| 国产精品一区二区男女羞羞无遮挡 | 韩国欧美国产一区| 三级久久三级久久| 一个色在线综合| 成人免费一区二区三区在线观看| 久久久久亚洲蜜桃| 日韩欧美电影一区| 91精品国产综合久久久蜜臀图片| 欧美在线观看视频一区二区| 成人av影视在线观看| 国产成人一级电影| 国产一区不卡视频| 国产一区二三区好的| 国产一区三区三区| 国产中文字幕精品| 国内久久精品视频| 国产在线视频一区二区三区| 国精产品一区一区三区mba桃花| 美女一区二区三区在线观看| 青草av.久久免费一区| 麻豆国产精品777777在线| 蜜臀av一区二区在线观看| 理论片日本一区| 精品一区二区免费| 国产福利一区在线观看| 豆国产96在线|亚洲| 不卡的电影网站| 91国偷自产一区二区三区观看| 91精品1区2区| 91麻豆精品国产综合久久久久久| 欧美一区二区精美| 精品剧情在线观看| 久久久久99精品国产片| 国产精品美女视频| 一区二区三区视频在线看| 亚洲成av人在线观看| 麻豆一区二区三区| 国产成人精品午夜视频免费| 99久久精品一区| 欧美日本在线播放| 精品剧情在线观看| 中文字幕一区二区三| 一区二区欧美在线观看| 日本aⅴ亚洲精品中文乱码| 国产一区二区三区综合| 97久久精品人人做人人爽| 欧美日韩国产乱码电影| 精品国产3级a| 亚洲精选一二三| 另类小说一区二区三区| 北条麻妃一区二区三区| 欧美亚洲国产bt| 久久久久一区二区三区四区| 伊人一区二区三区| 久久国产剧场电影| 91丨porny丨国产| 日韩欧美一区二区三区在线| 国产精品成人一区二区三区夜夜夜| 亚洲一区精品在线| 激情六月婷婷综合| 欧洲一区二区三区在线| 久久久噜噜噜久久人人看| 亚洲一本大道在线| 国产在线视频精品一区| 欧美性猛片xxxx免费看久爱| 精品国产免费一区二区三区香蕉| 亚洲九九爱视频| 国产91在线看| 日韩精品一区二区三区视频| 亚洲精品写真福利| 国产不卡免费视频| 91丨九色丨黑人外教| 亚洲三级免费电影| 免费成人性网站| 91成人国产精品| 国产婷婷色一区二区三区在线| 亚洲国产sm捆绑调教视频| 丰满亚洲少妇av| 欧美r级电影在线观看| 亚洲综合色网站| 99国产精品久久久久久久久久| 欧美r级在线观看| 日韩制服丝袜av| 欧美情侣在线播放| 亚洲免费观看高清在线观看| 欧美精品第一页| 中文字幕在线视频一区| 国产在线精品不卡| 日韩写真欧美这视频| 亚洲影院在线观看| 91香蕉视频mp4| 亚洲欧美影音先锋| 成人福利视频在线| 国产精品系列在线| 国产成人啪午夜精品网站男同| 欧美成人性战久久| 狂野欧美性猛交blacked| 国产精品网站在线| 蜜桃传媒麻豆第一区在线观看| 欧美主播一区二区三区|