PDA

View Full Version : Drawline


dennho
02-24-2010, 02:12 AM
I was using the DrawLine() function and everything was working well, it was drawing a line under the candles of the chart. Then, out of nowhere, the line now appears in the lower indicators, where my volume bars are, at the bottom of the chart! Why is this? I believe I never changed any of the parameters in the code. Here is an example of what I have:


LongBreakoutPrice = ( GetCurrentAsk() + (2 * TickSize ) );

DrawLine("Long", 15, LongBreakoutPrice, 0, LongBreakoutPrice, Color.Lime, DashStyle.Dash, 2);
http://img91.imageshack.us/img91/4267/es03102232010233tick.jpg

NinjaTrader_Bertrand
02-24-2010, 04:21 AM
dennho, any error in the log tab? Did you try a clean chart in a fresh workspace file as well?

If the issue persists, I would suggest refreshing the .NET framework on your machine and then retrying the same indicator that previously worked well.

Thanks

dennho
02-24-2010, 05:23 PM
Creating a new workspace fixed the issue, thanks.