What i am trying to achive for example drawing a plot or line at the best bid and coloring that according the number of contracts offered that level.
i was trying this but it doesnt seem to be working:
Add(new Plot(new Pen(linecolor1, 2), PlotStyle.Block, "Ask")); Add(new Plot(new Pen(linecolor2, 2), PlotStyle.Block, "Bid")); ratio=Math.Min(1f,((float)Math.Abs(askTick))/(((float)FixedNumber))); linecolor1=Color.FromArgb((int)(255f*ratio),Color.Red); Plots[0].Pen.Color = linecolor1; ratio2=Math.Min(1f,((float)Math.Abs(bidTick))/(((float)FixedNumber))); linecolor2=Color.FromArgb((int)(255f*ratio2),Color.Green); Plots[1].Pen.Color = linecolor2;
Comment