diff --git a/indicators/TrafficLight.cs b/indicators/TrafficLight.cs index 07dc10b..8a7eee9 100644 --- a/indicators/TrafficLight.cs +++ b/indicators/TrafficLight.cs @@ -72,12 +72,14 @@ namespace NinjaTrader.NinjaScript.Indicators macdHistogram2[0] > macdHistogram2[1] && macdHistogram3[0] > macdHistogram3[1] && rsiHistogram[0] > rsiHistogram[1] && + tmaSlope[0] > 0.0 && tmaSlope[0] > tmaSlope[1]) PlotBrushes[0][0] = PositiveBrush; else if (macdHistogram1[0] < macdHistogram1[1] && macdHistogram2[0] < macdHistogram2[1] && macdHistogram3[0] < macdHistogram3[1] && rsiHistogram[0] < rsiHistogram[1] && + tmaSlope[0] < 0.0 && tmaSlope[0] < tmaSlope[1]) PlotBrushes[0][0] = NegativeBrush; else