Add conditions regarding whether the TMA is above or below zero
This commit is contained in:
parent
5dc8f68554
commit
051db20919
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user