Code to customize candlestick outlines and body based on a set of conditions.
#region Candle Definition
if ( COND1 && COND2 && COND3 )
{
CandleOutlineColor = Color.LimeGreen;
if(Open[0]<Close[0] && ChartControl.ChartStyleType == ChartStyleType.CandleStick ) {
BarColor = Color.Transparent;
} else{
BarColor = Color.Lime;
}
}
else if ( COND1 && COND2 && COND3 )
{
CandleOutlineColor = Color.DarkGreen;
...
...
...
(see attached file)
Category NinjaTrader 6.5 Miscellaneous
|
|
|