Examples
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;
}
}
Comment