OPEN-SOURCE SCRIPT

Inside Bar Setup [as]

Inside Bar Setup Indicator Description

The **Inside Bar Setup [as]** indicator is a powerful tool for traders to identify and visualize inside bar patterns on their charts. An inside bar pattern occurs when the current candle's high is lower than the previous candle's high, and the current candle's low is higher than the previous candle's low. This pattern can indicate a potential breakout or a continuation of the existing trend.

Key Features:

1. **Highlight Inside Bar Patterns:**
- The indicator highlights inside bar patterns with distinct colors for bullish and bearish bars. Bullish inside bars are colored with the user-defined bull bar color (default lime), and bearish inside bars are colored with the user-defined bear bar color (default maroon).

2. **Marking Mother Candle High and Low:**
- The high and low of the mother candle (the candle preceding the inside bar) are marked with horizontal lines. The high is marked with a green line, and the low is marked with a red line.
- These levels are labeled as "Range High" and "Range Low" respectively, with the labels displayed a few bars to the right for clarity. The labels have a semi-transparent background for better visibility.

3. **Target Levels:**
- The indicator calculates and plots potential target levels (T1 and T2) for both long and short positions based on user-defined multipliers of the mother candle's range.
- For long positions, T1 and T2 are plotted above the mother candle's high.
- For short positions, T1 and T2 are plotted below the mother candle's low.
- These target levels are optional and can be toggled on or off via the input settings.

4. **Customizable Inputs:**
- **Colors:**
- Bull Bar Color: Customize the color for bullish inside bars.
- Bear Bar Color: Customize the color for bearish inside bars.
- **Long Targets:**
- Show Long T1: Toggle the display of the first long target.
- Show Long T2: Toggle the display of the second long target.
- Long T1: Multiplier for the first long target above the mother candle's high.
- Long T2: Multiplier for the second long target above the mother candle's high.
- **Short Targets:**
- Show Short T1: Toggle the display of the first short target.
- Show Short T2: Toggle the display of the second short target.
- Short T1: Multiplier for the first short target below the mother candle's low.
- Short T2: Multiplier for the second short target below the mother candle's low.

5. **New Day Detection:**
- The indicator detects the start of a new day and clears the inside bar arrays, ensuring that the pattern detection is always current.

#### Usage:
- Add the indicator to your TradingView chart.
- Customize the inputs to match your trading strategy.
- Watch for highlighted inside bars to identify potential breakout opportunities.
- Use the marked range highs and lows, along with the calculated target levels, to plan your trades.

This indicator is ideal for traders looking to capitalize on inside bar patterns and their potential breakouts. It provides clear visual cues and customizable settings to enhance your trading decisions.

Note:
  1. This indicator is based on famous 15 min inside bar strategy shared by Subashish Pani on his youtube channel Power of stocks. Please watch his videos to use this indicator for best results.
BANKNIFTYbreakoutCandlestick AnalysisChart patternsInside BarNIFTYoptionspowerofstockssupportandresitance

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Wyłączenie odpowiedzialności