MA slope presents the slope of a Moving Average line. The indicator displays a colored Moving Average, the color of which depends on the point value of the MA slope between two key points of the Moving Average.
It has five input parameters:
Calculation:
MA = MovingAverage(Applied price, Period, Method)
Diff = MA - PrevMA
PrevMA - MovingAverage(Applied price, Period, Method) Slope length bars ago

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/23124