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 op1031, Yesterday, 05:16 PM
    1 response
    8 views
    0 likes
    Last Post NT-Roland  
    Started by sinpeople, Today, 07:20 AM
    1 response
    3 views
    0 likes
    Last Post NT-Roland  
    Started by Frank1000, Today, 03:05 AM
    1 response
    8 views
    0 likes
    Last Post NT-Roland  
    Started by ntdev, Today, 01:14 AM
    4 responses
    16 views
    0 likes
    Last Post ntdev
    by ntdev
     
    Started by ct, Today, 02:22 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X