From: dynamix . <dy...@li...> - 2009-01-15 09:48:23
|
Hi, I have a problem with the candle plot. I created arrays of highs, lows, opens, closes and dates and this info displays fine if i create 4 line plots each with the same dateset based on each batch of info in those arrays. When i try to put that info into a candle plot display it either doesnt display anything or sometimes spits out a divide by 0 error. Im moving info from an arraylist to an array first - with the line plot either way it works, just not with the candle plot. I made a separate test app and that works fine, i dont see what im doing differently here? Here is my code. ElseIf strMainPlotType = "CandleStick" Then Dim pqrs As Integer pqrs = closedata1.Count - 1 Dim closedataarray As Double() = New Double(pqrs) {} Dim opendataarray As Double() = New Double(pqrs) {} Dim highdataarray As Double() = New Double(pqrs) {} Dim lowdataarray As Double() = New Double(pqrs) {} Dim datedataarray As Date() = New Date(pqrs) {} For z = 0 To closedata1.Count - 1 closedataarray(z) = closedata1(z) opendataarray(z) = opendata1(z) highdataarray(z) = highdata1(z) lowdataarray(z) = lowdata1(z) datedataarray(z) = datedata1(z) Next cp.AbscissaData = datedataarray cp.CloseData = closedataarray cp.OpenData = opendataarray cp.HighData = highdataarray cp.LowData = lowdataarray cp.Label = "Price" cp.BearishColor = Color.Red cp.BullishColor = Color.Green cp.StickWidth = 8 cp.Color = Color.Yellow 'cp.Style = CandlePlot.Styles.Filled PlotSurface2D1.Add(cp, PlotSurface2D.XAxisPosition.Bottom, PlotSurface2D.YAxisPosition.Right) = Automatic Refractometers by Rudolph Bench top Automatic Refractometers by Rudolph. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=5e78fd4210a4b5b02f39232585fee78d -- Powered by Outblaze |