♥ 0 |
Hello Mr Hahn, Can you please help convert the trading view ” Accumulation-Distribution Line into 200 EMA” for thinkorswim as shown below: “
Thank you
Marked as spam
|
Private answer
I really have no idea why on earth anyone would think to use a length of 200 on an exponential moving average. That requires 1,400 bars before it's fully computed. Not very smart. So the solution I have presented here includes adjustable inputs so folks can change the moving average type and length. For those looking for some guidance. Exponential moving averages should be use for lengths less than 50. Anything greater than 50 periods should be set to simple moving average. That's just common sense. But most folks don't understand how exponential moving averages are computed. So I have the following article to help spread the word: https://www.hahn-tech.com/moving-averages-exponential-problems/ Here is the Thinkorswim version of that code you provided from TradingView:
And one last bit of helpful information. Thinkorswim provides it's own version of Accumulation/Distribution and that study is named: "AccDist". However that study does not include a moving average. Marked as spam
|
Please log in to post questions.