PDA

View Full Version : candleoutlinecolor


shooter
04-23-2009, 07:20 PM
Support,

In ninjascript, how can one retrieve the candleoutline color, can one do like:

tempoutlinecolor = ChartControl.ChartStyle.CandleOutlineColor;

I tried the above but it was giving error.

In ninjascript, when one colors bars, it automatically turnsoff the "CandleOutlineColor" for that bar. Is there anyway to turnit on by default in ninjascript?

--
Shooter

NinjaTrader_Josh
04-24-2009, 07:40 AM
shooter,

Use of ChartControl is not supported, but for accessing outline color you can try using this: http://www.ninjatrader-support.com/HelpGuideV6/CandleOutlineColor.html

If you color the bar you need to also color the outline.

saroj
09-16-2009, 11:59 AM
The documentation says: "* If you set the BarColor property and the CandleOutlineColor property is not set, the outline color will take the color set by the BarColor property."

...but it doesn't

and you write, "If you color the bar you need to also color the outline. "

what am I missing?

Please anser the following too:
How do I get the outline color that is in the chart property?

NinjaTrader_Josh
09-16-2009, 12:39 PM
Not sure what you mean. If you only do BarColor, the whole bar including the outline will become that color. If you want a separate outline color then you need to also use CandleOutlineColor. Accessing the chart property is not supported.

saroj
09-19-2009, 09:15 PM
Not sure what you mean. If you only do BarColor, the whole bar including the outline will become that color. If you want a separate outline color then you need to also use CandleOutlineColor. Accessing the chart property is not supported.

so you are saying that the documentation is not correct?

NinjaTrader_Bertrand
09-21-2009, 03:29 AM
saroj, no there's a simple distinction made: what is supported in the documents or reference sample is supported by us, the rest can be used, but could potentially break code in future versions of NinjaTrader so adaptations might be needed to continue using this script then.