ClassicScott

+ Multi-timeframe Multiple Moving Average Lines

ClassicScott 업데이트됨   
This is a pretty simple script that plots lines for various moving averages (what I think are the most commonly used across all markets) of varying lengths of timeframes of the user's choosing. Timeframes range from 5 minutes up to one month, so regardless if you're a scalper or a swing trader there should be something here for you.

There are 8 lines (that can be turned on/off individually), which may seem like a lot, but if you use two averages and want to display four different timeframes for each, you can do that. The nice thing is that because the lines start plotting from the current bar they won't clutter up the screen. And obviously having moving averages from different timeframes on your chart makes price action more difficult to read (I mean sure, you can make them invisible, but who wants to do that all the time).

For each line there are two labels. One with the moving average type, and the other with its specific timeframe. I can't include the moving average length because it's not a string input. If anyone has a workaround for this, let me know, otherwise I would simply recommend setting different colors depending on the length, or if you only use one or two lengths and one or two moving averages this shouldn't be an issue. I had to use two labels because for the label text I couldn't include more than one string input, this is why there is an input for the 'moving average type label distance.'' You will want to adjust this depending on if you are trading crypto, futures, or forex because in some cases there may still be label overlap.

Pretty much everything else is self-explanatory.

I've added alerts. I might need to modify them if I can, because it would be nice for them to state the name and timeframe of the moving average. But I think this will do for now.

Enjoy!
릴리즈 노트:
- This is a massive overhaul of the script
- Added lookback period for labels, so now you don't have to color-code or do whatever you might do to remember which lines are which period
- Reduced what was two, then became three different labels, down to a single one that has all the pertinent information for each individual MA. This being period, type, resolution. I've made this label much more legible now, so any issues with text running together are no longer.
- Added global options for color, line style, line width, and line length. This means you can change these things for all moving averages at just one input, if you want, say, the color to be the same for all of them, or the line style.
- Added options for text size for the labels so you can make them smaller or larger. This is a global option only. I just don't imagine anyone wanting different size text for different lines.

- I'll perhaps get to improving the alerts in the future (so an alert will give you more information than just "moving average #3 was crossed by price."

오픈 소스 스크립트

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

면책사항

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

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