Hello all. Hope all is well.
I am using the ADX indicator. On some packages like Esignal, Ameritrade StrategyDesk, stockcharts.com, there is a place to enter 2 variables: length and smoothing.
However, on Tradestation, they only let you enter the length variable, but not the smoothing. Is there anyone that knows how to code this in TS please? All I need is to take the existing ADX indicator, and allow the smoothing to be added in addition to the length.
I found the formula to implement the smoothing. Apparently it's not just a simple moving average. If anyone could be so kind as to help me code it, since I'm not a programmer.
I got the formula from this webpage: http://www.linnsoft.com/tour/techind/adx.htm
ADXi = [(ADX(i-1) * (n - 1)) + DXi] / n
where n = Smoothing Period
DX = [ 100 * ABS( (+DI) - (-DI) ) ] / ( (+DI) + (-DI) )
This is the formula for the ADX. Notice, there are 2 variables, that can be input:
i: the length (this is something that standard TS and MC can be entered)
n: the smoothing. This is the variable that I wanted to put in that some software allows, but TS and MC's ADX's indicator formula doesn't give a place to enter.
Is there anyone that can code this that can allow both variables to be input? i and n? The standard ADX on TS only allows i.
Much appreciated or if anyone can forward to someone that knows how.
Thanks in advance
I am using the ADX indicator. On some packages like Esignal, Ameritrade StrategyDesk, stockcharts.com, there is a place to enter 2 variables: length and smoothing.
However, on Tradestation, they only let you enter the length variable, but not the smoothing. Is there anyone that knows how to code this in TS please? All I need is to take the existing ADX indicator, and allow the smoothing to be added in addition to the length.
I found the formula to implement the smoothing. Apparently it's not just a simple moving average. If anyone could be so kind as to help me code it, since I'm not a programmer.
I got the formula from this webpage: http://www.linnsoft.com/tour/techind/adx.htm
ADXi = [(ADX(i-1) * (n - 1)) + DXi] / n
where n = Smoothing Period
DX = [ 100 * ABS( (+DI) - (-DI) ) ] / ( (+DI) + (-DI) )
This is the formula for the ADX. Notice, there are 2 variables, that can be input:
i: the length (this is something that standard TS and MC can be entered)
n: the smoothing. This is the variable that I wanted to put in that some software allows, but TS and MC's ADX's indicator formula doesn't give a place to enter.
Is there anyone that can code this that can allow both variables to be input? i and n? The standard ADX on TS only allows i.
Much appreciated or if anyone can forward to someone that knows how.
Thanks in advance