OPEN-SOURCE SCRIPT
업데이트됨

Compound SMAs

295
This script calculates all the moving averages from a range of lengths (from X to Y), and plots the lowest (or highest) average for each. This gives an interesting effect where the MA line gives space to the price when rising (or falling) and tightens up when price is falling (or rising). This may be useful for getting into a position earlier and riding a trend longer. It may also be useful for decreasing whipsaw exits in trending markets.

It has a technical limitation, due to how many calculations the for loop has to do, i have included a limit input for the number of bars back to use in each MA. It is set to 3000 arbitrarily just to avoid sluggishness or potential crashes.

To use, identify the long term trend and choose "Bullish" or "Bearish". Input the source and range of MAs you would like included, and how many bars to use in the calculation. Optionally you may add a smoothing factor as well at the cost of additional lag.
릴리즈 노트
Updated Chart

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.