Padrões gráficos
EMA & Bollinger BandsThis indicator combines three main functionalities into a single script:
1. Exponential Moving Average (EMA):
- Purpose: Calculates and plots the EMA of a chosen price source.
- Inputs:
- EMA Length: The period for the EMA calculation.
- EMA Source: The price series (such as close) used for the EMA.
- EMA Offset: Allows shifting the EMA line left or right on the chart.
- Output: A blue-colored EMA line plotted on the chart.
2. Smoothing MA on EMA:
- Purpose: Applies a secondary moving average (MA) on the previously calculated EMA. There is also an option to overlay Bollinger Bands on this smoothed MA.
- Inputs:
- Smoothing MA Type: Options include "None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", and "VWMA".
- Selecting "None" disables this feature.
- Choosing "SMA + Bollinger Bands" will additionally plot Bollinger Bands around the smoothed MA.
- Smoothing MA Length: The period used to calculate the smoothing MA.
- BB StdDev for Smoothing MA: The standard deviation multiplier for the Bollinger Bands (applies only when "SMA + Bollinger Bands" is selected).
- Calculation Details:
- The chosen MA type is applied to the EMA value.
- If Bollinger Bands are enabled, the script computes the standard deviation of the EMA over the smoothing period, multiplies it by the specified multiplier, and then plots an upper and lower band around the smoothing MA.
- Output:
- A yellow-colored smoothing MA line.
- Optionally, green-colored upper and lower Bollinger Bands with a filled background if the "SMA + Bollinger Bands" option is selected.
3. Bollinger Bands on Price:
- Purpose: Independently calculates and plots traditional Bollinger Bands based on a moving average of a selected price source.
- Inputs:
- BB Length: The period for calculating the moving average that serves as the basis of the Bollinger Bands.
- BB Basis MA Type: The type of moving average to use (options include SMA, EMA, SMMA (RMA), WMA, and VWMA).
- BB Source: The price series (such as close) used for the Bollinger Bands calculation.
- BB StdDev: The multiplier for the standard deviation used to calculate the upper and lower bands.
- BB Offset: Allows shifting the Bollinger Bands left or right on the chart.
- Calculation Details:
- The script computes a basis line using the selected MA type on the chosen price source.
- The standard deviation of the price over the specified period is then multiplied by the provided multiplier to determine the distance for the upper and lower bands.
- Output:
- A basis line (typically drawn in a blue tone), an upper band (red), and a lower band (teal).
- The area between the upper and lower bands is filled with a semi-transparent blue background for easier visualization.
---
How It Works Together
- Integration:
The script is divided into clearly labeled sections for each functionality. All parts are drawn on the same chart (overlay mode enabled), providing a comprehensive view of market trends.
- Customization:
Users can adjust parameters for the EMA, the smoothing MA (and its optional Bollinger Bands), as well as the traditional Bollinger Bands independently. This allows for flexible customization depending on the trader's strategy or visual preference.
- Utility:
Combining these three analyses into one indicator enables traders to view:
- The immediate trend via the EMA.
- A secondary smoothed trend that might help reduce noise.
- A volatility measure through Bollinger Bands on both the price and the smoothed EMA.
---
This combined indicator is useful for technical analysis by providing both trend-following (EMA and smoothing MA) and volatility indicators (Bollinger Bands) in one streamlined tool.
Adaptive Volatility Zones + MACD + RSI Strategy#### Strategy Overview:
This strategy is designed for trading on higher timeframes (from 4 hours and above) and combines several modern approaches to market analysis. It uses adaptive levels based on volatility, MACD and RSI indicators to confirm signals, and a trend filter (EMA 200). The strategy is optimized to work in trending market conditions and minimizes the number of false signals due to multi-layer filtering.
Jiggle CookieA compact indicator that spots fast intraday scalping opportunities by detecting fake breakouts and wicks around local highs or lows. It calculates a short-term price range to estimate stop/target levels, then flags potential entries with on-chart labels and optional alerts. When a candle’s wick extends beyond the identified micro-range (but snaps back), the script issues a reversal signal and plots suggested stop-loss and take-profit dots for handy risk management. Perfect for traders who enjoy catching those short bursts of volatility while keeping a tight handle on risk and reward.
EMA & Volume Profile with POCEMAs:
Blue line for the 9-day EMA.
Red line for the 15-day EMA.
Volume Profile:
Calculates the volume profile for the last 50 candles.
Adjusts automatically based on the selected length.
POC (Point of Control):
The most traded price level is highlighted as a yellow dotted line.
Notes:
The volume profile is simplified into 20 bins for efficiency and better visualization.
You can adjust the vpLength input to calculate the volume profile over a different number of candles.
Supertrend with Buy/Sell Signals//@version=5
indicator("Supertrend with Buy/Sell Signals", overlay=true)
// Input parameters
atrPeriod = input(10, title="ATR Period")
factor = input.float(3.0, title="Factor")
// Calculate ATR
atr = ta.atr(atrPeriod)
// Calculate Supertrend
upperBand = hl2 + (factor * atr)
lowerBand = hl2 - (factor * atr)
var float supertrend = na
var int direction = na
if (na(supertrend))
supertrend := close
direction := 1
else
if (close > supertrend)
supertrend := lowerBand < supertrend or direction == -1 ? lowerBand : supertrend
else
supertrend := upperBand > supertrend or direction == 1 ? upperBand : supertrend
direction := close > supertrend ? 1 : -1
// Plot Supertrend
plot(supertrend, color=direction == 1 ? color.green : color.red, linewidth=2, title="Supertrend")
// Generate Buy/Sell signals
buySignal = ta.crossover(close, supertrend)
sellSignal = ta.crossunder(close, supertrend)
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", title="Buy Signal")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", title="Sell Signal")
[Pattern] Bull Flag [AR]📈 Bullish Flag Pattern – TradingView Indicator
📌 Overview
The Bullish Flag Pattern indicator helps traders identify bullish flag formations, which typically signal a continuation of an uptrend. The script detects a strong uptrend (flagpole) followed by a sideways consolidation (flag) and alerts you when a breakout occurs.
🔹 Features
✔️ Detects bullish flag patterns automatically.
✔️ Marks possible flags and breakout points on the chart.
✔️ Sends alerts when a confirmed breakout happens.
✔️ Customizable parameters for fine-tuning detection.
🔧 Input Settings
Parameter Description Default Value
Flagpole Length Number of candles used to detect the uptrend. 20
Flag Length Number of candles to identify the consolidation. 10
Breakout Confirmation Candles Number of candles to confirm a breakout. 2
📊 How It Works
Detects a Flagpole:
The script identifies a strong uptrend by checking if the price has moved significantly in the last flagpoleLength candles.
Identifies the Flag:
The consolidation phase is detected when prices remain within a high-low range without breaking out.
Confirms a Breakout:
A breakout is marked when the price crosses above the flag’s high and is confirmed within breakoutConfirmation candles.
Alerts the User:
An alert is triggered when a breakout occurs.
📌 Visual Indicators
🔵 Blue Triangle → Marks a potential flag pattern.
🟢 Green Label → Signals a confirmed breakout.
🔵 Blue Line → Shows the flagpole range.
🟠 Orange Line → Highlights the flag’s consolidation zone.
🚨 Alerts
This script includes built-in alerts for breakout detection.
To enable alerts in TradingView:
Add the script to your chart.
Click on "Alerts" (top panel in TradingView).
Set condition to "Bullish Flag Breakout".
Choose notification method (popup, email, webhook, SMS).
Click Create Alert. 🎯
Now, you'll get notified whenever a breakout happens! 🚀
🛠 Customization
You can tweak the Flagpole Length, Flag Length, and Breakout Confirmation Candles to fit different markets and timeframes. Adjusting these settings helps to fine-tune pattern detection.
📚 Example Usage
Day Traders can use it on 5m-1H charts for short-term breakouts.
Swing Traders can apply it on 4H-Daily charts for larger trend confirmations.
Works well with volume indicators to validate breakout strength.
🔥 Pro Tips
Combine with RSI & MACD for extra confirmation.
Look for high volume on the breakout candle.
The best entries happen when price retests the flag breakout level.
💬 Support & Feedback
If you have suggestions or need modifications, feel free to reach out! 🚀📊
Happy Trading! 🎯📈
EMA Trend Dashboard//@version=6
indicator("Line Extension Example", overlay=true)
// Kullanıcı girişi
extendLeftInput = input.bool(false, title="Extend Left", group="Line Settings")
extendRightInput = input.bool(true, title="Extend Right", group="Line Settings")
// extendStyle için durum belirleyicisi
extendStyle = switch
extendLeftInput and extendRightInput => extend.both
extendLeftInput => extend.left
extendRightInput => extend.right
=> extend.none
// Slope hesaplaması ve çizgiyi oluşturma
startPrice = 1000
endPrice = 1050
lengthInput = 20
baseLine := line.new(bar_index - lengthInput + 1, startPrice, bar_index, endPrice, width=1, extend=extendStyle, color=color.new(color.blue, 0))
Bullish Candlestick Patterns for NQ 1minIdentifies and plots specific bullish candlestick patterns on a 1-minute chart of the NQ (Nasdaq 100 futures) market. Here's a breakdown of what the script does:
What This Script Does
This script scans the 1-minute NQ chart for specific bullish candlestick patterns and visually highlights them on the chart. Traders can use this indicator to quickly identify potential bullish reversal signals and make trading decisions accordingly.
How to Use
Add this script to a 1-minute NQ chart on TradingView.
Customize the input parameters (e.g., hammerWickRatio, engulfingBodyRatio) if needed.
Look for the labeled patterns on the chart to identify potential bullish opportunities.
Buy sell signals by Mahesh KolipakulaBased on the Exponential Moving Averages (EMA) with periods 5, 13, and 26: a buy signal will be generated when the 5-period EMA crosses above the 13-period and 26-period EMAs in upwards. Conversely, a sell signal will be triggered when the 5-period EMA crosses below the 13-period and 26-period EMAs in downwards.
Sadosi Gap SelecterThis indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data.
The Sadosi Gap Selecter is a powerful indicator designed to identify price gaps that occur between specific dates on the chart. It allows users to easily analyze price movements between selected weeks and days, highlighting these periods with visual boxes. This helps traders spot potential trend reversals and key price levels more effectively. It’s particularly valuable for those utilizing gap trading strategies to identify market inefficiencies.
The core functionality of this indicator is based on detecting price differences between two selected days within a defined date range. With the Start Day (day1) and End Day (day2) options, you can choose the exact days of the week you’d like to analyze. For instance, if you want to focus on price movements from Friday to Monday, simply select those days. Additionally, the Start Week (week1) and End Week (week2) settings allow you to narrow down the time frame on a weekly basis, making it easy to analyze price behavior during specific periods of the year.
For visual customization, several options are available. The Color (renk) setting lets you choose between red and yellow for the highlighted boxes. The Transparency (op) control adjusts the background opacity from 0% (fully opaque) to 100% (completely transparent), allowing you to manage how prominently the boxes appear on your chart. Furthermore, the Border (hat) option enables you to add or remove borders around the boxes, helping reduce visual clutter or emphasize certain areas depending on your preference.
Once applied to the chart, the indicator automatically generates boxes for the specified date ranges. The upper and lower bounds of each box are determined based on the price movement within that period, providing insights into the direction and strength of the trend. However, this tool does not generate definitive buy or sell signals on its own. It is recommended to use it alongside other technical analysis tools to make more informed trading decisions.
With the Sadosi Gap Selecter, you can gain clearer insights into price behavior, strengthen your trend analyses using historical data, and fully customize the settings to match your trading style for more effective results.
This indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data
Market Structure Indicator (MSI)The Market Structure Indicator (MSI) is designed to identify key support and resistance levels dynamically based on ATR multipliers.
* It helps traders detect price consolidation zones and potential breakout areas.
* The indicator includes a squeeze detection mechanism, highlighting periods of price compression where a breakout is likely to occur.
MLExtensionsRPLibrary "MLExtensionsRP"
A set of extension methods for a novel implementation of a Approximate Nearest Neighbors (ANN) algorithm in Lorentzian space.
normalizeDeriv(src, quadraticMeanLength)
Returns the smoothed hyperbolic tangent of the input series.
Parameters:
src (float) : The input series (i.e., the first-order derivative for price).
quadraticMeanLength (int) : The length of the quadratic mean (RMS).
Returns: nDeriv The normalized derivative of the input series.
normalize(src, min, max)
Rescales a source value with an unbounded range to a target range.
Parameters:
src (float) : The input series
min (float) : The minimum value of the unbounded range
max (float) : The maximum value of the unbounded range
Returns: The normalized series
rescale(src, oldMin, oldMax, newMin, newMax)
Rescales a source value with a bounded range to anther bounded range
Parameters:
src (float) : The input series
oldMin (float) : The minimum value of the range to rescale from
oldMax (float) : The maximum value of the range to rescale from
newMin (float) : The minimum value of the range to rescale to
newMax (float) : The maximum value of the range to rescale to
Returns: The rescaled series
getColorShades(color)
Creates an array of colors with varying shades of the input color
Parameters:
color (color) : The color to create shades of
Returns: An array of colors with varying shades of the input color
getPredictionColor(prediction, neighborsCount, shadesArr)
Determines the color shade based on prediction percentile
Parameters:
prediction (float) : Value of the prediction
neighborsCount (int) : The number of neighbors used in a nearest neighbors classification
shadesArr (array) : An array of colors with varying shades of the input color
Returns: shade Color shade based on prediction percentile
color_green(prediction)
Assigns varying shades of the color green based on the KNN classification
Parameters:
prediction (float) : Value (int|float) of the prediction
Returns: color
color_red(prediction)
Assigns varying shades of the color red based on the KNN classification
Parameters:
prediction (float) : Value of the prediction
Returns: color
tanh(src)
Returns the the hyperbolic tangent of the input series. The sigmoid-like hyperbolic tangent function is used to compress the input to a value between -1 and 1.
Parameters:
src (float) : The input series (i.e., the normalized derivative).
Returns: tanh The hyperbolic tangent of the input series.
dualPoleFilter(src, lookback)
Returns the smoothed hyperbolic tangent of the input series.
Parameters:
src (float) : The input series (i.e., the hyperbolic tangent).
lookback (int) : The lookback window for the smoothing.
Returns: filter The smoothed hyperbolic tangent of the input series.
tanhTransform(src, smoothingFrequency, quadraticMeanLength)
Returns the tanh transform of the input series.
Parameters:
src (float) : The input series (i.e., the result of the tanh calculation).
smoothingFrequency (int)
quadraticMeanLength (int)
Returns: signal The smoothed hyperbolic tangent transform of the input series.
n_rsi(src, n1, n2)
Returns the normalized RSI ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the RSI calculation).
n1 (simple int) : The length of the RSI.
n2 (simple int) : The smoothing length of the RSI.
Returns: signal The normalized RSI.
n_cci(src, n1, n2)
Returns the normalized CCI ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the CCI calculation).
n1 (simple int) : The length of the CCI.
n2 (simple int) : The smoothing length of the CCI.
Returns: signal The normalized CCI.
n_wt(src, n1, n2)
Returns the normalized WaveTrend Classic series ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the WaveTrend Classic calculation).
n1 (simple int)
n2 (simple int)
Returns: signal The normalized WaveTrend Classic series.
n_adx(highSrc, lowSrc, closeSrc, n1)
Returns the normalized ADX ideal for use in ML algorithms.
Parameters:
highSrc (float) : The input series for the high price.
lowSrc (float) : The input series for the low price.
closeSrc (float) : The input series for the close price.
n1 (simple int) : The length of the ADX.
regime_filter(src, threshold, useRegimeFilter)
Parameters:
src (float)
threshold (float)
useRegimeFilter (bool)
filter_adx(src, length, adxThreshold, useAdxFilter)
filter_adx
Parameters:
src (float) : The source series.
length (simple int) : The length of the ADX.
adxThreshold (int) : The ADX threshold.
useAdxFilter (bool) : Whether to use the ADX filter.
Returns: The ADX.
filter_volatility(minLength, maxLength, useVolatilityFilter)
filter_volatility
Parameters:
minLength (simple int) : The minimum length of the ATR.
maxLength (simple int) : The maximum length of the ATR.
useVolatilityFilter (bool) : Whether to use the volatility filter.
Returns: Boolean indicating whether or not to let the signal pass through the filter.
backtest(high, low, open, startLongTrade, endLongTrade, startShortTrade, endShortTrade, isEarlySignalFlip, maxBarsBackIndex, thisBarIndex, src, useWorstCase)
Performs a basic backtest using the specified parameters and conditions.
Parameters:
high (float) : The input series for the high price.
low (float) : The input series for the low price.
open (float) : The input series for the open price.
startLongTrade (bool) : The series of conditions that indicate the start of a long trade.
endLongTrade (bool) : The series of conditions that indicate the end of a long trade.
startShortTrade (bool) : The series of conditions that indicate the start of a short trade.
endShortTrade (bool) : The series of conditions that indicate the end of a short trade.
isEarlySignalFlip (bool) : Whether or not the signal flip is early.
maxBarsBackIndex (int) : The maximum number of bars to go back in the backtest.
thisBarIndex (int) : The current bar index.
src (float) : The source series.
useWorstCase (bool) : Whether to use the worst case scenario for the backtest.
Returns: A tuple containing backtest values
init_table()
init_table()
Returns: tbl The backtest results.
update_table(tbl, tradeStatsHeader, totalTrades, totalWins, totalLosses, winLossRatio, winrate, earlySignalFlips)
update_table(tbl, tradeStats)
Parameters:
tbl (table) : The backtest results table.
tradeStatsHeader (string) : The trade stats header.
totalTrades (float) : The total number of trades.
totalWins (float) : The total number of wins.
totalLosses (float) : The total number of losses.
winLossRatio (float) : The win loss ratio.
winrate (float) : The winrate.
earlySignalFlips (float) : The total number of early signal flips.
Returns: Updated backtest results table.
Breaks and Retests with MA Filter (SMA/EMA)This indicator is designed to identify breakouts at support and resistance levels, incorporating a Moving Average (MA) filter for further validation of the breakout conditions. Here's a brief explanation of the script:
Key Features:
Moving Average (MA) Filter:
Users can choose between two types of moving averages:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
The length of the selected MA can also be customized.
The script uses the MA to filter breakouts:
Bullish Breakout: A bullish breakout occurs when the price crosses above the resistance level, but the price must also be above the MA.
Bearish Breakout: A bearish breakout occurs when the price crosses below the support level, but the price must be below the MA.
Support and Resistance Levels:
Support is determined by the pivot lows (local minimum points) and Resistance is determined by the pivot highs (local maximum points) over a user-defined lookback range.
These levels are represented as boxes on the chart for easy visualization.
Breakout Detection:
The script detects when the price breaks above the resistance level (bullish breakout) or below the support level (bearish breakout).
The breakout conditions are validated using the selected Moving Average filter.
When a breakout occurs, a label is placed on the chart to mark the event ("Resistance Breakout" or "Support Breakout").
Alerts:
The script includes several alert conditions:
New Support Level (when a new support is identified)
New Resistance Level (when a new resistance is identified)
Resistance Breakout (when price breaks above resistance and MA filter is met)
Support Breakout (when price breaks below support and MA filter is met)
Alerts can be customized based on these conditions.
Conclusion:
This indicator helps traders by marking breakout points in the market with extra confirmation from a Moving Average filter, ensuring that breakouts occur in the direction of the trend. Traders can also get notified of these breakouts with customizable alerts, enhancing the decision-making process.
MA Crossover StrategyMA Crossover Strategy
This script implements a Simple Moving Average (SMA) crossover strategy, a widely used technique in trend-following trading systems. It helps traders identify potential buy and sell opportunities based on the relationship between two moving averages:
A fast-moving average (default: 9-period SMA)
A slow-moving average (default: 21-period SMA)
How It Works
Buy Signal (Long Entry): A long position is opened when the fast-moving average crosses above the slow-moving average. This suggests an uptrend is forming.
Exit Signal: The position is closed when the fast-moving average crosses below the slow-moving average, indicating a possible trend reversal.
Why This Script is Useful
Simple Yet Effective: Moving average crossovers are a core concept in technical analysis, providing a structured approach to identifying trends.
Customizable: Traders can modify the fast and slow MA lengths to suit different market conditions.
Visualization: The script plots the fast MA in blue and the slow MA in red, making crossovers easy to spot.
Automated Execution: It can be used as a strategy to backtest performance or automate trades in TradingView.
This script is ideal for traders looking for a straightforward trend-following strategy, whether they trade stocks, forex, or crypto.
Nifty Support-Resistance Breakout (Nomaan Shaikh) The Nifty Support-Resistance Breakout Indicator is a powerful tool designed for traders to identify key support and resistance levels on the Nifty index chart and detect potential breakout opportunities. This indicator automates the process of plotting dynamic support and resistance levels based on historical price action and provides clear visual signals when a breakout occurs. It is ideal for traders who rely on technical analysis to make informed trading decisions.
Previous Day High and Low//@version=6
indicator("Previous Day High and Low", overlay=true)
// Proměnné pro předchozí denní high a low
var float prevHigh = na
var float prevLow = na
// Uložení referencí na linie pro odstranění starších čar
var line highLine = na
var line lowLine = na
// Zjištění předchozího denního high a low
if (dayofweek != dayofweek )
// Odstranění starých čar, pokud existují
if (na(highLine) == false)
line.delete(highLine)
if (na(lowLine) == false)
line.delete(lowLine)
// Nastavení nových hodnot pro high a low
prevHigh := high
prevLow := low
// Vytvoření nových čar
highLine := line.new(x1=bar_index, y1=prevHigh, x2=bar_index + 1, y2=prevHigh, color=color.green, width=2, extend=extend.right)
lowLine := line.new(x1=bar_index, y1=prevLow, x2=bar_index + 1, y2=prevLow, color=color.red, width=2, extend=extend.right)
HTF Candle Range Box (Fixed to HTF Bars)### **Higher Timeframe Candle Range Box (HTF Box Indicator)**
This indicator visually highlights the price range of the most recently closed higher-timeframe (HTF) candle, directly on a lower-timeframe chart. It dynamically adjusts based on the user-selected HTF setting (e.g., 15-minute, 1-hour) and ensures that the box is displayed only on the bars that correspond to that specific HTF candle’s duration.
For instance, if a trader is on a **1-minute chart** with the **HTF set to 15 minutes**, the indicator will draw a box spanning exactly 15 one-minute candles, corresponding to the previous 15-minute HTF candle. The box updates only when a new HTF candle completes, ensuring that it does not change mid-formation.
---
### **How It Works:**
1. **Retrieves Higher Timeframe Data**
The script uses TradingView’s `request.security` function to pull **high, low, open, and close** values from the **previously completed HTF candle** (using ` ` to avoid repainting). It also fetches the **high and low of the candle before that** (using ` `) for comparison.
2. **Determines Breakout Behavior**
It compares the **last closed HTF candle** to the **one before it** to determine whether:
- It **broke above** the previous high.
- It **broke below** the previous low.
- It **broke both** the high and low.
- It **stayed within the previous candle’s range** (no breakout).
3. **Classifies the Candle & Assigns Color**
- **Green (Bullish)**
- Closes above the previous candle’s high.
- Breaks below the previous candle’s low but closes back inside the previous range **if it opened above** the previous high.
- **Red (Bearish)**
- Closes below the previous candle’s low.
- Breaks above the previous candle’s high but closes back inside the previous range **if it opened below** the previous low.
- **Orange (Neutral/Indecisive)**
- Stays within the previous candle’s range.
- Breaks both the high and low but closes inside the previous range without a clear bias.
4. **Box Placement on the Lower Timeframe**
- The script tracks the **bar index** where each HTF candle starts on the lower timeframe (e.g., every 15 bars on a 1-minute chart if HTF = 15 minutes).
- It **only displays the box on those bars**, ensuring that the range is accurately reflected for that time period.
- The box **resets and updates** only when a new HTF candle completes.
---
### **Key Features & Advantages:**
✅ **Clear Higher Timeframe Context:**
- The indicator provides a structured way to analyze HTF price action while trading in a lower timeframe.
- It helps traders identify **HTF support and resistance zones**, potential **breakouts**, and **failed breakouts**.
✅ **Fixed Box Display (No Mid-Candle Repainting):**
- The box is drawn **only after the HTF candle closes**, avoiding misleading fluctuations.
- Unlike other indicators that update live, this one ensures the trader is looking at **confirmed data** only.
✅ **Flexible Timeframe Selection:**
- The user can set **any HTF resolution** (e.g., 5min, 15min, 1hr, 4hr), making it adaptable for different strategies.
✅ **Dynamic Color Coding for Quick Analysis:**
- The **color of the box reflects the market sentiment**, making it easier to spot trends, reversals, and fake-outs.
✅ **No Clutter – Only Applies to the Relevant Bars:**
- Instead of spanning across the whole chart, the range box is **only visible on the bars belonging to the last HTF period**, keeping the chart clean and focused.
---
### **Example Use Case:**
💡 Imagine a trader is scalping on the **1-minute chart** but wants to factor in **HTF 15-minute structure** to avoid getting caught in bad trades. With this indicator:
- They can see whether the last **15-minute candle** was bullish, bearish, or indecisive.
- If it was **bullish (green)**, they may look for **buying opportunities** at lower timeframes.
- If it was **bearish (red)**, they might anticipate **a potential pullback or continuation down**.
- If the **HTF candle failed to break out**, they know the market is **ranging**, avoiding unnecessary trades.
---
### **Final Thoughts:**
This indicator is a **powerful addition for traders who combine multiple timeframes** in their analysis. It provides a **clean and structured way to track HTF price movements** without cluttering the chart or requiring constant manual switching between timeframes. Whether used for **intraday trading, swing trading, or scalping**, it adds an extra layer of confirmation for trade entries and exits.
🔹 **Best for traders who:**
- Want **HTF structure awareness while trading lower timeframes**.
- Need **confirmation of breakouts, failed breakouts, or indecision zones**.
- Prefer a **non-repainting tool that only updates after confirmed HTF closes**.
Let me know if you want any adjustments or additional features! 🚀
Estratégia Heikin-Ashi BreakoutEstratégia Heikin Ashi, quebra de movimento. Execução de ordens após o rompimento.
Candle Close TableChecks the previous closes of Daily H4 and H1 candles to give you an idea where the momentum should take us.
MA TREND 88 medias moviles en 1 solo script , para definir las tendencias del mercado de manera mas amplia.