I am writing a strategy and I do need an indicator who print the slope value of the Exponential Moving Average EMA.
I've tried to create this indicator the inputs are:
1) The length of the EMA to be used.
2)The starting point of a series to be evaluated
I've copied and modified this example from the NT help:
// Original
// Prints the slope of the 20 period simple moving average of the last 10 bars
*
Print(Slope(SMA(20), 10, 0));
// Mine
// Prints the slope of the EMALenght period Exponential moving average of the //SeriesStartingPoint bars
Print(Slope(EMA(EMALenght), SeriesStartingPoint, 0));
The Script is compiling but when I load it on the chart the indicator box it is Empty.
Could you please have a look to it if I've made any mistake when I created the indicator.
Here attached a copy of the indicator that I made.
Thank you in advance for your support.
Marco
Comment