Optimized Engulfing StrategyOptimized Engulfing Strategy
The Optimized Engulfing Strategy is a trend-following system designed to capitalize on bullish and bearish engulfing patterns in the market. It uses a combination of price action, trend direction, and volatility-based risk management to execute high-probability trades.
Key Components:
Bullish Engulfing Pattern:
A bullish engulfing candle is identified when:
The current candle closes above its open (bullish).
The previous candle closes below its open (bearish).
The current candle's close is higher than the previous candle's open.
The current candle's open is lower than the previous candle's close.
This pattern signals potential bullish momentum.
Bearish Engulfing Pattern:
A bearish engulfing candle is identified when:
The current candle closes below its open (bearish).
The previous candle closes above its open (bullish).
The current candle's close is lower than the previous candle's open.
The current candle's open is higher than the previous candle's close.
This pattern signals potential bearish momentum.
Trend Confirmation:
Trades are only taken in the direction of the trend:
Buy: When the 50-period SMA (simple moving average) is above the 200-period SMA, indicating an uptrend.
Sell: When the 50-period SMA is below the 200-period SMA, indicating a downtrend.
Risk Management:
Stop Loss: Placed below the low of the engulfing candle (for buys) or above the high (for sells), with an additional buffer based on the ATR (Average True Range) multiplied by a user-defined factor (default: 1.5).
Take Profit: Calculated using a fixed risk-to-reward ratio (default: 1:2), ensuring a potential reward that is double the risk.
Session Filtering:
Trades can be limited to specific trading hours using a customizable session filter (default: 24 hours).
Trade Execution:
Separate logic is implemented for buy and sell trades, allowing independent toggling of long or short positions via user inputs.
Visualization:
Bullish and bearish engulfing candles are highlighted on the chart for clarity.
The ATR value is displayed in the top-right corner of the chart for reference.
How It Works:
Identify a bullish or bearish engulfing pattern.
Confirm the direction of the trend using the 50 SMA and 200 SMA.
Ensure the market is within the allowed session filter (e.g., London or New York sessions).
Enter a trade if all conditions are met:
Long trades for bullish engulfing patterns in an uptrend.
Short trades for bearish engulfing patterns in a downtrend.
Manage the trade using a stop loss and take profit based on ATR and the risk-reward ratio.
Análisis de tendencia
Daily Open LineIndicator Goal/Objective:
This is a Simple Code to show Daily Open Level in chart
This script plots a circle at the open price of the current day on the chart.
It marks the first bar's open price of each new trading day and
keeps the same value for the rest of the day until a new trading day begins.
It is only for analysis purpose only.
it is not a new indicator and can be replica of any other persons indicator.
The purpose of making indicator as an individual indicator is only for easiness.
CryptoBoost RSI Ultimate Optime v2.5RSi modificado que te permitira encontrar zonas de entrada en compra, como asi momentos para realizar correctamente tus zonas de salidas o tomas de ganancias
RSI / STOCH DIRECTION BUYMomentum indicator using rsi and stochastic.
When rsi is above the rsi moving average and the stochastic K is above D.
BUY signal occurs when these conditions are met.
XAUUSD FAMILY STRATEGYThe stoploss and profit visuals sometimes are not visible because profits are being hit right away so no time to display the visuals.
- Inverse Fisher Transform on Stochastic
- Added Buy/Sell Signals based on retracement on defined levels
- Added TP and SL Visuals
- Added customizable settings
For
XAUUSD
on 15m Timeframe
Default setings are already in place
【FREE】MAKE YOUR SIGNこのインジケーターは、複数のテクニカル指標を自分で組み合わせて売買判断を補助するためのツールです。
有料版もあるので、気になる方は連絡ください。
1. **売買サイン表示**:
- **移動平均線 (MA)**、**RSI (相対力指数)**、**Stochastic (ストキャスティクス)**、および指定された時間帯での条件に基づいて、買いサイン(買いシグナル)と売りサイン(売りシグナル)をチャート上に表示します。
- サインは三角形の形で表示され、条件が満たされると、買い(上向き三角形)または売り(下向き三角形)が表示されます。
- また、アラート機能もあり、売買条件が成立するとアラートが送信されます。
2. **フィボナッチラインの表示**:
- 前日高値・安値を基にしたフィボナッチリトレースメントのラインを表示します。これにより、価格がどのレベルに達する可能性があるかを視覚的に把握できます。
3. **通貨強弱ヒートマップ**:
- 複数の通貨ペアのトレンド(上昇または下降)をEMA(指数移動平均)を使って分析し、その結果をヒートマップ形式で表示します。これにより、複数の通貨ペアの強弱を視覚的に比較できます。
- 各通貨ペアの異なる時間軸(1日、4時間、1時間など)のトレンドが色で表示され、トレンドの強さを一目で確認できます。
This indicator is a tool designed to assist in making buy and sell decisions by allowing you to combine multiple technical indicators according to your preferences.
There is also a premium version available, so feel free to contact me if you're interested.
1. **Buy/Sell Signal Display**:
- Based on conditions involving **Moving Averages (MA)**, **RSI (Relative Strength Index)**, **Stochastic**, and a specified time range, it displays buy and sell signals on the chart.
- The signals are shown as triangles (upward for buy, downward for sell) when conditions are met.
- It also includes an alert function that sends notifications when buy or sell conditions are triggered.
2. **Fibonacci Lines Display**:
- It plots Fibonacci retracement levels based on the previous day's high and low. This helps visualize potential price levels the market might reach based on past price movement.
3. **Currency Strength Heatmap**:
- Analyzes the trend of multiple currency pairs using EMAs (Exponential Moving Averages) and displays the results in a heatmap format.
- This heatmap shows the trend (upward or downward) of various currency pairs across different timeframes (e.g., 1D, 4H, 1H), allowing you to easily compare the relative strength of currencies.
EMA 100/200 TRENDLINEThis indicator uses two Exponential Moving Averages (EMA): one with a length of 100 periods and the other with a length of 200 periods.
When the EMA 100 crosses above the EMA 200, the EMA 100 line turns green, and the EMA 200 line turns red.
When the EMA 100 crosses below the EMA 200, the EMA 100 line turns red, and the EMA 200 line turns green.
The indicator also allows users to adjust:
The length of both EMAs
The color of each EMA line
The thickness of the lines
This helps traders visually identify trend changes based on the crossover of these two EMAs.
Market Structure CHoCH/BOS (Fractal) [vandji]Explication de la stratégie Market Structure CHoCH/BOS (Fractal)
Introduction
La stratégie Market Structure CHoCH/BOS (Fractal) est conçue pour analyser les structures de marché en identifiant les changements de caractère (Change of Character - CHoCH) et les cassures de structure (Break of Structure - BOS) basées sur des fractales. Cette approche permet aux traders de repérer les renversements de tendance ainsi que la continuation de celle-ci à l'aide d'un outil visuel intuitif et de niveaux clés marqués directement sur le graphique.
Fonctionnement de l'indicateur
L'indicateur utilise des fractales pour identifier des points hauts et bas significatifs dans le marché. Ces points permettent de :
Identifier les structures haussières (Bullish) :
Une cassure d'un sommet fractal indique une continuation ou un renversement haussier.
Des niveaux de support sont tracés pour repérer les zones où le prix peut rebondir.
Identifier les structures baissières (Bearish) :
Une cassure d'un bas fractal signale une continuation ou un renversement baissier.
Des niveaux de résistance sont tracés pour surveiller les zones où le prix peut se retourner.
L'indicateur utilise également des labels visuels tels que CHoCH et BOS :
CHoCH (Change of Character) : Indique un changement de tendance.
BOS (Break of Structure) : Confirme la continuation de la tendance.
Visualisation des Niveaux Clés
Support : Tracé lorsque la structure haussière est identifiée.
Résistance : Tracée lorsque la structure baissière est détectée. Ces niveaux servent de repères pour placer des ordres ou évaluer la force de la tendance.
Avantages
Identification claire des tendances : Les CHoCH et BOS aident à distinguer les renversements des continuations.
Zones clés définies : Les supports et résistances fractals donnent des points d'entrée ou de sortie potentiels.
Convient aux styles variés de trading : Applicable pour le scalping, le day trading ou le swing trading.
Exemple Visuel
Graphique annoté
L'image suivante illustre le fonctionnement de l'indicateur sur un graphique.
Les sommets fractals haussiers et baissiers sont marqués.
Les niveaux de support et de résistance sont dessinés.
Les labels CHoCH et BOS indiquent des points importants de renversement ou de continuation.
Price Projection by Linear RegressionPurpose:
This is a TradingView Pine Script indicator that performs a linear regression on historical price data to project potential future price levels. It's designed to help traders visualize long-term price trends and potential future price targets.
Key Components:
User Inputs:
Historical Data Points (default 1000 bars) - The amount of historical data used to calculate the trend
Years to Project (default 10 years) - How far into the future to project the price
Technical Implementation:
Uses linear regression (ta.linreg) to calculate the trend slope
Converts years to trading days using 252 trading days per year
Limits visible projection to 500 bars due to TradingView's drawing limitations
Projects prices using the formula: current_price + (slope × number_of_bars)
Visual Elements:
Blue line showing actual historical prices
Red projection line showing the expected price path
Label showing the projected price at the visible end of the line
Information table in the top-right corner showing:
Current price
Final projected price after the full time period
Limitations:
Can only display projections up to 500 bars into the future (about 2 years) due to TradingView limitations
The full projection value is still calculated and shown in the table
Past performance doesn't guarantee future results - this is a mathematical projection based on historical trends
Usage:
Traders can use this to:
Visualize potential long-term price trends
Set long-term price targets
Understand the historical trend's trajectory
Compare current prices with projected future values
Index Indicator ProThis script, **Index Indicator Pro**, is a versatile trading tool that provides buy and sell triggers based on a combination of technical indicators. Key features include:
1. **Signal Generation**: It identifies potential buy and sell opportunities, marking them with labels directly on the chart.
2. **Dynamic Calculations**: Utilizes multiple indicators and price-based calculations for enhanced flexibility.
3. **Customizable Parameters**: The script offers input options to adjust key components, allowing users to fine-tune it to their trading style.
4. **Visual Elements**: Includes clear chart markings and overlays for better decision-making.
This tool is designed to assist traders in analyzing market conditions and identifying key price levels.
Cloud TxKO CryptoIchimoku Cloud TK Cross Candle Open Open Crypto
The TK Cross in the Ichimoku Cloud system occurs when the Tenkan-Sen (Conversion Line) crosses the Kijun-Sen (Base Line), signaling momentum shifts or potential trend changes.
Bullish Cross: Tenkan-Sen crosses above Kijun-Sen, indicating upward momentum.
Bearish Cross: Tenkan-Sen crosses below Kijun-Sen, signaling downward momentum.
Signal Strength:
Above the Cloud: Strong signal.
Inside the Cloud: Moderate signal.
Below the Cloud: Weak signal.
The TK Cross is vital for identifying trends and is more effective when combined with other Ichimoku components like the Kumo Cloud and Chikou Span.
weakly dividesThis indicator takes the last weekly candle and divides it into the number the user wants. This is a great strategy.
Rabbit Moves (Trend Base)The Rabbit Moves (Trend-Based) indicator is a reliable and user-friendly tool designed to help traders identify potential trend reversals in the market. It works by highlighting key moments in price action that signal a shift in momentum, enabling traders to make informed decisions with confidence.
How It Works
Bullish Reversal Signal:
This signal appears during a downtrend and indicates a potential upward shift in price momentum. It highlights areas where buying pressure is starting to dominate, offering traders the opportunity to anticipate bullish market movements.
The indicator marks these signals with a "Buy" label below the candlestick to make them easily identifiable.
Bearish Reversal Signal:
This signal appears during an uptrend and indicates a potential downward shift in price momentum. It highlights areas where selling pressure is beginning to take control, signaling traders to prepare for bearish market movements.
The indicator marks these signals with a "Sell" label above the candlestick for clear visibility.
Alerts for Convenience:
The indicator includes built-in alerts that notify traders in real-time whenever a bullish or bearish reversal signal is detected. This ensures that traders stay updated on important market movements without constantly monitoring the charts.
Benefits of Using Rabbit Moves
Streamlines Trading Decisions:
Simplifies the process of identifying potential market reversals, saving time and effort for traders.
Enhances Trading Confidence:
Offers clear and actionable signals, helping traders act decisively in dynamic market conditions.
Customizable Features:
Includes adjustable settings to cater to different trading strategies and preferences.
Versatile Application:
Suitable for trading in various markets, including forex, stocks, and cryptocurrencies, where candlestick charts are used.
Real-Time Updates:
Provides immediate alerts, ensuring traders can react quickly to market changes.
Why This Indicator Is Unique
Rabbit Moves (Trend-Based) is specifically designed to focus on key price action signals that reflect shifts in market momentum. By combining pattern recognition with trend analysis, it delivers meaningful insights that traders can rely on.
Disclaimer:
This indicator is for educational and informational purposes only and is not intended as financial advice. Past performance is not indicative of future results. Always apply appropriate risk management in your trading.
With Rabbit Moves (Trend-Based), traders gain a practical and efficient tool to navigate market trends and capitalize on high-probability opportunities.
Engulfing Candle by SmanovThis custom Pine Script indicator highlights bullish and bearish engulfing candles while ensuring the previous candle is not an inside bar (relative to the candle before it). Engulfing candles are often seen as potential reversal signals. By including an extra filter that excludes so-called “inside bars,” the indicator aims to provide stronger and more reliable signals.
How It Works
Bullish Engulfing Condition
The current candle is bullish (close > open).
The current candle’s low is lower than the previous candle’s low, and the current candle’s high is higher than the previous candle’s high (true “engulfing” from top to bottom).
The current candle closes above the previous candle’s high (confirms a breakout above the previous high).
Bearish Engulfing Condition
The current candle is bearish (close < open).
The current candle’s high is higher than the previous candle’s high, and the current candle’s low is lower than the previous candle’s low.
The current candle closes below the previous candle’s low (confirms a breakdown below the previous low).
Non-Inside-Previous-Bar Filter
The indicator checks the previous candle to ensure it is not an inside bar (where the entire high-low range of the previous candle sits inside the range of the candle before it).
By doing so, the indicator ignores signals where the previous candle is potentially indecisive or “inside.”
When these conditions are met, the indicator plots a triangle above (for bearish) or below (for bullish) the candle. You can also enable alerts to receive notifications each time a valid engulfing candle forms.
Features
Clear Markers on the Chart: Triangles appear near the bars that fulfill the engulfing criteria, simplifying quick identification of potential reversal points.
Non-Inside Bar Filtering: Reduces false signals by ensuring the previous candle range is not contained within the range of the candle before it.
Alert Conditions: Create TradingView alerts to be notified via push messages, email, or pop-ups whenever a bullish or bearish engulfing setup occurs.
Easy Customization: You can tweak the logic for stricter or looser engulfing definitions or add your own additional filters (volume, RSI, etc.) if needed.
How to Trade with It
Reversal Opportunities
Bullish Engulfing: Signals a potential bullish reversal. Traders might look to go long if other supporting factors (support level, bullish divergence, etc.) confirm the trend change.
Bearish Engulfing: Signals a potential bearish reversal. Traders might go short if there is additional confluence (resistance level, overbought conditions, etc.).
Combine with Other Indicators
While an engulfing candle by itself can be meaningful, adding a momentum oscillator (e.g., RSI, MACD) or volume analysis often strengthens confirmation.
Look for bullish engulfing signals near known support levels, or bearish engulfing signals near known resistance levels.
Risk Management
Place stop-loss orders below (for bullish entries) or above (for bearish entries) the engulfing candle to reduce risk.
Use your usual position sizing and money management rules.
Avoid Choppy Markets
Because this indicator focuses on engulfing patterns that break the previous candle’s high or low, it can reduce whipsaws in sideways markets. Still, confirm that the market isn’t in an extended range before acting.
Disclaimer:
This indicator is a technical tool designed to assist traders in identifying potential reversal points. It is not a standalone trading system. Always practice proper risk management, and confirm signals with additional analysis before entering any trade.
Dawud Range Rover NegativeThis indicator is designed to provide a dynamic, non-repainting oscillator that adapts to price action and reflects momentum shifts with enhanced accuracy. It applies adaptive smoothing techniques to reduce noise and normalize price movements within a custom range. Unlike conventional oscillators, this version introduces an automatic negative adjustment when price remains weak for consecutive bars, ensuring a more responsive and realistic representation of market conditions.
The script utilizes a rolling min/max normalization method, ensuring values stay within an adaptive range based on historical price action. This feature helps traders identify extended overbought and oversold conditions without static thresholds, making it more versatile across different assets and timeframes. Additionally, all calculations are stored using non-repainting logic, preserving historical accuracy and avoiding misleading recalculations.
This indicator is designed for traders looking for momentum tracking, market cycle identification, and dynamic trend assessment in a visually intuitive format. It serves as a powerful tool when combined with other forms of technical analysis, helping to refine entry and exit points based on market conditions.
Buy Low over 18 SMA Strategythis is a customizeable strategy to buy on daily chart where you can select after which days you want to buy
with a 1or2 day trailing stop on prior low
the Nasdaq seams to be most profitable when buying above the wednesdays and fridays high
this avoided entries in the bearish move on july 2024
breakeven stops in aug 2023
only small losses in jan/april/sept 2022
all in all a pretty good strategy when exiting below the low of prior two days
RSI Moving Average_duongfreedom260903This is the familiar tool RSI, combined with two moving averages, EMA and WMA, to help you clearly determine the trend of a wave, along with helping to determine buying pressure. , selling force exists in the market, thereby helping you be more confident in making the decision to Buy or Sell.
Adaptive Fourier Transform Supertrend [QuantAlgo]Discover a brand new way to analyze trend with Adaptive Fourier Transform Supertrend by QuantAlgo , an innovative technical indicator that combines the power of Fourier analysis with dynamic Supertrend methodology. In essence, it utilizes the frequency domain mathematics and the adaptive volatility control technique to transform complex wave patterns into clear and high probability signals—ideal for both sophisticated traders seeking mathematical precision and investors who appreciate robust trend confirmation!
🟢 Core Architecture
At its core, this indicator employs an adaptive Fourier Transform framework with dynamic volatility-controlled Supertrend bands. It utilizes multiple harmonic components that let you fine-tune how market frequencies influence trend detection. By combining wave analysis with adaptive volatility bands, the indicator creates a sophisticated yet clear framework for trend identification that dynamically adjusts to changing market conditions.
🟢 Technical Foundation
The indicator builds on three innovative components:
Fourier Wave Analysis: Decomposes price action into primary and harmonic components for precise trend detection
Adaptive Volatility Control: Dynamically adjusts Supertrend bands using combined ATR and standard deviation
Harmonic Integration: Merges multiple frequency components with decreasing weights for comprehensive trend analysis
🟢 Key Features & Signals
The Adaptive Fourier Transform Supertrend transforms complex wave calculations into clear visual signals with:
Dynamic trend bands that adapt to market volatility
Sophisticated cloud-fill visualization system
Strategic L/S markers at key trend reversals
Customizable bar coloring based on trend direction
Comprehensive alert system for trend shifts
🟢 Practical Usage Tips
Here's how you can get the most out of the Adaptive Fourier Transform Supertrend :
1/ Setup:
Add the indicator to your favorites, then apply it to your chart ⭐️
Start with close price as your base source
Use standard Fourier period (14) for balanced wave detection
Begin with default harmonic weight (0.5) for balanced sensitivity
Start with standard Supertrend multiplier (2.0) for reliable band width
2/ Signal Interpretation:
Monitor trend band crossovers for potential signals
Watch for convergence of price with Fourier trend
Use L/S markers for trade entry points
Monitor bar colors for trend confirmation
Configure alerts for significant trend reversals
🟢 Pro Tips
Fine-tune Fourier parameters for optimal sensitivity:
→ Lower Base Period (8-12) for more reactive analysis
→ Higher Base Period (15-30) to filter out noise
→ Adjust Harmonic Weight (0.3-0.7) to control shorter trend influence
Customize Supertrend settings:
→ Lower multiplier (1.5-2.0) for tighter bands
→ Higher multiplier (2.0-3.0) for wider bands
→ Adjust ATR length based on market volatility
Strategy Enhancement:
→ Compare signals across multiple timeframes
→ Combine with volume analysis
→ Use with support/resistance levels
→ Integrate with other momentum indicators
[blackcat] L2 Wave Base CampOVERVIEW
The L2 Wave Base Camp indicator is a technical analysis tool designed to identify trends and potential trading signals by visualizing price and volume data through moving averages and relative strength calculations. It operates in its own panel on the trading chart, providing traders with a clear and color-coded representation of market conditions.
FEATURES
Customizable Base Camp Level: Users can set a horizontal line at a specific level to mark significant price points.
Color-Coded Histograms: Different colors indicate various market conditions, such as price position relative to moving averages.
Labeled Signals: The indicator labels potential "Valley" and "Top" points, suggesting buying and selling opportunities.
Volume Analysis: Incorporates volume data to identify potential trend reversals based on volume trends.
HOW TO USE
Set the Base Camp Level: Adjust the input parameter to define a significant price level.
Interpret Histogram Colors: Use the color-coded histograms to understand the current market condition.
Look for Labeled Signals: Pay attention to "Valley" and "Top" labels for potential trading opportunities.
Analyze Volume Trends: Monitor volume data for signs of trend reversals.
LIMITATIONS
Not a Standalone Tool: Should be used in conjunction with other indicators and analysis methods.
Backtesting Required: Essential to understand historical performance before live trading.
NOTES
The indicator uses moving averages (SMA) and relative strength calculations to smooth data and identify trends.
Crossover events between different moving averages generate buy and sell signals.
THANKS
Special thanks to the original author for developing this insightful trading tool.
Combined Multi-Timeframe EMA OscillatorThis script aims to visualize the strength of bullish or bearish trends by utilizing a mix of 200 EMA across multiple timeframes. I've observed that when the multi-timeframe 200 EMA ribbon is aligned and expanding, the uptrend usually lasts longer and is safer to enter at a pullback for trend continuation. Similarly, when the bands are expanding in reverse order, the downtrend holds longer, making it easier to sell the pullbacks.
In this script, I apply a purely empirical and experimental method: a) Ranking the position of each of the above EMAs and turning it into an oscillator. b) Taking each 200 EMA on separate timeframes, turning it into a stochastic-like oscillator, and then averaging them to compute an overall stochastic.
To filter a bullish signal, I use the bullish crossover between these two aggregated oscillators (default: yellow and blue on the chart) which also plots a green shadow area on the screen and I look for buy opportunities/ ignore sell opportunities while this signal is bullish. Similarly, a bearish crossover gives us a bearish signal which also plots a red shadow area on the screen and I only look for sell opportunities/ ignore any buy opportunities while this signal is bearish.
Note that directly buying the signal as it prints can lead to suboptimal entries. The idea behind the above is that these crossovers point on average to a stronger trend; however, a trade should be initiated on the pullbacks with confirmation from momentum and volume indicators and in confluence with key areas of support and resistance and risk management should be used in order to protect your position.
Disclaimer: This script does not constitute certified financial advice, the current work is purely experimental, use at your own discretion.
Active Ranges Detector
1. Purpose
The script identifies and manages bar ranges, which are defined as bars where the high and low prices are fully contained within the high and low of the previous bar. These ranges are used by traders to identify potential breakouts and price consolidations.
2. Key Features
Active Range Validation
A potential range becomes an active range when the price breaks out of the bar’s high or low. The breakout direction is tracked:
• Upward breakout: When the price closes above the high of the range.
• Downward breakout: When the price closes below the low of the range.
The script creates:
• Lines to represent the high and low of the range.
• A colored background box to indicate the range, with color coded for breakout direction:
• Green: Upward breakout.
• Orange: Downward breakout.
Range Updates
• Exit Detection: The script detects if the price exits the range (moves outside the high or low levels).
• Reintegration and Mitigation:
• If the price re-enters an exited range, it marks the range as “mitigated.”
• The lines for mitigated ranges are updated (color and width are changed).
• The background box is removed for mitigated ranges.
3. User Inputs
The script provides customization options:
• Breakout Colors:
• upBreakoutColor: Background color for upward breakout ranges (default: semi-transparent green).
• downBreakoutColor: Background color for downward breakout ranges (default: semi-transparent orange).
• Mitigated Range Styling:
• mitigatedLineColor: Line color for mitigated ranges (default: red).
• mitigatedLineWidth: Width of the line for mitigated ranges.
• Line and Background Settings:
• activeLineWidth: Width of lines for active ranges.
• lineExtension: Length of line extensions beyond the range’s initial boundaries.
• Range Display Limits:
• maxActiveRanges: Maximum number of active ranges to display on the chart (default: up to 200).
4. Visualization
The script provides clear visual feedback for identified ranges:
• Lines: High and low levels of the range are drawn as lines on the chart.
• Background Boxes: Colored boxes are drawn to represent active ranges, with breakout direction indicated by the box’s color.
• Mitigation Styling: Mitigated ranges have updated line styles and no background.
5. Range Management
The script actively manages ranges:
• Tracks the status of each range (active, exited, reintegrated, mitigated).
• Limits the number of displayed ranges to improve chart readability and comply with TradingView’s object limits.
6. Use Case
This script is ideal for traders who:
• Use inside bars to identify areas of consolidation and breakout opportunities.
• Want to track active and mitigated ranges automatically.
• Need a clear, visual representation of ranges and breakout directions.
7. Limitations
• Inside bars are identified based only on the current and previous bar, so the script might not detect more complex consolidation patterns.
• The maximum number of ranges displayed is limited to the user-defined value (maxActiveRanges), with a hard limit of 200 due to TradingView’s object restrictions.
Daily Weekly Monthly Highs & Lows - Alerts !
1. Purpose
The script helps traders:
• Visualize the high and low levels for the previous daily, weekly, and monthly periods.
• Receive alerts when the current price crosses these levels.
• Identify key support and resistance zones based on historical highs and lows.
2. Key Features
User Inputs
The script offers customization options through input parameters:
• Daily Levels:
• Enable/disable displaying daily levels (Show Daily Levels).
• Customize the color for daily level lines (Daily Line Color).
• Weekly Levels:
• Enable/disable displaying weekly levels (Show Weekly Levels).
• Customize the color for weekly level lines (Weekly Line Color).
• Monthly Levels:
• Enable/disable displaying monthly levels (Show Monthly Levels).
• Customize the color for monthly level lines (Monthly Line Color).
3. Core Functionality
Level Calculations
The script retrieves the previous daily, weekly, and monthly highs and lows using the request.security() function:
• Daily High/Low: Taken from the previous day’s high and low.
• Weekly High/Low: Taken from the previous week’s high and low.
• Monthly High/Low: Taken from the previous month’s high and low.
Price Crossing Detection
For each level (daily, weekly, monthly), the script checks if the current high or low price has crossed:
• The previous high (triggering a “High Reached” alert).
• The previous low (triggering a “Low Reached” alert).
4. Visual Features
The script plots lines to represent the previous highs and lows:
• Daily Levels:
• Dashed lines for the previous daily high and low.
• Configurable color (Daily Line Color).
• Weekly Levels:
• Dashed lines for the previous weekly high and low.
• Configurable color (Weekly Line Color).
• Monthly Levels:
• Dashed lines for the previous monthly high and low.
• Configurable color (Monthly Line Color).
These lines extend forward by one bar for better visibility on the chart.
5. Alert Features
The script provides alerts for when the price crosses these levels:
• Daily Alerts:
• “Daily High Reached” when the current price crosses the previous daily high.
• “Daily Low Reached” when the current price crosses the previous daily low.
• Weekly Alerts:
• “Weekly High Reached” when the current price crosses the previous weekly high.
• “Weekly Low Reached” when the current price crosses the previous weekly low.
• Monthly Alerts:
• “Monthly High Reached” when the current price crosses the previous monthly high.
• “Monthly Low Reached” when the current price crosses the previous monthly low.
6. Practical Use Case
This script is ideal for traders who:
• Use support and resistance levels from daily, weekly, and monthly timeframes as part of their strategy.
• Want to monitor price interactions with these levels in real-time.
• Need automatic alerts for key price movements without continuously monitoring the chart.
7. Limitations
• Max Line Count: TradingView limits the number of lines that can be drawn on the chart to max_lines_count = 500.
• No Historical Levels: The script only tracks the most recent daily, weekly, and monthly levels and does not display historical levels.