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 Max238, Today, 01:28 AM
    3 responses
    29 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by timko, Today, 06:45 AM
    2 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by habeebft, Today, 07:27 AM
    0 responses
    4 views
    0 likes
    Last Post habeebft  
    Started by Tim-c, Today, 03:54 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rocketman7, Today, 01:00 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X