TradingView
Trendoscope
4 Th07 2021 06:21

Double Top/Bottom - Ultimate 

Amazon.com, Inc.NASDAQ

Mô tả

Hellow traders, this is my final script regarding double top/bottom pattern recognition. This script is built based on zig zag indicator whereas the previous ones are built based on pivot points.

Double Top:
  • Recognition - Checks on Zigzag if LH is followed by HH
  • Confirmation - When low crosses under last lower pivot point on zigzag
  • Invalidation - When high crosses over HH


Double Bottom:
  • Recognition - Checks on Zigzag if HL is followed by LL
  • Confirmation - When high crosses over last higher pivot point on zigzag
  • Invalidation - When low crosses under LL


Few major changes in this version compared to previous ones:
  • Zigzag offers more simplicity in deriving the pattern and also enahnces accuracy. Things such as pivot distance, absolute peaks are removed as they are redundant.
  • Option to display risk per reward which defines how steep is the W-M triangle. This is simply the ratio of price difference between mid point to top most and bottom most points. In case of double top, downside is considered as reward and upside is considered as risk and with double bottom, downside is considered as risk and upside is considered as reward. Lower risk per reward signifies better trade.
  • Option to display stats which shows number of occurances of double top and bottom and how many times price crossed confirmation point and invalidation point (which are also marked with dashed lines) Stats are color coded. Higher success rates are colored in shades of green, lower success rates are colored in shades of orange whereas the neutral success rates are coloed in light yellow.


Example of stat shown in Neutral shade. I could not find any instrument which had confirmation rate less than 0.4 - which suggests confirmation rate for the patter is pretty strong:


Links for the other two scripts are here:

tradingview.com/script/PAFKk2WM-Double-Top-Bottom/
tradingview.com/script/QmKv7rP5-Double-Top-Bottom-V2/

Phát hành các Ghi chú

Added alerts

Phát hành các Ghi chú

Added option to set MaxRiskPerReward to filter out steep triangles.

Phát hành các Ghi chú

Fix 1m timeframe issue

Phát hành các Ghi chú

Updated solution for lower timeframe charts
Bình luận
fxindicatorsignal
Very good script, Sir. Is it possible to get confirmation at least one candle earlier?
Mikel618
MaddySTrade
Excellent Idea, but for reason its not working for me. saying "this study references too many candle in the history" error.
Trendoscope
@MaddySTrade, Hi, it has problem with shorter timeframes. Nothing I can do at this point. More to do with pine architecture.
MaddySTrade
@HeWhoMustNotBeNamed, thanks for your response. ok.., I tried with 1 hr BTC that also didnt work.. anyway thanks..
fxindicatorsignal
@MaddySTrade, it works even on 1 min on BTC, probably your use broker's chart which holds history from 2011 or 2013. Try on Binance chart
chapin2018
Hello,
Error reported in replay mode
Error for 'Pine cannot determine the referencing length of a series. Try using max_bars_back' .
Trendoscope
@chapin2018, Thanks. I am using max_bars_back. But, seems gets error in lower timeframes. I noticed that error in 1m timeframe. But, did work well on 1h onwards. I will check with tradingview about this error. This is likely because there are too many lines, labels and calculations.
marquism
@HeWhoMustNotBeNamed, Any solution to this? Can't seem to work in the timeframes I need sadly.
Trendoscope
@chapin2018, Error seems to have been fixed. Can you check.
Thêm nữa