OPEN-SOURCE SCRIPT

Three-Bar Reversal Signal

Updated
This indicator is a simple setup of Three Bar Reversal. Logic of the code is as below.

Rules :
Long Setup
Bar 1 closes down
Low of Bar 2 is below the low of Bar 1 (and Bar 3)
Bar 3 closes above the high of both Bar 1 and Bar 2
Buy at the close of Bar 3

Short Setup
Bar 1 closes up
High of Bar 2 is above the high of Bar 1 (and Bar 3)
Bar 3 closes below the low of both Bar 1 and Bar 2
Sell at the close of Bar 3
Release Notes
Updated title and username
Release Notes
Updated the Script to generate indicator only when the bar is closed.
Release Notes
Updating the current script by changing the detection method from high to close. Hence reducing unwanted signals.
Release Notes
Updated visible marker on the chart to highlight 3-Bar setup for better recognition and decision making on 3 Bar reversal.
Chart patterns

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