TheBearFighter

Moving Average Ribbon [TheBearFighter]

TheBearFighter 업데이트됨   

This code was written using:
•Pine Script Coding Conventions.

This script provides a very useful tool for new community users and professionals. It puts at your disposal a Moving Average Ribbon by hand to graph and easily find the ones with the highest performance. The creation of this script was motivated because in free TradingView accounts there is a limit of 3 indicators by chart, and with this tool you can draw up to 32 MA's at the same time!

Choose one of 10 types of MA´s:
•KAMA Kaufman's moving average.
•HULL Hull moving average.
•TEMA Triple exponencial moving average.
•LSMA Least square moving average.
•DEMA Double exponencial moving average.
•ALMA Arnaud Legoux moving average.
•WMA Weighted moving average
•EMA Exponencial moving average.
•VWMA Volume Weighted moving average.
•SMA Simple moving average.

Use the tooltips to know the lengths of MA´s.

A main characteristic of the script is that the lengths are in days but when changing the lowest timeframes, the same daily resolution is maintained. This gives us extreme precision in intraday timeframes, e.g 30 minutes.

Once this is understood, we can turning the MA´s on/off, and changing the timeframe to our liking.
Available timeframes: M, W, D, 4H, 1H, 30m, 15m, 5m.

Also the MA´s are colored for easy visualization and know if they grow or decrease.

Thank´s to @ImmortalFreedom to let me know more about HEX colors.

Thank´s to @HPotter for his KAMA.

릴리즈 노트:
Less is more :
-TEMA and DEMA were removed (I will create another exclusive indicator for this type).
-The amount of moving averages was reduced from 32 to 20.

Why? creating this script I learned a lot about the limitations of PineScript. I ran into errors like.
-compiled script code is too long: 60001. The limit is 60000.
-maximum number of output series (64) was reached.
-max security call 40. and many others.

So length variables were redefined so that NOW YOU CAN SET YOUR FAVORITE LENGTHS!. With the previous script, if any length was modified, it was completely deconfigured in intraday and the ma colors.
To do that go the section // initial lengths. SET THE LENGHTS YOU USE HERE---{ }

The funtion syminfo.type was added, the available timeframes and lengths are based on the asset class.
A color menu was added for better visualization, in light or dark themes.

If you want to change linewidth go to plot section. //---plots{ }

The most important change of this update is the message shown in intraday time frames. The message guides you how to configure in BARS PER SESSION (settings).

Available timeframe: 2H was added (only for crypto and forex).

Thanks to @Shauryam_or for his Candle Count script used in section //---table{ }
Thanks to @pabloadrianinostroza for motivating me to update this tool and make it useful to analyze stocks in the US and Argentine market.
Thanks to @topo for his feedback.
릴리즈 노트:
TEMA and DEMA were added again.
The number of moving averages was increased from 20 to 32 again.
릴리즈 노트:
Input source were added. Choose: open, high, low, close, hl2, hlc3, or ohlc4.
릴리즈 노트:
Upgrade to Pine Version 5!
릴리즈 노트:
Function of length, resolution and color were updated for an efficient runtime.
릴리즈 노트:
We continue to improve this valuable indicator!
- Now each moving average has its tag switch.
- Row switches were added.
- All lengths were checked even in the "change lengths" option.
Now you save a lot of time analyzing your favorite assets. Share this tool and leave your comment or suggestion ;)

오픈 소스 스크립트

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

면책사항

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

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