OPEN-SOURCE SCRIPT

Breaking Bar [5ema]

Updated
I reused some functions, made by (i believe that):
LeviathanCapital: Market Sessions.
-----
How to use?
More suitable for Scalping

1. Plan A: Break out the highest bar
  • Find the bar with the largest range (high – low) and high volume of the previous N bars.
  • When the price close breaks down to highest bar, give a SELL signal.
  • When the price close breaks up the highest, give a BUY signal.


https://www.tradingview.com/x/VAYmCDGO/

2. Plan B: Break out the bar opened market
  • The price close breaks through the open bar, give a Buy and Sell signal.
  • Market sessions: Tokyo, London, Sydney, New York.


https://www.tradingview.com/x/gE9UnxT3/

-----
How to set up?
  • Choose the plan.
  • Lookback bar to find highest bar.
  • Right bar: What position of signal will appear from the open market bar (or high bar).
  • Number break: The maximum bars have price close breaked before giving signal.
  • Session time: The open and close of market.

-----
This indicator is for reference only, you need your own method and strategy.
If you have any questions, please let me know in the comments.
Release Notes
Update Time Zone of season for New York and Sydney.
Thanks
Candlestick Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer