OPEN-SOURCE SCRIPT
Updated NextBarColor

NextBarColor
This is two-bars pattern search/matching indicator.
and searches for the same combination of 2 bars (current and previous) in the past.
Then shows as % value how many times the next bar went up or down.
Grey bar compares ups and downs with all results, including cases when price did not move.
My testing is showing better results when current and previous bars colors are also used in the search.
This is two-bars pattern search/matching indicator.
- This indicator compares multiple values:
- current bar high with previous bar open
- current bar high with previous bar close
- current bar high with previous bar high
- current bar high with previous bar low
- current bar low with previous bar open
- current bar low with previous bar close
- current bar low with previous bar high
- current bar low with previous bar low
- current bar close/current_price with previous bar high
- current bar close/current_price with previous bar low
- current bar close/current_price with previous bar open
- current bar close/current_price with previous bar close
and searches for the same combination of 2 bars (current and previous) in the past.
Then shows as % value how many times the next bar went up or down.
Grey bar compares ups and downs with all results, including cases when price did not move.
My testing is showing better results when current and previous bars colors are also used in the search.
Release Notes
NextBarColorThis is two-bars pattern search/matching indicator.
- This indicator compares multiple values:
- current bar high with previous bar open
- current bar high with previous bar close
- current bar high with previous bar high
- current bar high with previous bar low
- current bar low with previous bar open
- current bar low with previous bar close
- current bar low with previous bar high
- current bar low with previous bar low
- current bar close/current_price with previous bar high
- current bar close/current_price with previous bar low
- current bar close/current_price with previous bar open
- current bar close/current_price with previous bar close
and searches for the same combination of 2 bars (current and previous) in the past.
Then shows as % value how many times the next bar went up or down.
Grey bar compares ups and downs with all results, including cases when price did not move.
My testing is showing better results when current and previous bars colors are also used in the search.
Release Notes
Added volume to the pattern check and set 60% match as default.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.