OPEN-SOURCE SCRIPT

200-Day MA Slope Oscillator

Explanation:
ma200: The 200-day simple moving average of the closing price.
slope: The difference between the current value of the 200-day MA and its value 1 bar ago.
oscillator: We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
plot(): This plots the oscillator on a separate pane.

Wyłączenie odpowiedzialności