Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

CandleOutlineColor not work

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

    CandleOutlineColor not work

    I trying to stylize my chart.

    I managed to change the bars color with UpColor and DownColor properties, but when i write :

    CandleOutlineColor = Color.White;

    Not work.

    Next code change the CandleOutlineColor of the last bar...

    CandleOutlineColorSeries[0] = Color.Red;

    How can i change all bars Candle Outline ?
    Thank you

    #2
    Hello,

    This would need to get called on each OnBarUpdate, a simple example which colors the outline of All bars is the following:

    Code:
    protected override void OnBarUpdate()
    {
    	CandleOutlineColor = Color.Lime;
    }
    if you are using CalculateOnBarClose = true, the CurrentBar would remain uncolored, otherwise if it is False it should be included as well.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DayTradingDEMON, Today, 09:28 AM
    0 responses
    1 view
    0 likes
    Last Post DayTradingDEMON  
    Started by navyguy06, Today, 09:28 AM
    0 responses
    1 view
    0 likes
    Last Post navyguy06  
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    77 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    7 responses
    30 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X