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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    152 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    305 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    176 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X