Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

candleoutlinecolor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    candleoutlinecolor

    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

    #2
    shooter,

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

    If you color the bar you need to also color the outline.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      contrary to User Guide? candle outline color

      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?
      Attached Files

      Comment


        #4
        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.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          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?

          Comment


            #6
            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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            89 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            133 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X