A simple indicator that looks for potential breakout based on the last 3 bars.
Current bar's High is less than the 3rd bar's High and Current bar's Low to be higher the 3rd bar's Low.
This then predicts the market might breakout to new levels within 2-3 of the next coming bars. Entry occurs when have two inside days and close break candle three high or low. If need more information recommend google search.
I have coded when candle conducts breakout the formation above is the setup criteria !!
# 3 Bar Triangle Breakout # Assembled by BenTen at UseThinkScript.com # Converted from https://www.tradingview.com/script/Y18AgFJS-3-Bar-Triangle-Breakout/ def PHIGH =(high); def PLOW =(low); def ENTRYLONG = (close>open and close>close and close>high and low>low and low>low and high<high and high<high); def ENTRYSHORT= (close<open and close<close and close<low and low>low and low>low and high<high and high<high); # Plot Signals plot bullish = ENTRYLONG; bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); bullish.SetDefaultColor(Color.CYAN); bullish.SetLineWeight(1); plot bearish = ENTRYSHORT; bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN); bearish.SetDefaultColor(Color.CYAN); bearish.SetLineWeight(1);