Hi guys,
I'm looking to add a moving average to the Mansfield relative strength indicator:
http://tos.mx/gFXXs0G
I'm aware that the zero line acts like a 200 period moving average cross. But I'm trying to add an additional 20 period moving average that is not the zero line but a trailing line like a moving average does with price.
Can anybody help?
add a 20 period moving average to the indicator
Thanks
I'm looking to add a moving average to the Mansfield relative strength indicator:
http://tos.mx/gFXXs0G
I'm aware that the zero line acts like a 200 period moving average cross. But I'm trying to add an additional 20 period moving average that is not the zero line but a trailing line like a moving average does with price.
Can anybody help?
add a 20 period moving average to the indicator
Thanks
Rich (BB code):
declare lower;
input Correlation_with_Security = "EDOW";
input length = 200;
input Period = AggregationPeriod.DAY;
input averagetype = AverageType.simple;
def price = close;
def RSD = close/(close(correlation_with_security));
def RSDavg = MovingAverage(averagetype, RSD, length);
plot RSM = (( RSD / RSDavg) - 1 ) * 100;
plot zeroline = 0;
zeroline.SetDefaultColor(GetColor(2));
Last edited: