PDA

View Full Version : "Forcing" a Plot style from NinjaScript?


higler
03-15-2008, 05:19 PM
Is there a way to "force" a plot style when programming a custom indicator. I have some indicators that are only useful as a "bar" plot style. Is there a way to force it as a bar so that someone cannot select a line, dot, etc as an alternate plot style in the Indicator Dialog Box? Thanks.

NinjaTrader_Josh
03-15-2008, 05:49 PM
Try maybe something like:

if (Plots[0].PlotStyle != PlotStyle.Bar)
Plots[0].PlotStyle = PlotStyle.Bar;