imsharper

Rainbow MA Study

I've been interested in 'Multiple Moving Averages' lately and came across another script on here for a Rainbow MA.
Unfortunately its source is private and I wanted to try things out with other MA types so I put this together.
I also wanted to make it a seperate study so I could view regular bars without the clutter.
The general rule of thumb with these is the larger the price movement the wider the lines become giving you sort of a wave effect.
When the lines bunch up together you know there's going to be a breakout opportunity that will present itself.
Partly art, partly practical, entirely overkill. Enjoy!

The anchor multiplier should basically allow you to view things in relation to another time period, but it takes forever to load and will likely time out.
Since there are 63 MA's being calculated and plotted changing options on the fly takes some time to process and load.

I'm also pretty new to pine script so it's probably not the best implementation.

MA types: EMA (default), SMA, WMA, VWMA, SMMA, DEMA, TEMA, HullMA, ZEMA, TMA, SSMA
Play around with these to see some different effects.

The white line is the current close price.

Color 1 МАs: 2,3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Color 2 MAs: 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41
Color 3 MAs: 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74
Color 4 MAs: 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122
Color 5 MAs: 126, 131, 137, 143, 149, 155, 155, 161, 167, 173, 179, 185, 191, 197

You can more easily change the colors at the top of this source code instead of one by one in the settings.

If you want this on your main chart instead of a separate window you'll just need to change overlay=true in the study.

References & Thanks:
JustUncleL: For the timeframe anchor, MA variants, and generally awesome work. This is more practical.
StickyCheeba: For the idea.

Here's some shots to get an idea of the differences.

HullMA:

VWMA:

SSMA:

TMA:
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

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

차트에 이 스크립트를 사용하시겠습니까?