I noticed the following lines in an existing strategy. Does this mean that the MACD indicator can be called as a method when writing Ninja script ?
// Plots MACD color when rising or falling
if (IsRising(MACD(Fast, Slow, Smooth)))
{
PlotBrushes[0][0] = Uptick;
}
else if (IsFalling(MACD(Fast, Slow, Smooth)))
{
PlotBrushes[0][0] = Downtick;
}

Comment