MED89 - Range Detector Before NY Open### Trading Strategy Using the **Liquidity Swings & Range Detector** Indicator
#### Explanation in English
The provided indicator is designed to identify liquidity swings (highs and lows) and detect trading ranges. Below is a step-by-step strategy to utilize it effectively in trading:
---
### 1. **Understanding the Indicator**
- **Liquidity Swings:**
- **Swing Highs:** These represent significant price resistance levels and are highlighted as peaks.
- **Swing Lows:** These represent significant price support levels and are highlighted as troughs.
- **Range Detector:**
- It identifies price ranges where the market is consolidating, using a combination of moving averages and ATR-based thresholds to define the range.
---
### 2. **The Trading Strategy**
#### A) **Buying Opportunities (Long Entries):**
1. **Breakout above Swing Highs:**
- When the price breaks above a recent **Swing High**:
- Confirm the breakout with volume or momentum indicators (e.g., RSI or MACD).
- Enter a long position.
- Place a stop-loss below the previous **Swing High** level.
2. **Within a Range:**
- Buy near the **Bottom Range** (the lower boundary of the detected range).
- Place a stop-loss slightly below the range.
#### B) **Selling Opportunities (Short Entries):**
1. **Breakdown below Swing Lows:**
- When the price breaks below a recent **Swing Low**:
- Confirm the breakdown with volume or momentum indicators.
- Enter a short position.
- Place a stop-loss above the previous **Swing Low** level.
2. **Within a Range:**
- Sell near the **Top Range** (the upper boundary of the detected range).
- Place a stop-loss slightly above the range.
---
### 3. **Range-Based Trading:**
- When the indicator detects a trading range:
- **Buy** at the lower boundary (**Bottom Range**).
- **Sell** at the upper boundary (**Top Range**).
- Avoid trading if the price is moving in the middle of the range unless confirmed by strong directional momentum.
---
### 4. **Risk Management**
- **Position Sizing:** Limit your risk to 2-3% of your capital per trade.
- **Take Profits:** Use the **Swing High** or **Swing Low** levels as logical profit targets.
- **Stop-Loss Placement:** Always place stop-loss orders based on recent **Swing Highs** or **Swing Lows**, depending on your trade direction.
---
### 5. **Additional Tips**
- Test the indicator on a demo account to fine-tune the settings.
- Use other complementary indicators like RSI, MACD, or volume to confirm trade signals.
- Stay updated on market news and events that might cause sudden price movements.
---
This strategy leverages the strengths of the indicator to identify high-probability trades. Let me know if you'd like further details or assistance in customizing it!
Индикаторы и стратегии
Liquidity Swings & Range Detector [MED89]### Trading Strategy Using the **Liquidity Swings & Range Detector** Indicator
The provided indicator is designed to identify liquidity swings (highs and lows) and detect trading ranges. Below is a step-by-step strategy to utilize it effectively in trading:
---
### 1. **Understanding the Indicator**
- **Liquidity Swings:**
- **Swing Highs:** These represent significant price resistance levels and are highlighted as peaks.
- **Swing Lows:** These represent significant price support levels and are highlighted as troughs.
- **Range Detector:**
- It identifies price ranges where the market is consolidating, using a combination of moving averages and ATR-based thresholds to define the range.
---
### 2. **The Trading Strategy**
#### A) **Buying Opportunities (Long Entries):**
1. **Breakout above Swing Highs:**
- When the price breaks above a recent **Swing High**:
- Confirm the breakout with volume or momentum indicators (e.g., RSI or MACD).
- Enter a long position.
- Place a stop-loss below the previous **Swing High** level.
2. **Within a Range:**
- Buy near the **Bottom Range** (the lower boundary of the detected range).
- Place a stop-loss slightly below the range.
#### B) **Selling Opportunities (Short Entries):**
1. **Breakdown below Swing Lows:**
- When the price breaks below a recent **Swing Low**:
- Confirm the breakdown with volume or momentum indicators.
- Enter a short position.
- Place a stop-loss above the previous **Swing Low** level.
2. **Within a Range:**
- Sell near the **Top Range** (the upper boundary of the detected range).
- Place a stop-loss slightly above the range.
---
### 3. **Range-Based Trading:**
- When the indicator detects a trading range:
- **Buy** at the lower boundary (**Bottom Range**).
- **Sell** at the upper boundary (**Top Range**).
- Avoid trading if the price is moving in the middle of the range unless confirmed by strong directional momentum.
---
### 4. **Risk Management**
- **Position Sizing:** Limit your risk to 2-3% of your capital per trade.
- **Take Profits:** Use the **Swing High** or **Swing Low** levels as logical profit targets.
- **Stop-Loss Placement:** Always place stop-loss orders based on recent **Swing Highs** or **Swing Lows**, depending on your trade direction.
---
### 5. **Additional Tips**
- Test the indicator on a demo account to fine-tune the settings.
- Use other complementary indicators like RSI, MACD, or volume to confirm trade signals.
- Stay updated on market news and events that might cause sudden price movements.
---
BY AHMED ELMORTADA
Two Bottoms with Liquidity//@version=5
indicator("Two Bottoms with Liquidity", overlay=true)
// Параметры
len = input.int(14, minval=1, title="Period for Bottom Search")
threshold = input.float(0.5, title="Liquidity Threshold", minval=0.0)
// Функция для поиска локального минимума
isBottom(price, len) =>
lowestPrice = ta.lowest(price, len)
price == lowestPrice
// Определяем два "bottoms"
bottom1 = isBottom(low, len) and low < ta.lowest(low, len*2)
bottom2 = isBottom(low, len) and low < ta.lowest(low , len*2)
// Ликвидность, как разница между ценой и объемом (или другим индикатором ликвидности)
liquidityCondition = volume > ta.sma(volume, len) * threshold
plotshape(series=bottom1 and liquidityCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Bottom 1")
plotshape(series=bottom2 and liquidityCondition, location=location.belowbar, color=color.red, style=shape.labeldown, title="Bottom 2")
Fibonacci RetracementThis Fibonacci retracement indicator can help identify potential reversal areas and can be used in combination with other technical analysis tools to enhance trading decisions.
Algo Market Structure Nic_FXLa natura è un insieme straordinario di armonia e bellezza. Ogni elemento, dalle montagne maestose agli alberi che si stagliano verso il cielo, contribuisce a creare un equilibrio perfetto. Il suono di un ruscello che scorre o il canto degli uccelli all'alba ci ricordano la semplicità della vita. Spesso, nella frenesia quotidiana, dimentichiamo quanto sia importante fermarsi e osservare. Prendersi del tempo per apprezzare la natura ci aiuta a riconnetterci con noi stessi e a ritrovare pace. L'ambiente è un tesoro che va preservato per le generazioni future, affinché possano anch'esse godere di questa magnificenza.
ATR Trailing Stoploss with EMAStraightforward ATR trailing stop loss with integrated EMA to follow trned
Flag Screener [QuantVue]Flag Screener is a screening tool that identify bull and bear flags in up to 40 different symbols.
The indicator takes a comma separated list of symbols and then scans the symbols in real time to detect bull or bear flags.
What are flags
Flags are continuation patterns that occur within the general trend of the security. A bull flag represents a temporary pause or consolidation before price resumes it's upward movement, while a bear flag occurs before price continues its downward movement.
Both flag patterns consist of two components:
The Pole
The Flag
The pole is the initial strong upward surge or decline that precedes the flag. The pole is usually a fast move accompanied by heavy volume signaling significant buying or selling pressure.
The flag is then formed as price consolidates after the initial surge or decline from the pole. For a bull flag price will drift slightly downward to sideways, a bear flag will drift upward to sideways. The best flags often see volume dry up during this phase of the pattern.
Indicator Settings
Both components are fully customizable in the indicator so the user can adjust for any time frame or volatility. Select the minimum and maximum accepted limits from the % gain loss required for the pole, the maximum acceptable flag depth or rally and the minimum and maximum number of bars for each component.
RTZ Strategy//@version=5
indicator("RTZ Strategy", overlay=true)
// تنظیمات کاربر
lookback = input.int(20, title="Lookback Period", minval=1)
zone_size = input.float(0.5, title="Zone Size (% of ATR)", step=0.1)
// محاسبه ATR
atr = ta.atr(14)
// شناسایی مناطق RTZ
high_zone = ta.highest(high, lookback)
low_zone = ta.lowest(low, lookback)
upper_limit = high_zone + zone_size * atr
lower_limit = low_zone - zone_size * atr
// شناسایی سیگنال بازگشت به مناطق
buy_signal = ta.crossover(close, lower_limit) // بازگشت به منطقه پایینی
sell_signal = ta.crossunder(close, upper_limit) // بازگشت به منطقه بالایی
// رسم مناطق
bgcolor(close > upper_limit ? color.new(color.red, 90) : na, title="Upper Zone")
bgcolor(close < lower_limit ? color.new(color.green, 90) : na, title="Lower Zone")
// نمایش سیگنالها
plotshape(buy_signal, style=shape.labelup, location=location.belowbar, color=color.green, text="BUY")
plotshape(sell_signal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL")
// هشدارها
alertcondition(buy_signal, title="Buy Alert", message="RTZ Buy Signal")
alertcondition(sell_signal, title="Sell Alert", message="RTZ Sell Signal")
USDT.D Volatility TrackerUSDT.D Volatility Tracker
Description:
This script is designed to track the volatility of USDT.D (US Dollar in cryptocurrency) on the TradingView platform. It uses a moving average and deviation from it to generate buy and sell signals, helping traders visualize changes in volatility and make informed decisions.
Input Parameters:
maPeriod: The period of the moving average (default 120). This parameter allows users to adjust the length of the period used to calculate the moving average.
devThreshold: The deviation threshold (default 0.6). This parameter defines the level of deviation that will trigger buy or sell signals.
Data Request:
The script requests closing data for USDT.D using the request.security function, allowing it to retrieve up-to-date data on the selected timeframe.
Moving Average and Deviation Calculation:
An exponential moving average (EMA) is used to calculate the deviation from the moving average, enabling the identification of current volatility.
Deviation Line Display:
The deviation rate line is displayed on the chart, allowing users to visually track changes in volatility.
Signal Generation:
If the deviation exceeds the set threshold (devThreshold), a buy signal is generated (green background).
If the deviation falls below the negative threshold (-devThreshold), a sell signal is generated (red background).
Visual Signals:
Buy signals are displayed on the chart as green triangles, while sell signals are displayed as red triangles. This helps traders quickly identify potential entry and exit points.
Percentage Distance from 2 Month High.A simple indicator that show the percentage drop from the high with in the last 2 months (adjustable).
You can set an alert to trigger when ever a targeted symbol drops below a certain price.
Eze Profit Range Detection FilterThe Range Detection Filter is a technical analysis tool designed to help traders identify range-bound market conditions and focus on breakout opportunities. It combines the ATR (Average True Range) for volatility analysis and the ADX (Average Directional Index) for trend strength evaluation to highlight consolidation phases and alert traders when the market is ready to break out.
This indicator provides visual cues and customizable alerts, making it suitable for traders looking to avoid false signals during choppy markets and capitalize on trending moves following a breakout.
What Makes It Unique?
ATR for Volatility:
Measures market volatility by comparing ATR with its moving average.
Consolidation phases are flagged when ATR remains below its moving average for a sustained period.
ADX for Trend Strength:
Monitors trend strength, confirming range-bound conditions when ADX falls below a user-defined threshold (default: 20).
Combines with ATR to ensure accurate detection of trendless periods.
Breakout Alerts:
Notifies traders of breakout opportunities when the price moves outside the highest high or lowest low of the range.
How It Works:
Range Detection:
The market is considered "in range" when:
ATR is below its moving average, indicating low volatility.
ADX is below the threshold, confirming a lack of trend strength.
Visual Indication:
A yellow background highlights range-bound conditions, allowing traders to avoid low-probability trades.
Breakout Detection:
Alerts are triggered for breakouts above or below the range to help traders identify potential opportunities.
Features:
Range Highlighting:
Automatically detects and highlights range-bound markets using a yellow background.
Breakout Alerts:
Sends alerts for breakouts above or below the range once the market exits consolidation.
Customizable Inputs:
ATR length, moving average length, and ADX parameters are fully adjustable to adapt to various trading styles and asset classes.
Multi-Timeframe Compatibility:
Suitable for all markets and timeframes, including stocks, forex, and cryptocurrencies.
How to Use:
Identify Ranges:
Avoid trading when the yellow background appears, signaling a range-bound market.
Focus on Breakouts:
Look for alerts indicating breakouts above or below the range for potential trending opportunities.
Combine with Other Indicators:
Use volume analysis, momentum oscillators, or candlestick patterns to confirm breakout signals.
Credits:
This script utilizes widely accepted methodologies for ATR and ADX calculations. ADX is calculated manually using directional movement (+DI and -DI) for precise trend detection. The concept has been adapted and enhanced to create this comprehensive range-detection tool.
Notes:
This indicator is intended for educational purposes and should not be used as standalone financial advice.
Always incorporate this tool into a broader trading strategy for optimal results.
Single Candle EMA 15mSe foloseste doar pe tf de 1 min. Apare o candela rosie cand pe 15 min se inchide o candela sub ema 20 si apare o candela verde cand pe 1 min se inchide o candela peste ema 10
EMA with Supply and Demand Zones by Szep
The EMA with Supply and Demand Strategy is a trend-following trading approach that integrates Exponential Moving Averages (EMA) with supply and demand zones to identify potential entry and exit points. Below is a detailed description of its components and logic:
Key Components of the Strategy
1. EMA (Exponential Moving Average)
The EMA is used as a trend filter:
Bullish Trend: Price is above the EMA.
Bearish Trend: Price is below the EMA.
The EMA ensures that trades align with the overall market trend, reducing counter-trend risks.
2. Supply and Demand Zones
Demand Zone:
Represents areas where the price historically found support (buyers dominated).
Calculated using the lowest low over a specified lookback period.
Used for identifying potential long entry points.
Supply Zone:
Represents areas where the price historically faced resistance (sellers dominated).
Calculated using the highest high over a specified lookback period.
Used for identifying potential short entry points.
3. Trade Conditions
Long Trade:
Triggered when:
The price is above the EMA (bullish trend).
The low of the current candle touches or penetrates the most recent demand zone.
Short Trade:
Triggered when:
The price is below the EMA (bearish trend).
The high of the current candle touches or penetrates the most recent supply zone.
4. Exit Conditions
Long Exit:
Exit the trade when the price closes below the EMA, indicating a potential trend reversal.
Short Exit:
Exit the trade when the price closes above the EMA, signaling a potential upward reversal.
Visual Representation
EMA: A blue line plotted on the chart to show the trend.
Supply Zones: Red horizontal lines representing potential resistance levels.
Demand Zones: Green horizontal lines representing potential support levels.
These zones dynamically adjust to reflect the most recent 3 levels.
How the Strategy Works
Trend Identification:
The EMA determines the direction of the trade:
Look for long trades only in a bullish trend (price above EMA).
Look for short trades only in a bearish trend (price below EMA).
Entry Points:
Wait for price interaction with a supply or demand zone:
If the price touches a demand zone during a bullish trend, initiate a long trade.
If the price touches a supply zone during a bearish trend, initiate a short trade.
Risk Management:
The strategy exits trades if the price moves against the trend (crosses the EMA).
This ensures minimal exposure during adverse market movements.
Benefits of the Strategy
Trend Alignment:
Reduces counter-trend trades, improving the win rate.
Clear Entry and Exit Rules:
Combines price action (zones) with a reliable trend filter (EMA).
Dynamic Levels:
The supply and demand zones adapt to changing market conditions.
Customization Options
EMA Length:
Adjust to suit different timeframes or market conditions (e.g., 20 for faster trends, 50 for slower trends).
Lookback Period:
Fine-tune to capture broader or narrower supply and demand zones.
Risk/Reward Preferences:
Pair the strategy with stop-loss and take-profit levels for enhanced control.
This strategy is ideal for traders looking for a structured approach to identify high-probability trades while aligning with the prevailing trend. Backtest and optimize parameters based on your trading style and the specific asset you're tradin
EMA with Supply and Demand Zones
The EMA with Supply and Demand Strategy is a trend-following trading approach that integrates Exponential Moving Averages (EMA) with supply and demand zones to identify potential entry and exit points. Below is a detailed description of its components and logic:
Key Components of the Strategy
1. EMA (Exponential Moving Average)
The EMA is used as a trend filter:
Bullish Trend: Price is above the EMA.
Bearish Trend: Price is below the EMA.
The EMA ensures that trades align with the overall market trend, reducing counter-trend risks.
2. Supply and Demand Zones
Demand Zone:
Represents areas where the price historically found support (buyers dominated).
Calculated using the lowest low over a specified lookback period.
Used for identifying potential long entry points.
Supply Zone:
Represents areas where the price historically faced resistance (sellers dominated).
Calculated using the highest high over a specified lookback period.
Used for identifying potential short entry points.
3. Trade Conditions
Long Trade:
Triggered when:
The price is above the EMA (bullish trend).
The low of the current candle touches or penetrates the most recent demand zone.
Short Trade:
Triggered when:
The price is below the EMA (bearish trend).
The high of the current candle touches or penetrates the most recent supply zone.
4. Exit Conditions
Long Exit:
Exit the trade when the price closes below the EMA, indicating a potential trend reversal.
Short Exit:
Exit the trade when the price closes above the EMA, signaling a potential upward reversal.
Visual Representation
EMA: A blue line plotted on the chart to show the trend.
Supply Zones: Red horizontal lines representing potential resistance levels.
Demand Zones: Green horizontal lines representing potential support levels.
These zones dynamically adjust to reflect the most recent 3 levels.
How the Strategy Works
Trend Identification:
The EMA determines the direction of the trade:
Look for long trades only in a bullish trend (price above EMA).
Look for short trades only in a bearish trend (price below EMA).
Entry Points:
Wait for price interaction with a supply or demand zone:
If the price touches a demand zone during a bullish trend, initiate a long trade.
If the price touches a supply zone during a bearish trend, initiate a short trade.
Risk Management:
The strategy exits trades if the price moves against the trend (crosses the EMA).
This ensures minimal exposure during adverse market movements.
Benefits of the Strategy
Trend Alignment:
Reduces counter-trend trades, improving the win rate.
Clear Entry and Exit Rules:
Combines price action (zones) with a reliable trend filter (EMA).
Dynamic Levels:
The supply and demand zones adapt to changing market conditions.
Customization Options
EMA Length:
Adjust to suit different timeframes or market conditions (e.g., 20 for faster trends, 50 for slower trends).
Lookback Period:
Fine-tune to capture broader or narrower supply and demand zones.
Risk/Reward Preferences:
Pair the strategy with stop-loss and take-profit levels for enhanced control.
This strategy is ideal for traders looking for a structured approach to identify high-probability trades while aligning with the prevailing trend. Backtest and optimize parameters based on your trading style and the specific asset you're tradin
Divides company with IndexOverview:
This indicator simplifies the comparison of a stock's performance against a specified index, such as the Nifty 50. By calculating and plotting the ratio between the two, it provides a clear visual representation of relative strength.
Key Features:
-Direct Comparison: Easily compare any stock against a selected index.
-Customizable Index: Choose from a dropdown menu or input a custom index symbol.
-Visual Clarity: Maximizing the chart provides a clear view of the relative performance.
-SMA Overlay: Add a Simple Moving Average (SMA) to identify trends and potential entry/exit
points.
-Customizable Appearance: Adjust background color, text color, and label size for personalized
visualization.
How to Use:
Add the Indicator: Add the indicator to your chart.
Select the Index: Choose the desired index from the dropdown menu or input a custom symbol.
Analyze the Ratio:
-A rising ratio indicates the stock is outperforming the index.
-A falling ratio suggests underperformance.
-The SMA can help identify potential trends and momentum.
Customize the Appearance: Adjust the background color, text color, and label size to suit your preferences.
Benefits:
-Improved Decision Making: Gain insights into a stock's relative strength.
-Faster Analysis: Quickly compare multiple stocks against a benchmark index.
-Enhanced Visualization: Customize the chart for better understanding.
-By leveraging this indicator, you can make informed trading decisions and gain a deeper
understanding of market dynamics.
WSNB EMA*10EMA vs MA(SMA)的区别
EMA = (当前价格 × K) + (前一日EMA × (1-K))
其中,K = 2 ÷ (周期数 + 1)
// 指数移动平均:近期价格权重更大
MA = (P1 + P2 + P3 + ... + Pn) / n
// 简单移动平均:所有价格权重相等