Add conditions regarding whether the TMA is above or below zero

This commit is contained in:
moshferatu 2024-05-23 14:25:42 -07:00
parent 5dc8f68554
commit 051db20919

View File

@ -72,12 +72,14 @@ namespace NinjaTrader.NinjaScript.Indicators
macdHistogram2[0] > macdHistogram2[1] && macdHistogram2[0] > macdHistogram2[1] &&
macdHistogram3[0] > macdHistogram3[1] && macdHistogram3[0] > macdHistogram3[1] &&
rsiHistogram[0] > rsiHistogram[1] && rsiHistogram[0] > rsiHistogram[1] &&
tmaSlope[0] > 0.0 &&
tmaSlope[0] > tmaSlope[1]) tmaSlope[0] > tmaSlope[1])
PlotBrushes[0][0] = PositiveBrush; PlotBrushes[0][0] = PositiveBrush;
else if (macdHistogram1[0] < macdHistogram1[1] && else if (macdHistogram1[0] < macdHistogram1[1] &&
macdHistogram2[0] < macdHistogram2[1] && macdHistogram2[0] < macdHistogram2[1] &&
macdHistogram3[0] < macdHistogram3[1] && macdHistogram3[0] < macdHistogram3[1] &&
rsiHistogram[0] < rsiHistogram[1] && rsiHistogram[0] < rsiHistogram[1] &&
tmaSlope[0] < 0.0 &&
tmaSlope[0] < tmaSlope[1]) tmaSlope[0] < tmaSlope[1])
PlotBrushes[0][0] = NegativeBrush; PlotBrushes[0][0] = NegativeBrush;
else else