Bishnu103

Squeeze Breakout using BB and KC [v1.0][Bishnu103]

Bishnu103 업데이트됨   
Squeeze Breakout using BB and KC
릴리즈 노트:
Squeeze Breakout using BB and KC
릴리즈 노트:
Strategy:

  • Instrument trading in a narrow range or in a squeeze. Bollinger Band width is narrow. Bollinger Band is within Keltner Channel.
    Enter long when price goes up with increased volatility and volume.A candle closed above Upper Bollinger Band (alert candle). Entry above high of the alert candle. Volume is high.
    Enter short when price goes down with increased volatility and volume. A candle closed above Lower Bollinger Band (alert candle). Entry below low of the alert candle. Volume is high.
    Fixed stop loss to protect the trade from sudden movement. Below middle BB for long. Above middle BB for short.
    Moving stop loss to exit when the momentum slows down or turns back. Exit a long trade in profit or loss when a candle closes below 8 EMA and price goes below low of that candle. Exit a short trade in profit or loss when a candle closes above 8 EMA and price goes above high of that candle.

Indicator Used:


  • Bollinger Band and ATR to define low volatility and squeeze.
    Keltner Channel to define the quality of the squeeze.
    8EMA as moving stop loss.
    EMAs (8, 21, 34, 55, 89) to define trend.
    200ma to define trend.

Controls:

  • Various controls of the strategy offers a flexibility to create various combination of key aspects and indicators along with parameters. User can change these values to find the winning combination appropriate to the timeframe and type of market. It can be used with all timeframes.
    BB Squeeze Check: When this option is checked, strategy will check if BB currently in squeeze or not. It uses ATR along with BB to perform this check.
    BB Squeeze Width: It’s numeric value to define squeeze width. Lesser the number, better the squeeze is.
    BB Within KC Check: When this option is checked, strategy will check if the BB is within KC at least one side (upper/ lower side) for last 6 candles. This ensures that the squeeze is good or volatility less.
    EMA Trend Check: When this option is checked, strategy will check if 8EMA > 21EMA > 34EMA > 55EMA > 89 EMA for long and 8EMA < 21EMA < 34EMA < 55EMA < 89 EMA for short. This ensures that the instrument is bullish or bearish in higher timeframe compared to the current timeframe.
    200MA Trend Check: When this is checked, strategy will look for only long trades if price is above and near to 200MA and only short trades if price is below and near to 200MA.
    Average Volume Check: When this option is checked, strategy will check if volume of current candle or alert candle is more than average volume.
    No Of Bars For Volume Check: This is the number to set number of candles to use for average volume calculation.
    Buy Session: Valid only if resolution (timeframe) is intraday, i.e. less than daily candle. It helps to limit buy signals during the specified timeframe.
    Exit Intraday: To be used only for Indian market. When this option is checked, strategy will exit the trade 3:16pm. This will be enhanced later to provide more flexibility.
    Entry Distance From Alert: This is to set the number of candles to wait after the alert candle for order trigger. E.g. if this is set to 5, strategy will wait for next 5 candles to break high (for long) or low (for short) of the alert candle. If the entry level is broken after 5 candles then order will not be triggered.
    Show BB: To display BB on chart.
    Show KC: To display KC on chart.
    Show 8EMA: To display 8EMA on chart.
    Show EMAs: To display EMAs (8, 21, 34, 55, 89) on chart.
    BB Length: Lookback period for BB.
    BB StdDev: Standard deviation to be used for BB.
    KC Length: Lookback period for KC.
    KC Mult: Multiplier to be used for KC.
    ATR Length: Lookback period for ATR.
릴리즈 노트:
There was an issue with intraday exit feature due to which it was not working on timeframes other than 15 min. Now it is resolved. It should work fine now for minutes and hourly timeframes if exit intraday option is marked.
오픈 소스 스크립트

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

면책사항

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

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