Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    132 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X