Inside Bars/Candles [CodeCraftedTrading]This Pine Script indicator is designed to identify and visually represent inside bars or candles. Here's a breakdown of its features and functionality:
1. Inputs:
insideCandlesColor: Color of the inside bars or candles.
highColor: Color of the horizontal line representing the high of the inside bar.
lowColor: Color of the horizontal line representing the low of the inside bar.
showHighLowLabel: Option to display labels for the high and low prices.
2. Logic:
The script checks for the conditions of an inside bar:
high < high and low > low
If an inside bar is detected and is not already in the range:
* Stores the high and low prices of the previous bar.
* Records the parent bar index and sets the broken flag to false.
If the current bar's high exceeds the stored high or the low falls below the stored low, the broken flag is set to true.
If the current bar is within the stored high and low range, it is considered in-range.
The script then dynamically plots horizontal lines at the high and low prices of the parent bar until the inside bar is broken.
3. Visualization:
The inside bars are colored based on the insideCandlesColor.
Horizontal lines are drawn at the high and low prices of the parent bar within the inside bar.
Optional labels display the rounded values of the high and low prices.
4. Usage:
Apply the script to your chart.
Adjust the input parameters according to your preferences.
The indicator will highlight inside bars with colored bars and draw lines representing the high and low prices. Labels are optional.
5. Note:
Inside bars are bars where the entire price range is within the high and low of the previous bar.
The script uses historical bar information and visualizes the inside bars dynamically on the chart.
Insidebarbreakout
Inside Bar FailureThis indicator provides a statistical report on the Inside Bar Failure candlestick pattern popularized by Trader Dante. Based on the chart's bars, it can improve your edge on any markets and timeframes.
The Inside Bar Failure pattern refers to an Inside Bar breakout that failed to sustain momemtum and closed back within it.
The report is broken down into the different following sections: retracement , invalidation , continuation and breakout .
Each of them provides hindsights about the pattern price behavior and brings answers to questions such as: How often does price retrace? Does the pattern often invalidate? If it doesn't then does it break in the pattern's direction? How far does price go? What are the odds of a false breakout?
While there are many ways to make use of the metrics, my favorite use case is for developing directional and daily/weekly biases while refining my stop/entry/target positioning.
Miscellaneous
Highlights patterns on the chart;
Supports bar to bar analysis and replay functionalities;
Provides counts on the `Data Window` panel for debugging or computing your own metrics;
Settings
Show/hide for toggling different sections;
Report coloring and offset on the x axis;
Gaining Access
This is a private indicator and is available only for my Patrons. You can reach my Patreon page below from the link in my signature.