OPEN-SOURCE SCRIPT
업데이트됨 Double Top/Bottom

Here is an attempt to identify double top/bottom based on pivot high/lows.
Logic is simple.
Double Bottom:
Double Top:
Prameters:
Logic is simple.
Double Bottom:
- Last two pivot High Lows make W shape
- Last Pivot Low is higher than previous Last Pivot Low.
- Last Pivot High is lower than previous last Pivot High.
- Price has not gone below Last Pivot Low
- Price breaks out of last Pivot High to complete W shape
Double Top:
- Last two pivot High Lows make M shape
- Last Pivot Low is higher than previous Last Pivot Low.
- Last Pivot High is lower than previous last Pivot High.
- Price has not gone above Last Pivot High
- Price breaks out of last Pivot Low to complete M shape
Prameters:
- Parameters PvtLenL, PvtLenR and waitforclose determines pivot points.
- FilterPivots clears repetitive pivots formed in same direction before calculating the possible double top/bottom.
For example: - CheckForAbsolutePeaks and AbsolutePeakLoopback works together. When CheckForAbsolutePeaks is enabled, script only generates double bottom or top signal if previous last pivot is absolute high or low for AbsolutePeakLoopback periods.
- ConsiderMovingAverage does two things. First, it makes sure that fast moving average and slow moving averages are aligned with the direction we are going to forecast. Second, it makes sure that the crossover happend recently and with last BarCrossoverLimit bars. For example, to call it double bottom, Fast MA should be higher than Slow MA and crossover of FastMA above SlowMA should have happened in last 10 bars (BarCrossoverLimit)
- PivotDisplayMode can be Actual, Filtered or None. Actual will display all pivot high low generated. Filtered will only display last 5 pivot high and pivot lows which are filtered. That means, it will remove the repetitive pivots formed without making pivots on the other side.
Welcome and suggestions and feedbacks.
릴리즈 노트
- Simplied array related code
- Added horizontal dashed line for double top/bottom confirmation candle
- Added alert condition for double top/bottom
릴리즈 노트
Add filterPivots logic back릴리즈 노트
- Improved filtering pivots
- Improved absolute peak detection
릴리즈 노트
- Using HMA 20/100 as default for moving average check
- Removed barCrossLimit. Instead check if moving average crossover happened after last high/last low peaks.
- Added condition to check distance between High and Low pivots of double top/bottom before considering them. For example,
Without pivot distance check, chart would look like this:
With pivot distance check,
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.