Top/Bottom Detector

This indicator tries to detect tops and bottoms based on time and price. It counts candles using a simple criteria in both bullish and bearish directions. The count is added by 1 for each consecutive candle that matches this criteria. When a candle doesn't match the criteria the count is broken and will start over. A top or bottom is detected when the count reaches its maximum and is plotted on the chart as a red arrow (top) or a green arrow (bottom). Be aware that a top or bottom can be extended for several time periods and is broken only when the criteria no longer matches. Depending on your trading strategy, it can be advised to wait for the top/bottom to be broken before entering the trade.

How it works
The bullish count compares current candle with a candle X periods in the past. If the current candle price is higher than the past candle it matches and the count is added by 1. The bearish count works in the same way as the bullish count except that it matches if the current candle price is lower than the past candle instead of higher. The default parameters is to compare current candle close with the candle close 4 periods in the past, using a count of 9 as the maximum that detects a top or bottom. These values can all be adjusted in the settings.

Multi Timeframe Table
The multi timeframe table is visible by default in the top right corner. It gives some insight in what the count is for the current ticker in different timeframes. A bullish count will color the cell green and a bearish count red. Note that only timeframes higher or equal to what is used on the chart can be displayed. Any lower timeframes in the table will be grayed out and show the text N/A.

Alerts can be setup when a bottom or top is detected. Using the "Any alert() function call" condition will alert both bottoms and tops.

오픈 소스 스크립트

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


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

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