View Full Version : DrawX() to the right of bar 0
Jim W.
01-18-2008, 11:42 AM
Using the 6.5 CustomPlotSample indicator as a starting point, I have created an indicator that allows me to draw vertical lines to the right of bar 0, between specified prices. I don't have a clue how to now DrawDot(), DrawSquare(), DrawDiamond(), etc. to the right of bar 0. Any hints would be appreciated.
NinjaTrader_Ray
01-18-2008, 11:57 AM
Unfortunately negative index values for the "right" of a bar is not currently supported.
TraderTom
01-24-2008, 09:36 AM
I also have a need for this. I want to plot some "time" clustering. Say, for example, the time distance between the last 2 swing points plotted into the future.
Can I plot it via an indicator rather than a vertical line?
If I can't when will NinjaScript allow this important need?
Thanks.
NinjaTrader_Ray
01-24-2008, 12:10 PM
You can always draw to the right of the most current bar by overriding the Plot() method. This is advanced programming and a sample is provided as part of the standard NT indicator list.
Otherwise, negative bar values is on our list for NT7 later this year.