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

Where to Put Candle Outline Color?

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

    Where to Put Candle Outline Color?

    I would like to add a Candle Outline Color to a script, but don't know where to put it. I got this out of the manual which looks like what I want:

    Examples
    // Sets the candle outline color to black
    CandleOutlineColor = Color.Black;


    Does it go under Summary?

    ///<summary>
    /// This indicator will color the price bar green when price closes below the SMA (20 period default) and light green when price closes above the SMA.
    ///</summary> programmed by phoenix
    [Description("This indicator will color the price bar green when price closes below the SMA (20 period default) and light green when price closes above the SMA.")]
    publicclass SMAOverUnderPaintBar : Indicator

    Or somewhere here?

    // Use this method for calculating your indicator values. Assign a value to each
    // plot below by replacing 'Close[0]' with your own formula.
    double ttt = SMA(Close, sMA)[0];
    SMAvg.Set(ttt);

    if (Close[0] > SMAvg[0])
    {
    if (showpaintbars)
    BarColor = Color.LightGreen;
    }
    elseif (Close[0] < SMAvg[0])
    {
    if (showpaintbars)
    BarColor = Color.Green;
    }
    }



    #2
    I wanted to Delete the question post because I took a good guess and it worked.

    Sorry about that.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 07:51 PM
    0 responses
    8 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    98 views
    1 like
    Last Post caryc123  
    Working...
    X