Bänder und Kanäle
Bollinger Bands Indicator80 hr
I have converted your strategy into indicators and added breakout signals:
Upward breakout (blue mark)
Downward breakout (red mark)
This can be used to observe market trends without directly influencing trades. If you need to tweak any details, please let me know!
Vegas Tunnel (Three Channels)A trend tracker composed of three defense lines is recommended for use on timeframes of one hour or longer, with the four-hour timeframe being the best choice. Wishing you all smooth trading.
VWAP + SMC OB Signals by Finweal FinanceThis Vwap + SMC OB indicator is made by finweal Finance especially for highly volatile morning hours. This works well on nifty and banknifty.
I've coded in such a way that the entries spot in the first morning hour or max until 9:45 am. Do not take entries with this indicator after 9:45 am, If the Short signal/ long signal is spotted on first 9:15 candle of Nifty/Banknifty on 1 minute you cast Fibonacci Retracement tool on this first 1 minute candle and then enter the trade on a retracement of 0.62 or 0.78 and target Fib levels. Minimum Target on Spot : 1:2
Vwap/Ema 20 acts as S/R on your charts, so you combine it with ICT/SMC Concepts for better Clarity.
Nasan Risk Score & Postion Size Estimator** THE RISK SCORE AND POSITION SIZE WILL ONLY BE CALCUTAED ON DIALY TIMEFRAME NOT IN OTHER TIMEFRAMES.
The typically accepted generic rule for risk management is not to risk more than 1% - 2 % of the capital in any given trade. It has its own basis however it does not take into account the stocks historic & current performance and does not consider the traders performance metrics (like win rate, profit ratio).
The Nasan Risk Score & Position size calculator takes into account all the listed parameters into account and estimates a Risk %. The position size is calculated using the estimated risk % , current ATR and a dynamically adjusted ATR multiple (ATR multiple is adjusted based on true range's volatility and stocks relative performance).
It follows a series of calculations:
Unadjusted Nasan Risk Score = (Min Risk)^a + b*
Min Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Max ATR%
Max Risk = ( 5 year weighted avg Annual Stock Return - 5 year weighted avg Annual Bench Return) / 5 year weighted avg Annual Min ATR%
The min and max return is calculated based on stocks excess return in comparison to the Benchmark return and adjusted for volatility of the stock.
When a stock underperforms the benchmark, the default is, it does not calculate a position size , however if we opt it to calculate it will use 1% for Min Risk% and 2% for Max Risk% but all the other calculations and scaling remain the same.
Rationale:
Stocks outperforming their benchmark with lower volatility (ATR%) score higher.
A stock with high returns but excessive volatility gets penalized.
This ensures volatility-adjusted performance is emphasized rather than absolute returns.
Depending on the risk preference aggressive or conservative
Aggressive Risk Scaling: a = max (m, n) and b = min (m, n)
Conservative Scaling: a = min (m, n) and b = max (m, n)
where n = traders win % /100 and m = 1 - (1/ (1+ profit ratio))
A default of 50% is used for win factor and 1.5 for profit ratio.
Aggressive risk scaling increases exposure when the strategy's strongest factor is favorable.
Conservative risk scaling ensures more stable risk levels by focusing on the weaker factor.
The Unadjusted Nasan risk is score is further refined based on a tolerance factor which is based on the stocks maximum annual drawdown and the trader's maximum draw down tolerance.
Tolerance = /100
The correction factor (Tolerance) adjusts the risk score based on downside risk. Here's how it works conceptually:
The formula calculates how much the stock's actual drawdown exceeds your acceptable limit.
If stocks maximum Annual drawdown is smaller than Trader's maximum acceptable drawdown % , this results in a positive correction factor (indicating the drawdown is within your acceptable range and increases the unadjusted score.
If stocks maximum Annual drawdown exceeds Trader's maximum acceptable drawdown %, the correction factor will decrease (indicating that the downside risk is greater than what you are comfortable with, so it will adjust the risk exposure).
Once the Risk Score (numerically equal to Risk %) The position size is calculated based on the current market conditions.
Nasan Risk Score (Risk%) = Unadjusted Nasan Risk Score * Tolerance.
Position Size = (Capital * Risk% )/ ATR-Multiplier * ATR
The ATR Multiplier is dynamically adjusted based on the stocks recent relative performance and the variability of the true range itself. It would range between 1 - 3.5.
The multiplier widens when conditions are not favorable decreasing the position size and increases position size when conditions are favorable.
This Calculation /Estimate Does not give you a very different result than the arbitrary 1% - 2%. However it does fine tune the % based on sock performance, traders performance and tolerance level.
Moving Average CrossoverSimple moving average crossover configurable by period.
The indicator displays a bullish crossover with a green circle and a bearish crossover with a red circle just below or above the candle where the moving average crossover occurs.
5 Moving Average5 Moving Averages configurable by moving average type (SMA, EMA, WMA)
Also configurable by input type for the calculation (CLOSE, HIGH, LOW,
Wyckoff Springs and Up/Downthrusts [QuantVue]This Script actually belongs to . I have only personalised the strategy for my own good.
Extended Hour Range with Midline – All SessionsThe extended hour range indicator plots the range in the extended hour and the 2x projections
Multi-Session Opening Range – All Sessions (Blue)The ORB indicator plots the high and the low for the first 30 minutes of the trading hour. It plots the mid point and 2x extension in either direction
Bollinger Bands with Narrow ConsolidationBollinger Bands with Narrow Consolidation
🔹 Indicator Description
This indicator is an enhanced version of the classic Bollinger Bands with a built-in narrow consolidation detection function. It helps identify low-volatility phases that may precede strong price movements.
🔹 How Does the Indicator Work?
Bollinger Bands Calculation: Based on the selected moving average type (SMA, EMA, RMA, WMA, VWMA) with an adjustable standard deviation.
Narrow Consolidation Detection: The indicator calculates the relative band width and highlights low-volatility zones.
Flexible Settings:
Choice of base moving average type.
Adjustable sensitivity to narrow consolidations.
Option to hide Bollinger Bands outside consolidation zones.
🔹 How to Use?
Monitoring Consolidation Zones: If the price is tightening in a narrow range, a strong movement may follow.
Combining with Other Tools: The indicator works well with volume analysis and oscillators.
Signal Filtering: You can hide Bollinger Bands and only display narrow consolidation zones.
🔹 Trading Strategies
✅ Breakout Strategy – A sharp move beyond the narrow range may signal a trade entry.
✅ Range Trading – Buy near the lower band and sell near the upper band in sideways markets.
✅ Signal Filtering with Oscillators – Use RSI or MACD to confirm directional moves.
🔹 Disclaimer
This indicator is for analytical purposes only and does not constitute financial advice. Trading in financial markets involves risks, including potential loss of capital. Always verify signals, use proper risk management, and never invest more than you can afford to lose.
🔹 Conclusion
The indicator helps traders identify low-volatility periods and prepare for strong moves. Its flexible settings allow customization for any trading strategy.
📈 Add this indicator to your toolkit and stay ahead of the market! 🚀
Полосы Боллинджера с узкой консолидацией
🔹 Описание индикатора
Этот индикатор – улучшенная версия классических полос Боллинджера с функцией определения узкой консолидации. Он помогает выявлять фазы низкой волатильности, которые могут предшествовать сильным движениям цены.
🔹 Как работает индикатор?
Полосы Боллинджера: Рассчитываются на основе выбранного типа скользящей средней (SMA, EMA, RMA, WMA, VWMA) с регулируемым стандартным отклонением.
Определение узкой консолидации: Индикатор вычисляет относительную ширину полос и выделяет зоны сжатой волатильности.
Гибкие настройки:
Выбор типа базовой скользящей средней.
Регулируемая чувствительность к узкой консолидации.
Режим скрытия полос Боллинджера вне зон консолидации.
🔹 Как использовать?
Мониторинг зон консолидации: Если цена сжимается в узком диапазоне, стоит подготовиться к сильному движению.
Комбинация с другими инструментами: Индикатор отлично сочетается с объемами и осцилляторами.
Фильтрация сигналов: Можно скрыть полосы Боллинджера и оставить только зоны узкой консолидации.
🔹 Торговые стратегии
✅ Пробой консолидации – Резкое движение за границы узкой зоны может служить сигналом на вход в рынок.
✅ Торговля от границ – Покупка у нижней границы и продажа у верхней при флэтовом движении.
✅ Фильтрация сигналов с осцилляторами – Использование RSI или MACD для подтверждения направленного движения.
🔹 Предупреждение
Этот индикатор предназначен исключительно для аналитики и не является финансовым советом. Торговля на финансовых рынках сопряжена с рисками, включая возможную потерю капитала. Всегда проверяйте сигналы, используйте управление рисками и не инвестируйте больше, чем можете позволить себе потерять.
🔹 Заключение
Индикатор помогает трейдерам находить периоды низкой волатильности и готовиться к мощным движениям. Гибкие настройки позволяют адаптировать его под любую стратегию.
📈 Добавьте индикатор в свой арсенал и оставайтесь на шаг впереди рынка! 🚀
Rally Starter BandsEnglish Description:
Rally Starter Bands – Pine Script Indicator
This is a Pine Script indicator designed to identify potential rally opportunities in the market using Bollinger Bands. It plots the traditional Bollinger Bands and highlights specific conditions where the upper and middle bands are rising while the lower band is falling. When these conditions are met, the indicator displays a green up arrow below the price bar, signaling a potential upward momentum.
---
Credits:
Strategy: Adem Ayan (x.com/ademayan66/status/1901706968508637483)
Screening Codes: Dip Avcısı (x.com/dipavcisi007)
SublimeDubs EMA CloudShoutout Ripster for open-sourcing his code! This is a slight improvement/update to his code. A lot is customizable via settings instead of in the script. You can change the colors more easily now. I also added lines with price labels for the clouds and offset them by x amount of bar lengths. I can't do much about the vertical spacing but at least you can move it horizontally.
Estratégia Original com SL/TPA powerful TradingView indicator combining:
✅ Supertrend (trend filter)
✅ RSI 2 (early reversals)
✅ SMA 4/9 crossover (momentum confirmation)
✅ Auto Stop Loss & Take Profit (ATR-based or fixed)
🔥 Key Features:
Buy Signals (↑): Supertrend green + RSI 2 > 30 + SMA 4 > SMA 9
Sell Signals (↓): Supertrend red + SMA 4 < SMA 9 (low false signals)
Risk Management: Dynamic SL (1.5x ATR) & TP (2x ATR)
Clean Visualization: Entry/exit arrows + SL/TP lines
📊 Ideal For: Crypto, Forex, and Stocks (H1/Daily timeframes)
🎯 Why Use It?
Aggressive entries with RSI 2 + SMA 4
Conservative exits to lock profits
Fully customizable settings
MA Cross with Monthly LinesA dual-purpose trading indicator combining Moving Average (MA) crossovers with a Monthly Line Separator. It visually tracks trend shifts using MA crosses while marking monthly boundaries for clear historical reference. Ideal for traders seeking both momentum signals and structured timeframes, enhancing decision-making with a streamlined, all-in-one charting tool.
Range Filter Buy and Sell 5min## **Enhanced Range Filter Strategy: A Comprehensive Overview**
### **1. Introduction**
The **Enhanced Range Filter Strategy** is a powerful technical trading system designed to identify high-probability trading opportunities while filtering out market noise. It utilizes **range-based trend filtering**, **momentum confirmation**, and **volatility-based risk management** to generate precise entry and exit signals. This strategy is particularly useful for traders who aim to capitalize on trend-following setups while avoiding choppy, ranging market conditions.
---
### **2. Key Components of the Strategy**
#### **A. Range Filter (Trend Determination)**
- The **Range Filter** smooths price fluctuations and helps identify clear trends.
- It calculates an **adjusted price range** based on a **sampling period** and a **multiplier**, ensuring a dynamic trend-following approach.
- **Uptrends:** When the current price is above the range filter and the trend is strengthening.
- **Downtrends:** When the price falls below the range filter and momentum confirms the move.
#### **B. RSI (Relative Strength Index) as Momentum Confirmation**
- RSI is used to **filter out weak trades** and prevent entries during overbought/oversold conditions.
- **Buy Signals:** RSI is above a certain threshold (e.g., 50) in an uptrend.
- **Sell Signals:** RSI is below a certain threshold (e.g., 50) in a downtrend.
#### **C. ADX (Average Directional Index) for Trend Strength Confirmation**
- ADX ensures that trades are only taken when the trend has **sufficient strength**.
- Avoids trading in low-volatility, ranging markets.
- **Threshold (e.g., 25):** Only trade when ADX is above this value, indicating a strong trend.
#### **D. ATR (Average True Range) for Risk Management**
- **Stop Loss (SL):** Placed **one ATR below** (for long trades) or **one ATR above** (for short trades).
- **Take Profit (TP):** Set at a **3:1 reward-to-risk ratio**, using ATR to determine realistic price targets.
- Ensures volatility-adjusted risk management.
---
### **3. Entry and Exit Conditions**
#### **📈 Buy (Long) Entry Conditions:**
1. **Price is above the Range Filter** → Indicates an uptrend.
2. **Upward trend strength is positive** (confirmed via trend counter).
3. **RSI is above the buy threshold** (e.g., 50, to confirm momentum).
4. **ADX confirms trend strength** (e.g., above 25).
5. **Volatility is supportive** (using ATR analysis).
#### **📉 Sell (Short) Entry Conditions:**
1. **Price is below the Range Filter** → Indicates a downtrend.
2. **Downward trend strength is positive** (confirmed via trend counter).
3. **RSI is below the sell threshold** (e.g., 50, to confirm momentum).
4. **ADX confirms trend strength** (e.g., above 25).
5. **Volatility is supportive** (using ATR analysis).
#### **🚪 Exit Conditions:**
- **Stop Loss (SL):**
- **Long Trades:** 1 ATR below entry price.
- **Short Trades:** 1 ATR above entry price.
- **Take Profit (TP):**
- Set at **3x the risk distance** to achieve a favorable risk-reward ratio.
- **Ranging Market Exit:**
- If ADX falls below the threshold, indicating a weakening trend.
---
### **4. Visualization & Alerts**
- **Colored range filter line** changes based on trend direction.
- **Buy and Sell signals** appear as labels on the chart.
- **Stop Loss and Take Profit levels** are plotted as dashed lines.
- **Gray background highlights ranging markets** where trading is avoided.
- **Alerts trigger on Buy, Sell, and Ranging Market conditions** for automation.
---
### **5. Advantages of the Enhanced Range Filter Strategy**
✅ **Trend-Following with Noise Reduction** → Helps avoid false signals by filtering out weak trends.
✅ **Momentum Confirmation with RSI & ADX** → Ensures that only strong, valid trades are executed.
✅ **Volatility-Based Risk Management** → ATR ensures adaptive stop loss and take profit placements.
✅ **Works on Multiple Timeframes** → Effective for day trading, swing trading, and scalping.
✅ **Visually Intuitive** → Clearly displays trade signals, SL/TP levels, and trend conditions.
---
### **6. Who Should Use This Strategy?**
✔ **Trend Traders** who want to enter trades with momentum confirmation.
✔ **Swing Traders** looking for medium-term opportunities with a solid risk-reward ratio.
✔ **Scalpers** who need precise entries and exits to minimize false signals.
✔ **Algorithmic Traders** using alerts for automated execution.
---
### **7. Conclusion**
The **Enhanced Range Filter Strategy** is a powerful trading tool that combines **trend-following techniques, momentum indicators, and risk management** into a structured, rule-based system. By leveraging **Range Filters, RSI, ADX, and ATR**, traders can improve trade accuracy, manage risk effectively, and filter out unfavorable market conditions.
This strategy is **ideal for traders looking for a systematic, disciplined approach** to capturing trends while **avoiding market noise and false breakouts**. 🚀
Sigma Expected Movement)Okay, here's a brief description of what the final Pine Script code achieves:
Indicator Description:
This indicator calculates and plots expected price movement ranges based on the VIX index for daily, weekly, or monthly periods. It uses user-selectable VIX data (Today's Open / Previous Close) and a center price source (Today's Open / Previous Close).
Key features include:
Up to three customizable deviation levels, based on user-defined percentages of the calculated expected move.
Configurable visibility, color, opacity (default 50%), line style, and width (default 1) for each deviation level.
Optional filled area boxes between the 1st and 2nd deviation levels (enabled by default), with customizable fill color/opacity.
An optional center price line with configurable visibility (disabled by default), color, opacity, style, and width.
All drawings appear only within a user-defined time window (e.g., specific market hours).
Does not display price labels on the lines.
Optional rounding of calculated price levels.
Kase Permission StochasticOverview
The Kase Permission Stochastic indicator is an advanced momentum oscillator developed from Kase's trading methodology. It offers enhanced signal smoothing and filtering compared to traditional stochastic oscillators, providing clearer entry and exit signals with fewer false triggers.
How It Works
This indicator calculates a specialized stochastic using a multi-stage smoothing process:
Initial stochastic calculation based on high, low, and close prices
Application of weighted moving averages (WMA) for short-term smoothing
Progressive smoothing through differential factors
Final smoothing to reduce noise and highlight significant trend changes
The indicator oscillates between 0 and 100, with two main components:
Main Line (Green): The smoothed stochastic value
Signal Line (Yellow): A further smoothed version of the main line
Signal Generation
Trading signals are generated when the main line crosses the signal line:
Buy Signal (Green Triangle): When the main line crosses above the signal line
Sell Signal (Red Triangle): When the main line crosses below the signal line
Key Features
Multiple Smoothing Algorithms: Uses a combination of weighted and exponential moving averages for superior noise reduction
Clear Visualization: Color-coded lines and background filling
Reference Levels: Horizontal lines at 25, 50, and 75 for context
Customizable Colors: All visual elements can be color-customized
Customization Options
PST Length: Base period for the stochastic calculation (default: 9)
PST X: Multiplier for the lookback period (default: 5)
PST Smooth: Smoothing factor for progressive calculations (default: 3)
Smooth Period: Final smoothing period (default: 10)
Trading Applications
Trend Confirmation: Use crossovers to confirm entries in the direction of the prevailing trend
Reversal Detection: Identify potential market reversals when crossovers occur at extreme levels
Range-Bound Markets: Look for oscillations between overbought and oversold levels
Filter for Other Indicators: Use as a confirmation tool alongside other technical indicators
Best Practices
Most effective in trending markets or during well-defined ranges
Combine with price action analysis for better context
Consider the overall market environment before taking signals
Use longer settings for fewer but higher-quality signals
The Kase Permission Stochastic delivers a sophisticated approach to momentum analysis, offering a refined perspective on market conditions while filtering out much of the noise that affects standard oscillators.
HTF Support & Resistance Zones📌 English Description:
HTF Support & Resistance Zones is a powerful indicator designed to auto-detect key support and resistance levels from higher timeframes (Daily, Weekly, Monthly, Yearly).
It displays the number of touches for each level and automatically classifies its strength (Weak – Strong – Very Strong) with full customization options.
✅ Features:
Auto-detection of support/resistance from HTFs
Strength calculation based on touch count
Clean visual display with color, size, and label customization
Ideal for scalping and intraday trading
📌 الوصف العربي:
مؤشر "HTF Support & Resistance Zones" يساعد المتداولين على تحديد أهم مناطق الدعم والمقاومة المستخرجة تلقائيًا من الفريمات الكبيرة (اليومي، الأسبوعي، الشهري، السنوي).
يعرض المؤشر عدد اللمسات لكل مستوى ويقيّم قوته تلقائيًا (ضعيف – قوي – قوي جدًا)، مع خيارات تخصيص كاملة للعرض.
✅ ميزات المؤشر:
دعم/مقاومة تلقائية من الفريمات الكبيرة
تقييم تلقائي لقوة المستويات بناءً على عدد اللمسات
عرض مرئي مرن مع تحكم بالألوان، الحجم، الشكل، والخلفية
مناسب للتداولات اليومية والسكالبينج
EMA Channel Key K-LinesEMA Channel Setup :
Three 32-period EMAs (high, low, close prices)
Visually distinct colors (red, blue, green)
Gray background between high and low EMAs
Key K-line Identification :
For buy signals: Close > highest EMA, K-line height ≥ channel height, body ≥ 2/3 of range
For sell signals: Close < lowest EMA, K-line height ≥ channel height, body ≥ 2/3 of range
Alternating signals only (no consecutive buy/sell signals)
Visual Markers :
Green "BUY" labels below key buy K-lines
Red "SELL" labels above key sell K-lines
Clear channel visualization
Logic Flow :
Tracks last signal direction to prevent consecutive same-type signals
Strict conditions ensure only significant breakouts are marked
All calculations based on your exact specifications
[TABLE] Moving Average Stage Indicator Table📈 MA Stage Indicator Table
🧠 Overview:
This script analyzes market phases based on moving average (MA) crossovers, classifying them into 6 distinct stages and displaying statistical summaries for each.
🔍 Key Features:
• Classifies market condition into Stage 1 to Stage 6 based on the relationship between MA1 (short), MA2 (mid), and MA3 (long)
• Provides detailed stats for each stage:
• Average Duration
• Average Width (MA distance)
• Slope (Angle) - High / Low / Average
• Shows current stage details in real-time
• Supports custom date range filtering
• Choose MA type: SMA or EMA
• Optional background coloring for stages
• Clean summary table displayed on the chart
ADR Nivele Horizontale dhe EMAThe user provided a Pine Script code for an indicator called "ADR Nivele Horizontale dhe EMA". The task is to explain how this code works. Hmm, first, I need to understand what this indicator does. The title mentions ADR levels and EMA, so it's probably combining horizontal lines based on Average Daily Range and some Exponential Moving Averages.
Looking at the code, the first part is the indicator declaration with version 6. The settings include an ADR period, levels above and below the mid, and line style. Then there's a section for calculations. They request daily high and low to compute the daily range. The ADR is the SMA of the daily range over the specified period. The mid is the average of daily high and low. The adr_val is half of ADR, maybe to create symmetrical levels around the mid.
Next, they create arrays for lines and labels above and below the mid. The loops go from 1 to levels_above/below, calculate each level, draw lines and labels. The mid line is also drawn with a different color. Then, there are several EMAs plotted: 13, 50, 200, 400, 600, 800, each with different colorsWait, but in Pine Script, when you use arrays to store lines and labels, you have to manage them properly to avoid repainting or memory issues. The code uses array.concat to add new lines and labels each bar. However, since this code is running on each bar, the for loops might be creating multiple lines each time, leading to too many objects. Oh right, but they use var to initialize the arrays, so they are only initialized once. Wait, no. The var keyword initializes the variable once, but in each iteration, they are concatenating new lines. Wait, no: the for loops are inside the main script, which runs on each bar. So every time a new bar is processed, the loops will run again, adding new lines and labels. That's a problem because each bar would create new lines, leading to an ever-increasing number of lines, which could hit the maximum limit (max_lines_count is set to 20, but maybe they have more bars). Oh, the indicator has max_lines_count=20, but the code might be creating multiple lines per bar. So maybe the code isn't handling the line management correctly. For example, if levels_above is 2, then each bar would create 2 new lines above and 2 below, plus the mid line. Over 20 bars, that's way over 20 lines. So this could cause the indicator to stop drawing after 20 lines. The user might not have realized that the lines are being recreated every bar, leading to a buildup. But perhaps the original code intended to have the lines update each bar, extending to the current bar. Let's see: in line.new, they use bar_index as the starting x1 and bar_index as x2. So each line is drawn from the previous bar's index to the current one. But since this is done on every bar, each line is only one bar long. Wait, no. Because on each new bar, the code creates a new line from the previous bar's index (bar_index , which is now the bar before the current one) to the current bar_index. So each line is just a segment from the previous bar to the current bar. But when the next bar comes, a new line is created again. So the result is that each level line is a series of one-bar-length segments, which might not be intended. The user probably wants continuous lines that extend from the left to the right, not just per bar. So this approach is incorrect. The correct way would be to have a line that starts at the first bar of the calculation and extends to the right, updating each bar. But the current code creates a new line each bar, leading to multiple short lines instead of one continuous line. That's a mistake.
So the main issue here is that the code is generating a new line segment for each bar, which is not efficient and would quickly hit the line limit. To fix this, instead of creating a new line every bar, they should create the line once and then update its position each bar. But in Pine Script, you can't directly update a line after it's created; instead, you need to track the line ID and use line.set_xy() to extend it. However, the current code uses array.concat to add new lines each bar, which isn't the right approach.
Therefore, the code as written will create multiple short lines instead of continuous horizontal lines. The correct approach for horizontal levels that extend to the right is to create the line once, starting at a certain bar and extending indefinitely, or to update the line's end point each new bar. But in Pine Script, you can't extend lines infinitely; you have to manage them each bar. Alternatively, using the 'line.extend' style might help, but I think the original code's logic is flawed here.
Additionally, the EMA part is straightforward: plotting multiple EMAs with different periods. That part should work as expected.
So the explanation should mention that the ADR levels are calculated based on the daily high and low, then the code attempts to draw horizontal lines above and below the mid-point. However, the way the lines are drawn may lead to multiple short segments instead of continuous lines, potentially causing performance issues or hitting the maximum line count. The EMAs are plotted correctly with various periods..
Multi-TF Support LevelsThe Multi-TF Support Levels indicator identifies and displays key support levels based on swing lows across three user-selected timeframes.
How it works:
Input Parameters:
Lookback Period (100) — historical depth to search for swing lows.
Timeframe 1-3 (15, 45, 240) — three timeframes (e.g., 15min, 45min, 4hr).
Logic:
For each timeframe, a swing low is detected: the lowest price within the lookback period that is also lower than the two preceding candles.
Support levels update dynamically when new swing lows are formed.
The most recent levels are plotted as horizontal cross marks (blue, red, green for each timeframe).
Purpose: Visualize significant support zones from multiple timeframes to identify confluent areas for trading decisions.
Индикатор Multi-TF Support Levels (Мультитаймфреймовые уровни поддержки) определяет и отображает ключевые уровни поддержки на основе минимумов свингов (swing lows) на трёх выбранных таймфреймах.
Как работает:
Входные параметры:
Lookback Period (100) — глубина анализа для поиска минимумов.
Timeframe 1-3 (15, 45, 240) — три таймфрейма (например, 15 минут, 45 минут, 4 часа).
Логика:
Для каждого таймфрейма определяется свинг-минимум: цена, которая является самой низкой за период lookback и ниже двух предыдущих свечей.
Уровни поддержки обновляются при появлении новых свинг-минимумов.
Последние актуальные уровни отображаются на графике в виде горизонтальных линий-крестиков (синий, красный, зелёный для каждого таймфрейма).
Цель: Визуализировать значимые уровни поддержки с разных таймфреймов для поиска зон "конфлюэнса".