PROTECTED SOURCE SCRIPT
تم تحديثه Liquidation Max Pain Dynamic by madd Larry D

### Recommended Settings for Crypto
The "Liquidation Max Pain Dynamic" indicator is designed for cryptocurrency trading to identify potential liquidation levels and max pain points for leveraged positions, generating buy/sell signals based on proximity to these levels and Supertrend confirmation. Below are the recommended settings for crypto markets, considering their volatility and leverage usage:
- **Display Options**:
- **Show Info Box (`showTable`)**: `true` (to display leverage levels and max pain data).
- **Placement (`placement`)**: `Top Right` (avoids chart clutter; adjust to preference).
- **Background Color (`tableBG`)**: `color.new(color.black, 90)` (default, good contrast).
- **Font Color (`fontColor`)**: `color.white` (default, readable).
- **Extend Lines (`extendLines`)**: `Right` (extends lines to the right for visibility of active levels).
- **Signal Settings**:
- **Show Buy/Sell Signals (`showSignals`)**: `true` (enables signal plotting).
- **Supertrend ATR Period (`atrPeriod`)**: `14` (default, balances sensitivity for crypto volatility).
- **Supertrend ATR Multiplier (`atrMultiplier`)**: `2.0` (reduced from 3.0 for tighter trend detection in volatile crypto markets).
- **Proximity Threshold % (`proximity_percent`)**: `5.0` (tighter range for crypto to capture closer max pain levels; adjust to 3.0–10.0 based on timeframe).
- **Signal Size (`signal_size`)**: `Normal` (clear visibility; use `Large` on lower timeframes like 1m–5m for better clarity).
- **Signal Text Color (`signal_text_color`)**: `color.white` (default, high contrast).
- **Leverage Settings**:
- **Show 3x Leverage (`_3`)**: `true` (captures lower leverage common in crypto).
- **Show 5x Leverage (`_5`)**: `true` (common for moderate leverage).
- **Show 10x Leverage (`_10`)**: `true` (standard for many crypto traders).
- **Show 20x Leverage (`_20`)**: `true` (captures higher leverage in volatile markets).
- **Show 25x Leverage (`_25`)**: `false` (less common, enable if needed).
- **Show 50x Leverage (`_50`)**: `false` (high leverage, enable for aggressive strategies).
- **Show 100x Leverage (`_100`)**: `false` (very high risk, enable only for specific use cases).
- **Lookback Period (`timePeriodMean`)**: `20` (shorter lookback for crypto’s fast-moving markets; default is 40, adjust to 10–30 for lower timeframes).
- **Visual Settings**:
- **Liquidation Levels Width (`lines_width`)**: `3` (default, visible but not overwhelming).
- **Short Liquidations Color (`col_up`)**: `#22ab94` (default green, distinct for shorts).
- **Long Liquidations Color (`col_dn`)**: `#f7525f` (default red, distinct for longs).
- **Bar Color (`barcolor_input`)**: `color.lime` (default, highlights active periods).
- **Max Pain Longs Line Color (`max_pain_longs_color`)**: `color.red` (default, clear for longs).
- **Max Pain Shorts Line Color (`max_pain_shorts_color`)**: `color.green` (default, clear for shorts).
- **Max Pain Lines Width (`max_pain_width`)**: `2` (default, distinguishable from liquidation lines).
- **Max Pain Line Style (`max_pain_style`)**: `Solid` (default, clear; use `Dashed` for less visual clutter).
### How the Indicator Is Meant to Be Used
The "Liquidation Max Pain Dynamic" indicator is intended to help crypto traders identify potential price levels where leveraged positions (longs and shorts) are likely to be liquidated, known as "max pain" levels, and generate actionable buy/sell signals. Here’s how to use it effectively:
1. **Purpose**:
- The indicator identifies liquidation levels for various leverage ratios (3x, 5x, 10x, 20x, etc.) based on volume spikes and pivot points.
- It calculates max pain levels: the closest liquidation levels above (for shorts) and below (for longs) the current price, where price movement could trigger significant liquidations.
- Buy/sell signals are generated when the price is within a user-defined proximity (`proximity_percent`) of max pain levels and aligns with the Supertrend direction (bullish for buy, bearish for sell).
2. **How to Use**:
- **Setup**:
- Apply the indicator to a crypto chart (e.g., BTC/USD, ETH/USDT) on TradingView.
- Use the recommended settings above, adjusting `atrMultiplier` and `proximity_percent` based on the timeframe (e.g., lower `atrMultiplier` for 1m–15m, higher for 1h–4h).
- Enable desired leverage levels (e.g., 3x, 5x, 10x, 20x) to focus on relevant liquidation zones.
- **Reading the Indicator**:
- **Liquidation Lines**: Colored lines (red for longs, green for shorts) show potential liquidation levels for each leverage ratio. These are based on pivot highs/lows adjusted by leverage percentages (e.g., 33.3% for 3x, 10% for 10x).
- **Max Pain Lines**: Red (longs) and green (shorts) lines highlight the closest liquidation levels, indicating where price movement could cause maximum liquidations.
- **Buy/Sell Signals**:
- **Buy Signal**: A green triangle appears at the candle’s low when the price is within `proximity_percent` of the max pain level for longs and the Supertrend indicates an uptrend (`upTrend`).
- **Sell Signal**: A red triangle appears at the candle’s high when the price is within `proximity_percent` of the max pain level for shorts and the Supertrend indicates a downtrend (`downTrend`).
- **Info Table**: Displays active leverage levels (green dot for active) and max pain details (price, leverage, distance %) for quick reference.
- **Trading Strategy**:
- **Buy Signals**: Enter a long position when a buy signal appears, indicating the price is near a max pain level for longs (potential support) and the trend is bullish. Set a stop-loss below the max pain level (e.g., 1–2% below `buyer_pain_price`) and a take-profit at the next resistance or max pain level for shorts.
- **Sell Signals**: Enter a short position when a sell signal appears, indicating the price is near a max pain level for shorts (potential resistance) and the trend is bearish. Set a stop-loss above the max pain level (e.g., 1–2% above `seller_pain_price`) and a take-profit at the next support or max pain level for longs.
- **Confirmation**: Use additional indicators (e.g., RSI, volume, support/resistance) to confirm signals, as crypto markets are volatile. For example, ensure high volume accompanies the signal for stronger confirmation.
- **Timeframes**: Effective on 5m, 15m, 1h, or 4h for swing trading; use 1m–5m for scalping with tighter `proximity_percent` (e.g., 3.0).
- **Alerts**:
- Set up alerts using the `alertcondition` for buy (`Buy Signal Long Max Pain`) and sell (`Sell Signal Short Max Pain`) signals to get notified when signals trigger.
- Monitor the table for changes in max pain levels to anticipate price movements.
3. **Best Practices**:
- **Volatility Consideration**: Crypto markets are highly volatile, so use tighter `proximity_percent` (e.g., 3.0–5.0) on lower timeframes and wider (e.g., 10.0–15.0) on higher timeframes to account for price swings.
- **Leverage Selection**: Focus on lower leverage levels (3x, 5x, 10x, 20x) for most crypto pairs, as high leverage (50x, 100x) is riskier and less common unless trading altcoins or high-volatility pairs.
- **Risk Management**: Always use stop-losses near max pain levels to protect against sudden reversals. Avoid over-leveraging, as the indicator highlights liquidation zones that can lead to rapid price moves.
- **Backtesting**: Test the indicator on historical data for your chosen crypto pair and timeframe to validate signal reliability before live trading.
4. **Intended Use Cases**:
- **Scalping/Day Trading**: Use on 1m–15m timeframes with `atrMultiplier` of 1.5–2.0 and `proximity_percent` of 3.0–5.0 to capture quick moves near liquidation levels.
- **Swing Trading**: Use on 1h–4h timeframes with default settings to trade larger trends driven by liquidations.
- **Market Analysis**: Monitor max pain levels in the table to anticipate where large liquidations might push the price, even without trading signals.
### Notes
- The indicator assumes high-volume pivots indicate potential liquidation zones, so it’s most effective in liquid crypto markets (e.g., BTC, ETH, major altcoins).
- Adjust settings based on the specific crypto pair and exchange, as leverage availability and liquidation behavior vary.
- If signals are too frequent or sparse, tweak `proximity_percent` or `atrMultiplier` to balance sensitivity.
If you need further clarification on using the indicator or want tailored settings for a specific crypto pair or timeframe, let me know!
The "Liquidation Max Pain Dynamic" indicator is designed for cryptocurrency trading to identify potential liquidation levels and max pain points for leveraged positions, generating buy/sell signals based on proximity to these levels and Supertrend confirmation. Below are the recommended settings for crypto markets, considering their volatility and leverage usage:
- **Display Options**:
- **Show Info Box (`showTable`)**: `true` (to display leverage levels and max pain data).
- **Placement (`placement`)**: `Top Right` (avoids chart clutter; adjust to preference).
- **Background Color (`tableBG`)**: `color.new(color.black, 90)` (default, good contrast).
- **Font Color (`fontColor`)**: `color.white` (default, readable).
- **Extend Lines (`extendLines`)**: `Right` (extends lines to the right for visibility of active levels).
- **Signal Settings**:
- **Show Buy/Sell Signals (`showSignals`)**: `true` (enables signal plotting).
- **Supertrend ATR Period (`atrPeriod`)**: `14` (default, balances sensitivity for crypto volatility).
- **Supertrend ATR Multiplier (`atrMultiplier`)**: `2.0` (reduced from 3.0 for tighter trend detection in volatile crypto markets).
- **Proximity Threshold % (`proximity_percent`)**: `5.0` (tighter range for crypto to capture closer max pain levels; adjust to 3.0–10.0 based on timeframe).
- **Signal Size (`signal_size`)**: `Normal` (clear visibility; use `Large` on lower timeframes like 1m–5m for better clarity).
- **Signal Text Color (`signal_text_color`)**: `color.white` (default, high contrast).
- **Leverage Settings**:
- **Show 3x Leverage (`_3`)**: `true` (captures lower leverage common in crypto).
- **Show 5x Leverage (`_5`)**: `true` (common for moderate leverage).
- **Show 10x Leverage (`_10`)**: `true` (standard for many crypto traders).
- **Show 20x Leverage (`_20`)**: `true` (captures higher leverage in volatile markets).
- **Show 25x Leverage (`_25`)**: `false` (less common, enable if needed).
- **Show 50x Leverage (`_50`)**: `false` (high leverage, enable for aggressive strategies).
- **Show 100x Leverage (`_100`)**: `false` (very high risk, enable only for specific use cases).
- **Lookback Period (`timePeriodMean`)**: `20` (shorter lookback for crypto’s fast-moving markets; default is 40, adjust to 10–30 for lower timeframes).
- **Visual Settings**:
- **Liquidation Levels Width (`lines_width`)**: `3` (default, visible but not overwhelming).
- **Short Liquidations Color (`col_up`)**: `#22ab94` (default green, distinct for shorts).
- **Long Liquidations Color (`col_dn`)**: `#f7525f` (default red, distinct for longs).
- **Bar Color (`barcolor_input`)**: `color.lime` (default, highlights active periods).
- **Max Pain Longs Line Color (`max_pain_longs_color`)**: `color.red` (default, clear for longs).
- **Max Pain Shorts Line Color (`max_pain_shorts_color`)**: `color.green` (default, clear for shorts).
- **Max Pain Lines Width (`max_pain_width`)**: `2` (default, distinguishable from liquidation lines).
- **Max Pain Line Style (`max_pain_style`)**: `Solid` (default, clear; use `Dashed` for less visual clutter).
### How the Indicator Is Meant to Be Used
The "Liquidation Max Pain Dynamic" indicator is intended to help crypto traders identify potential price levels where leveraged positions (longs and shorts) are likely to be liquidated, known as "max pain" levels, and generate actionable buy/sell signals. Here’s how to use it effectively:
1. **Purpose**:
- The indicator identifies liquidation levels for various leverage ratios (3x, 5x, 10x, 20x, etc.) based on volume spikes and pivot points.
- It calculates max pain levels: the closest liquidation levels above (for shorts) and below (for longs) the current price, where price movement could trigger significant liquidations.
- Buy/sell signals are generated when the price is within a user-defined proximity (`proximity_percent`) of max pain levels and aligns with the Supertrend direction (bullish for buy, bearish for sell).
2. **How to Use**:
- **Setup**:
- Apply the indicator to a crypto chart (e.g., BTC/USD, ETH/USDT) on TradingView.
- Use the recommended settings above, adjusting `atrMultiplier` and `proximity_percent` based on the timeframe (e.g., lower `atrMultiplier` for 1m–15m, higher for 1h–4h).
- Enable desired leverage levels (e.g., 3x, 5x, 10x, 20x) to focus on relevant liquidation zones.
- **Reading the Indicator**:
- **Liquidation Lines**: Colored lines (red for longs, green for shorts) show potential liquidation levels for each leverage ratio. These are based on pivot highs/lows adjusted by leverage percentages (e.g., 33.3% for 3x, 10% for 10x).
- **Max Pain Lines**: Red (longs) and green (shorts) lines highlight the closest liquidation levels, indicating where price movement could cause maximum liquidations.
- **Buy/Sell Signals**:
- **Buy Signal**: A green triangle appears at the candle’s low when the price is within `proximity_percent` of the max pain level for longs and the Supertrend indicates an uptrend (`upTrend`).
- **Sell Signal**: A red triangle appears at the candle’s high when the price is within `proximity_percent` of the max pain level for shorts and the Supertrend indicates a downtrend (`downTrend`).
- **Info Table**: Displays active leverage levels (green dot for active) and max pain details (price, leverage, distance %) for quick reference.
- **Trading Strategy**:
- **Buy Signals**: Enter a long position when a buy signal appears, indicating the price is near a max pain level for longs (potential support) and the trend is bullish. Set a stop-loss below the max pain level (e.g., 1–2% below `buyer_pain_price`) and a take-profit at the next resistance or max pain level for shorts.
- **Sell Signals**: Enter a short position when a sell signal appears, indicating the price is near a max pain level for shorts (potential resistance) and the trend is bearish. Set a stop-loss above the max pain level (e.g., 1–2% above `seller_pain_price`) and a take-profit at the next support or max pain level for longs.
- **Confirmation**: Use additional indicators (e.g., RSI, volume, support/resistance) to confirm signals, as crypto markets are volatile. For example, ensure high volume accompanies the signal for stronger confirmation.
- **Timeframes**: Effective on 5m, 15m, 1h, or 4h for swing trading; use 1m–5m for scalping with tighter `proximity_percent` (e.g., 3.0).
- **Alerts**:
- Set up alerts using the `alertcondition` for buy (`Buy Signal Long Max Pain`) and sell (`Sell Signal Short Max Pain`) signals to get notified when signals trigger.
- Monitor the table for changes in max pain levels to anticipate price movements.
3. **Best Practices**:
- **Volatility Consideration**: Crypto markets are highly volatile, so use tighter `proximity_percent` (e.g., 3.0–5.0) on lower timeframes and wider (e.g., 10.0–15.0) on higher timeframes to account for price swings.
- **Leverage Selection**: Focus on lower leverage levels (3x, 5x, 10x, 20x) for most crypto pairs, as high leverage (50x, 100x) is riskier and less common unless trading altcoins or high-volatility pairs.
- **Risk Management**: Always use stop-losses near max pain levels to protect against sudden reversals. Avoid over-leveraging, as the indicator highlights liquidation zones that can lead to rapid price moves.
- **Backtesting**: Test the indicator on historical data for your chosen crypto pair and timeframe to validate signal reliability before live trading.
4. **Intended Use Cases**:
- **Scalping/Day Trading**: Use on 1m–15m timeframes with `atrMultiplier` of 1.5–2.0 and `proximity_percent` of 3.0–5.0 to capture quick moves near liquidation levels.
- **Swing Trading**: Use on 1h–4h timeframes with default settings to trade larger trends driven by liquidations.
- **Market Analysis**: Monitor max pain levels in the table to anticipate where large liquidations might push the price, even without trading signals.
### Notes
- The indicator assumes high-volume pivots indicate potential liquidation zones, so it’s most effective in liquid crypto markets (e.g., BTC, ETH, major altcoins).
- Adjust settings based on the specific crypto pair and exchange, as leverage availability and liquidation behavior vary.
- If signals are too frequent or sparse, tweak `proximity_percent` or `atrMultiplier` to balance sensitivity.
If you need further clarification on using the indicator or want tailored settings for a specific crypto pair or timeframe, let me know!
ملاحظات الأخبار
this is V1 join to get updatesنص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.