[ADB] Patternsshow Most profitable pattern on chart. it is very useful for xauusd and session analysis
Forecasting
S & R - Trend Lines & Channels (Prince of Arabs)Support and Resistance with Trend Channels
This indicator identifies key support and resistance levels based on swing highs and lows over a user-defined lookback period. It also visualizes dynamic trend channels to help traders understand price ranges and market structure.
Key features include:
Support Level: Marked with a green line and labeled "Support," indicating potential buying areas.
Resistance Level: Marked with a red line and labeled "Resistance," indicating potential selling areas.
Trend Channels: Dashed blue (upper) and purple (lower) lines show the price range above resistance and below support, helping to identify overbought and oversold conditions.
Clear Entry Signals: A "Buy" label is displayed near the price when it approaches the support level within a user-defined backtesting range.
Stop Loss and Take Profit Levels: Automatically calculated based on customizable percentages and visualized on the chart for each trade.
Risk-to-Reward Visualization: The indicator simplifies risk management by showing trade levels dynamically.
Signal buy and sell (Simple Signals)إعدادات المؤشرات
ema_length = input.int(50, title="EMA Length"):
يسمح للمستخدم بتحديد طول المتوسط المتحرك الأسي (EMA) الافتراضي (القيمة الافتراضية هي 50).
هذه القيمة تمثل عدد الشموع المستخدمة لحساب المتوسط المتحرك الأسي.
حساب المتوسط المتحرك الأسي (EMA)
ema_value = ta.ema(close, ema_length):
ta.ema: دالة من مكتبة TradingView تحسب المتوسط المتحرك الأسي.
close: السعر الإغلاق لكل شمعة.
ema_length: طول المتوسط المتحرك (عدد الشموع المستخدم).
إشارات الشراء والبيع
buy_signal = ta.crossover(close, ema_value):
ta.crossover: يتحقق مما إذا كان السعر (close) قد اخترق خط EMA صعودًا.
إذا تحقق الشرط، يتم توليد إشارة شراء (buy_signal).
sell_signal = ta.crossunder(close, ema_value):
ta.crossunder: يتحقق مما إذا كان السعر (close) قد اخترق خط EMA هبوطًا.
إذا تحقق الشرط، يتم توليد إشارة بيع (sell_signal).
رسم المتوسط المتحرك الأسي
plot(ema_value, color=color.yellow, linewidth=2, title="EMA"):
يرسم خط المتوسط المتحرك الأسي (EMA) على الرسم البياني.
color=color.yellow: يحدد اللون الأصفر للخط.
linewidth=2: يحدد سمك الخط ليكون أكثر وضوحًا.
title="EMA": يظهر كاسم للخط عند عرض تفاصيل المؤشر.
رسم إشارات الشراء والبيع
plotshape(series=buy_signal, location=location.belowbar, color=color.green, style=shape.triangleup, title="Buy Signal", text="BUY"):
يظهر سهم أخضر (شكل مثلث) أسفل الشمعة التي تولدت عندها إشارة الشراء.
plotshape(series=sell_signal, location=location.abovebar, color=color.red, style=shape.triangledown, title="Sell Signal", text="SELL"):
يظهر سهم أحمر (شكل مثلث مقلوب) أعلى الشمعة التي تولدت عندها إشارة البيع.
إشعارات التنبيه
if (buy_signal) alert("Buy Signal detected on Gold!", alert.freq_once_per_bar):
عند ظهور إشارة شراء، يتم إرسال تنبيه مكتوب: "Buy Signal detected on Gold!".
alert.freq_once_per_bar: يضمن إرسال التنبيه مرة واحدة لكل شمعة.
if (sell_signal) alert("Sell Signal detected on Gold!", alert.freq_once_per_bar):
عند ظهور إشارة بيع، يتم إرسال تنبيه مكتوب: "Sell Signal detected on Gold!".
الهدف من المؤشر:
المؤشر يساعد المتداولين في تحديد نقاط الشراء والبيع استنادًا إلى تقاطع السعر مع المتوسط المتحرك الأسي (EMA).
يوفر رؤية بصرية واضحة بفضل الأسهم الملونة، ويتيح إشعارات تنبيه لتجنب تفويت الإشارات أثناء التداول.
كيفية تحسين المؤشر:
إضافة فلاتر إضافية مثل RSI أو تحليل الاتجاه العام لتحسين دقة الإشارات.
استخدام أطوال متعددة للـ EMA لتأكيد الاتجاه.
تعديل التنبيهات لتشمل المزيد من التفاصيل مثل السعر الحالي.
Daily Ichimoku Cloud Breakout Signalsoffre des signaux d'achats et de vente grace a l'ichimoku (prendre en compte que les signaux daily)
IU Higher Timeframe MA Cross StrategyIU Higher Timeframe MA Cross Strategy
The IU Higher Timeframe MA Cross Strategy is a versatile trading tool designed to identify trend by utilizing two customizable moving averages (MAs) across different timeframes and types. This strategy includes detailed entry and exit rules with fully configurable inputs, offering flexibility to suit various trading styles.
Key Features:
- Two moving averages (MA1 and MA2) with customizable types, lengths, sources, and timeframes.
- Both long and short trade setups based on MA crossovers.
- Integrated risk management with adjustable stop-loss and take-profit levels based on a user-defined risk-to-reward (RTR) ratio.
- Clear visualization of MAs, entry points, stop-loss, and take-profit zones.
Inputs:
1. Risk-to-Reward Ratio (RTR):
- Defines the take-profit level in relation to the stop-loss distance. Default is 2.
2. MA1 Settings:
- Source: Select the data source for calculating MA1 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA1 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA1 calculation. Default is 20.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA1 to merge gaps. Default is true.
3. MA2 Settings:
- Source: Select the data source for calculating MA2 (e.g., close, open, high, low). Default is close.
- Timeframe: Specify the timeframe for MA2 calculation. Default is 60 (60-minute chart).
- Length: Set the lookback period for MA2 calculation. Default is 50.
- Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.
- Smooth: Option to enable or disable smoothing of MA2 to merge gaps. Default is true.
Entry Rules:
- Long Entry:
- Triggered when MA1 crosses above MA2 (crossover).
- Entry is confirmed only when the bar is closed and no existing position is active.
- Short Entry:
- Triggered when MA1 crosses below MA2 (crossunder).
- Entry is confirmed only when the bar is closed and no existing position is active.
Exit Rules:
- Stop-Loss:
- For long positions: Set at the low of the bar preceding the entry.
- For short positions: Set at the high of the bar preceding the entry.
- Take-Profit:
- For long positions: Calculated as (Entry Price - Stop-Loss) * RTR + Entry Price.
- For short positions: Calculated as Entry Price - (Stop-Loss - Entry Price) * RTR.
Visualization:
- Plots MA1 and MA2 on the chart with distinct colors for easy identification.
- Highlights stop-loss and take-profit levels using shaded zones for clear visual representation.
- Displays the entry level for active positions.
This strategy provides a robust framework for traders to identify and act on trend reversals while maintaining strict risk management. The flexibility of its inputs allows for seamless customization to adapt to various market conditions and trading preferences.
RSI StrategyCondições de entrada e saída da estratégia:
Entrada em posição longa: A estratégia entra em uma posição comprada (longa) quando o RSI cai abaixo do nível de sobrevenda (20), indicando um possível momento de compra.
Saída de posição longa: A estratégia sai da posição longa em três cenários:
Realização de lucro: Quando o RSI atinge o nível de sobrecompra (70), indicando uma possível reversão de alta para baixa e uma oportunidade de obter lucro.
Stop-loss: Quando o RSI cai abaixo do nível de stop-loss (-15), limitando as perdas em caso de movimento adverso do preço.
Sinal de venda: Quando o RSI atinge novamente o nível de sobrecompra (70), indicando um sinal de venda.
3. Parâmetros da estratégia:
Período do RSI: O período de 14 dias é comumente utilizado para o cálculo do RSI, mas pode ser ajustado de acordo com a preferência do trader e as características do ativo.
Níveis de sobrecompra e sobrevenda: Os níveis de 70 e 20 são valores padrão, mas podem ser ajustados para aumentar ou diminuir a sensibilidade da estratégia.
Nível de stop-loss: O nível de stop-loss de -15 determina o ponto em que a posição é encerrada para limitar as perdas.
"Phát Hiện Trạng Thái Thị Trường - TUNGDUBAI|LTC CapitalĐây là một chỉ báo kết hợp nhiều công cụ phân tích kỹ thuật để xác định trạng thái của thị trường, giúp bạn nhận biết liệu thị trường đang đi ngang (sideway) hay đang có sóng mạnh (strong wave). Dưới đây là giải thích từng phần cơ bản của chỉ báo này:
### 1. **Chỉ báo ADX (Average Directional Index):**
- **Mục đích:** Đo lường sức mạnh của xu hướng.
- **Điều kiện:**
- **ADX < 20:** Thị trường có xu hướng yếu hoặc đi ngang (sideway).
- **ADX > 25:** Thị trường có xu hướng mạnh.
- **Cách sử dụng:** ADX không xác định hướng (tăng hay giảm), chỉ đo lường độ mạnh của xu hướng.
### 2. **Bollinger Bands (BB):**
- **Mục đích:** Xác định phạm vi giá thông qua độ lệch chuẩn.
- **Cấu trúc:**
- **UpperBB:** Đường biên trên, đại diện cho giá cao.
- **LowerBB:** Đường biên dưới, đại diện cho giá thấp.
- **Basis:** Đường trung tâm (moving average) của BB.
- **Điều kiện:** Giá nằm trong hoặc vượt ngoài các dải BB:
- Giá trong dải BB: Thị trường sideway.
- Giá vượt khỏi dải BB: Có khả năng sóng mạnh.
### 3. **RSI (Relative Strength Index):**
- **Mục đích:** Đo lường động lượng và xác định vùng quá mua/quá bán.
- **Điều kiện:**
- **45 < RSI < 55:** Thị trường trung lập, thường xảy ra trong sideway.
- **RSI > 70 hoặc RSI < 30:** Thị trường có động lượng mạnh, gợi ý sóng mạnh.
### 4. **Điều kiện thị trường:**
- **Thị trường đi ngang (Sideway):**
- **ADX < 20**
- Giá nằm trong dải Bollinger Bands.
- RSI nằm trong khoảng 45 - 55.
- Hiển thị nền màu vàng trên biểu đồ.
- **Thị trường có sóng mạnh (Strong Wave):**
- **ADX > 25**
- Giá vượt khỏi dải Bollinger Bands **hoặc** RSI nằm ngoài vùng 30 - 70.
- Hiển thị nền màu xanh trên biểu đồ.
### 5. **Tín hiệu cảnh báo:**
- Khi thị trường đi ngang hoặc xuất hiện sóng mạnh, chỉ báo gửi thông báo cảnh báo để bạn kịp thời đưa ra quyết định giao dịch.
### 6. **Hiển thị trên biểu đồ:**
- **ADX và RSI:** Giúp bạn dễ dàng theo dõi chỉ số sức mạnh và động lượng.
- **Bollinger Bands:** Cho thấy các mức hỗ trợ và kháng cự động dựa trên dải giá.
- **Màu nền:** Phân biệt trạng thái thị trường trực quan hơn.
Chỉ báo này hữu ích cho cả việc xác định vùng tích lũy (sideway) để chờ đợi cơ hội giao dịch, và vùng sóng mạnh (breakout) để tận dụng xu hướng. Nếu có thêm câu hỏi hoặc cần tùy chỉnh, hãy cho mình biết nhé! 😊
BTC Tradingمرحبا يا متداولين
هو مؤشر لتداول البيتكوين باستخدام المتوسطات المتحركة (Moving Averages). إليك شرحًا للمؤشر وطريقة استخدامه:
1. إعداد المتوسطات المتحركة:
المتوسط المتحرك القصير (Short MA): هو متوسط متحرك يستخدم فترة زمنية قصيرة (9 أيام في هذا السكربت).
المتوسط المتحرك الطويل (Long MA): هو متوسط متحرك يستخدم فترة زمنية أطول (21 يومًا في هذا السكربت).
يتم حساب المتوسطات المتحركة باستخدام الدالة ta.sma(close, length), حيث يتم حساب المتوسط على أساس أسعار الإغلاق.
2. إشارات الشراء والبيع:
إشارة الشراء (Buy Signal): تحدث عندما يتقاطع المتوسط المتحرك القصير (Short MA) إلى الأعلى فوق المتوسط المتحرك الطويل (Long MA). هذا يعكس إشارة شراء.
يتم تحديد هذه الإشارة باستخدام الدالة ta.crossover(shortMA, longMA).
إشارة البيع (Sell Signal): تحدث عندما يتقاطع المتوسط المتحرك القصير (Short MA) إلى الأسفل تحت المتوسط المتحرك الطويل (Long MA). هذا يعكس إشارة بيع.
يتم تحديد هذه الإشارة باستخدام الدالة ta.crossunder(shortMA, longMA).
3. رسم المتوسطات المتحركة على الرسم البياني:
يتم رسم المتوسط المتحرك القصير باللون الأخضر باستخدام الدالة plot(shortMA).
يتم رسم المتوسط المتحرك الطويل باللون الأحمر باستخدام الدالة plot(longMA).
4. رسم علامات الشراء والبيع:
عند ظهور إشارة شراء، يتم رسم شكل تحت الشمعة يظهر كلمة "BUY" باللون الأخضر باستخدام الدالة plotshape(series=buySignal).
عند ظهور إشارة بيع، يتم رسم شكل فوق الشمعة يظهر كلمة "SELL" باللون الأحمر باستخدام الدالة plotshape(series=sellSignal).
طريقة استخدامه:
عندما يظهر الخط الأخضر (المتوسط المتحرك القصير) فوق الخط الأحمر (المتوسط المتحرك الطويل)، ستظهر إشارة شراء (BUY).
عندما يظهر الخط الأخضر تحت الخط الأحمر، ستظهر إشارة بيع (SELL).
هذه الإشارات قد تساعد في اتخاذ قرارات شراء وبيع بناءً على تقاطع المتوسطات المتحركة.
التفسير الفني:
إشارة الشراء تعني أن السوق قد يبدأ في الاتجاه الصاعد، حيث يتجاوز المتوسط المتحرك القصير (الذي يعكس تحركات الأسعار على المدى القصير) المتوسط المتحرك الطويل (الذي يعكس الاتجاه العام).
إشارة البيع تعني أن السوق قد يبدأ في الاتجاه الهابط، حيث يبدأ المتوسط المتحرك القصير في الهبوط تحت المتوسط المتحرك الطويل.
ملحوظة: يمكن تعديل الفترات الزمنية للمتوسطات المتحركة حسب التفضيلات الشخصية أو استراتيجية التداول التي تستخدمها.
Bitcoin Halving Cycle Profit with Background ColourThis indicator is a Minor Modification from @KevinSvenson_ indicator, i am just add some background colour
Bitcoin Halving Cycle Profit with Background ColourThis indicator is a Minor Modification from @KevinSvenson_ indicator, i am just add some background colour
Position Size with Commission (Long & Short)Объем позиции на бар с тейком и выбором ratio. При вхождении в сделку стоп ордером при пробитии хай/лоу бара сразу на баре видно объем входа.
teststesetsetsetstestasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdfasdfasdfasidjfiasdjfklasdjfklasjdfklasjdf
US and Asia Trading Hoursadds vertical lines to your chart that show US trading hours 9-4 and NY trading hours based off of EST
AI Trend | EcoX TradingPurpose
This indicator is a versatile trend oscillator designed to work on any timeframe and asset. It extracts and processes market data to adaptively predict trend directions while visualizing momentum and trend extremes. The indicator provides clear visual cues using a combination of signal line, histogram and a trend cloud, making it an excellent confirmation tool when paired with SupportAnd Resistance or Order Block indicators.
Calculation Overview
Raw Signal Line:
Derived from market data using ten unique methods, each creating a data point with a fixed weight.
These weights are carefully optimized to ensure the indicator adapts to changing market conditions.
The Raw Signal Line color reflects trend direction:
Green: Uptrend
Red: Downtrend
Blue: Overbought/Oversold
Histogram:
A smoothed representation of the Raw Signal Line.
Colors indicate trend strength:
Cyan: Strong uptrend.
Orange: Strong downtrend.
Dark Cyan/Orange: Weakening trend.
Gray: Trend reversal.
Thin gray histogram overlays mark the peak or trough of current trend.
Trend Cloud:
Displays the projected range of the histogram based on highest and lowest values from the data points.
Purple: Normal trend range.
Blue: Oversold/Overbought range (dynamic color transition when approaching extremes).
Overbought/Oversold Levels:
Horizontal plus sign lines at 8 and -8 levels mark critical trend extremes.
Usage / Example Scenario
1. Long Positions
Identify an Oversold Market:
Check if the Raw Signal Line is green and rising and the Trend Cloud is below the oversold level with a blue color.
Histogram Confirmation:
Look for the histogram to be gray or dark orange, indicating a weakening downtrend.
Entry Strategy:
Enter a long position when all conditions align, ensuring other indicators (e.g., Support And Resistance) also support the trade.
Exit Strategy:
Exit when the histogram shifts from cyan do dark cyan or gray, signaling weakening uptrend momentum.
2. Short Positions
Identify an Overbought Market:
Check if the Raw Signal Line is red and falling and the Trend Cloud is above the overbought level with a blue color.
Histogram Confirmation:
Look for the histogram to be gray or dark cyan, indicating a weakening uptrend.
Entry Strategy:
Enter a short position when all conditions align, ensuring other indicators (e.g., Support And Resistance) also support the trade.
Exit Strategy:
Exit when the histogram shifts from orange to dark orange or gray, signaling weakening downtrend momentum.
Data Point Obtaining
Data Point 1 -> ta.ema(ta.ema()-ta.ema()) | Weight 1
Data Point 2 -> ta.ema(ta.ema()) | Weight 1
Data Point 3 -> ta.sma(ta.rma(ta.change())) | Weight 1
Data Point 4 -> ta.vwma()±ta.stdev() | Weight 5/1
Data Point 5 -> ta.supertrend | Weight 1~2
Data Point 6 -> 100*(ta.ema()-ta.ema())/ta.ema() | Weight 1
Data Point 7 -> ta.requestUpAndDownVolume() | Weight 1
Data Point 8 -> donchian((ta.lowest()+ta.highest())/2) | Weight 1
Data Point 9 -> ta.ema(ta.ema(ta.ema())) | Weight 1
Data Point 10 -> ta.sma(ta.cross(ta.ema(),ta.ema())) | Weight 0.25
Disclaimer
This indicator is intended as a confirmation tool and should not be used in isolation for trade entries or exits. Combine it with other technical tools to improve overall strategy accuracy. Always exercise proper risk management.
Entry Signal LinesShows entry signal lines. enter a long position after seeing 4 green lines in a row and enter a short when seeing 4 red lines in a row
Deshmukh DivergenceRSI Divergence with Moving Average Indicator
Description:
This indicator combines RSI divergence signals with a moving average (MA) on the RSI for enhanced trend analysis and signal confirmation. It identifies regular and hidden divergences between the price and RSI values, generating buy/sell signals based on these patterns. The added RSI moving average allows users to spot smoother trends and potential reversals.
How It Works:
RSI Calculation:
The Relative Strength Index (RSI) is calculated using the user-defined length.
Helps identify overbought and oversold conditions.
RSI Moving Average:
A simple moving average (SMA) is applied to the RSI to smooth its fluctuations.
Provides a clearer view of RSI trends.
Divergence Detection:
Regular Divergence:
Buy Signal: Price makes a lower low, but RSI makes a higher low.
Sell Signal: Price makes a higher high, but RSI makes a lower high.
Hidden Divergence:
Buy Signal: Price makes a higher low, but RSI makes a lower low.
Sell Signal: Price makes a lower high, but RSI makes a higher high.
Signal Visualization:
Signals are displayed as labeled shapes on the chart:
Green Up Arrow: Regular Buy.
Red Down Arrow: Regular Sell.
Blue Up Arrow: Hidden Buy.
Orange Down Arrow: Hidden Sell.
Overbought/Oversold Levels:
Horizontal lines mark overbought (70) and oversold (30) zones for quick reference.
This indicator is suitable for traders looking to identify potential trend reversals or continuations with the help of divergence patterns and RSI smoothing
Ignition Crystal BallIgnition Crystal Ball (ICB) Indicator
Inspired by the John Carter TTM Squeeze concept
1. Introduction
This “Ignition Crystal Ball” indicator combines Bollinger Bands (referred to here as “Ignition Bollinger Bands”) with one or two Keltner Channels to help traders visualize periods of potential “squeeze.” In John Carter’s TTM Squeeze logic, market volatility often shrinks when Bollinger Bands move inside Keltner Channels, and it expands when prices “fire” out of that squeeze.
This script also calculates custom angles on the Bollinger Bands, computes pip differences, and generates buy/sell alerts based on changing conditions. Below is a high-level overview of the indicator’s components, features, and how a trader might use it.
2. Ignition Bollinger Bands (IBB)
2.1 Inputs
• Length (default 20)
• StdDev (default 2.0)
• Threshold Angle (x10)
• Pip Differential Threshold
2.2 Calculation
1. Basis (Center Line)
Uses a simple moving average of close over length_ibb bars.
2. Upper & Lower Bands
Calculated by adding/subtracting (StdDev × standard deviation) from the basis.
2.3 Angle Detection
A custom function angle(_src, _lookback) approximates the slope of the Bollinger Bands in degrees by comparing _src vs. _src and applying an arctangent. The script colors table outputs when these angles exceed the user-defined threshold.
3. Keltner Channels
3.1 Inputs
• Length K1 / K2
• Multiplier K1 / K2
• Source K1 / K2
• Bands Style: Choice among “Average True Range,” “True Range,” or “Range.”
• Use Exponential MA: Toggle between EMA or SMA for the baseline.
3.2 Calculation
The script’s keltnerChannel function:
1. Calculates a moving average (EMA or SMA).
2. Computes a range using either ATR, True Range, or the plain bar range (high - low).
3. Returns the upper, middle, and lower lines.
Two sets of Keltner Channels (K1 and K2) are plotted by default.
4. Bollinger vs. Keltner: Identifying the “Squeeze”
A key part of many TTM Squeeze–style strategies involves looking for when Bollinger Bands move inside narrower Keltner Channels. This script calculates:
upper_pip_diff = (upperIBB - keltner1_upper) * 10000
lower_pip_diff = (keltner1_lower - lowerIBB) * 10000
• If these differences are small, it suggests a “squeeze” is in effect.
• The script also calculates a new_label_pip_diff (the difference between upper_pip_diff and lower_pip_diff) and displays that on the chart as a floating label.
5. Labels, Tables, and Visual Elements
5.1 Floating Labels
The script uses a custom floatingLabel() function to place real-time text boxes near the Bollinger Bands showing:
• upper_pip_diff
• lower_pip_diff
• new_label_pip_diff
• A percentage label that compares the current difference to a previous one.
Colors vary to reflect bullish (green), bearish (red), or neutral (yellow/gray) indications.
5.2 Table Displays
• PipD Table: Shows the absolute distance (in pips) between upper and lower Bollinger Bands.
• Angle Table: Located on the right side of the chart, displays the angles of the upper/lower IBB lines and the basis. If an angle exceeds the threshold, it turns bright (lime or red).
5.3 Plotting & Filling
• IBB: The basis and its upper/lower bands are plotted. The background between them can be filled with a semi-transparent color.
• Keltner Channels: Up to two sets (K1 and K2), each with its own color shading.
6. Alerts
There are two alert conditions, based on a color shift in the script’s logic:
buy_alert_condition = text_color_upper != color.green and text_color_upper == color.green
sell_alert_condition = text_color_upper != color.red and text_color_upper == color.red
• Buy Alert: When the script detects an upper color transition from non-green to green.
• Sell Alert: When the script detects an upper color transition from non-red to red.
7. Usage Tips
1. Spotting Squeezes
Look for times when Bollinger Bands contract inside Keltner Channels, suggesting low volatility.
2. Angle Threshold
The angle table on the right can reveal whether the bands are sloping sharply up or down.
3. Pip Differences (Forex)
For currency traders, tracking pip differences can highlight volatility changes.
4. Multi-Timeframe Analysis
Works on intraday or higher timeframes to detect expansions and contractions in volatility.
5. Alerts
The built-in alerts can notify you as soon as the script’s color logic changes to bullish or bearish.
Ignition Crystal BallIgnition Crystal Ball (ICB) Indicator
Inspired by the John Carter TTM Squeeze concept
1. Introduction
This “Ignition Crystal Ball” indicator combines Bollinger Bands (referred to here as “Ignition Bollinger Bands”) with one or two Keltner Channels to help traders visualize periods of potential “squeeze.” In John Carter’s TTM Squeeze logic, market volatility often shrinks when Bollinger Bands move inside Keltner Channels, and it expands when prices “fire” out of that squeeze.
This script also calculates custom angles on the Bollinger Bands, computes pip differences, and generates buy/sell alerts based on changing conditions. Below is a high-level overview of the indicator’s components, features, and how a trader might use it.
2. Ignition Bollinger Bands (IBB)
2.1 Inputs
• Length (default 20)
• StdDev (default 2.0)
• Threshold Angle (x10)
• Pip Differential Threshold
2.2 Calculation
1. Basis (Center Line)
Uses a simple moving average of close over length_ibb bars.
2. Upper & Lower Bands
Calculated by adding/subtracting (StdDev × standard deviation) from the basis.
2.3 Angle Detection
A custom function angle(_src, _lookback) approximates the slope of the Bollinger Bands in degrees by comparing _src vs. _src and applying an arctangent. The script colors table outputs when these angles exceed the user-defined threshold.
3. Keltner Channels
3.1 Inputs
• Length K1 / K2
• Multiplier K1 / K2
• Source K1 / K2
• Bands Style: Choice among “Average True Range,” “True Range,” or “Range.”
• Use Exponential MA: Toggle between EMA or SMA for the baseline.
3.2 Calculation
The script’s keltnerChannel function:
1. Calculates a moving average (EMA or SMA).
2. Computes a range using either ATR, True Range, or the plain bar range (high - low).
3. Returns the upper, middle, and lower lines.
Two sets of Keltner Channels (K1 and K2) are plotted by default.
4. Bollinger vs. Keltner: Identifying the “Squeeze”
A key part of many TTM Squeeze–style strategies involves looking for when Bollinger Bands move inside narrower Keltner Channels. This script calculates:
upper_pip_diff = (upperIBB - keltner1_upper) * 10000
lower_pip_diff = (keltner1_lower - lowerIBB) * 10000
• If these differences are small, it suggests a “squeeze” is in effect.
• The script also calculates a new_label_pip_diff (the difference between upper_pip_diff and lower_pip_diff) and displays that on the chart as a floating label.
5. Labels, Tables, and Visual Elements
5.1 Floating Labels
The script uses a custom floatingLabel() function to place real-time text boxes near the Bollinger Bands showing:
• upper_pip_diff
• lower_pip_diff
• new_label_pip_diff
• A percentage label that compares the current difference to a previous one.
Colors vary to reflect bullish (green), bearish (red), or neutral (yellow/gray) indications.
5.2 Table Displays
• PipD Table: Shows the absolute distance (in pips) between upper and lower Bollinger Bands.
• Angle Table: Located on the right side of the chart, displays the angles of the upper/lower IBB lines and the basis. If an angle exceeds the threshold, it turns bright (lime or red).
5.3 Plotting & Filling
• IBB: The basis and its upper/lower bands are plotted. The background between them can be filled with a semi-transparent color.
• Keltner Channels: Up to two sets (K1 and K2), each with its own color shading.
6. Alerts
There are two alert conditions, based on a color shift in the script’s logic:
buy_alert_condition = text_color_upper != color.green and text_color_upper == color.green
sell_alert_condition = text_color_upper != color.red and text_color_upper == color.red
• Buy Alert: When the script detects an upper color transition from non-green to green.
• Sell Alert: When the script detects an upper color transition from non-red to red.
7. Usage Tips
1. Spotting Squeezes
Look for times when Bollinger Bands contract inside Keltner Channels, suggesting low volatility.
2. Angle Threshold
The angle table on the right can reveal whether the bands are sloping sharply up or down.
3. Pip Differences (Forex)
For currency traders, tracking pip differences can highlight volatility changes.
4. Multi-Timeframe Analysis
Works on intraday or higher timeframes to detect expansions and contractions in volatility.
5. Alerts
The built-in alerts can notify you as soon as the script’s color logic changes to bullish or bearish.
Debug Buy/Sell Signals with Woodies CCI FilterThe script implements a trading strategy using Bollinger Bands combined with Woodies CCI (Commodity Channel Index) as a filter.
Script này triển khai một chiến lược giao dịch sử dụng Bollinger Bands kết hợp với chỉ báo CCI (Commodity Channel Index) của Woodies làm bộ lọc
(BUY-SELL)RSI with Bollinger BandsThis script for TradingView combines two popular technical analysis indicators - the Relative Strength Index (RSI) and Bollinger Bands - to identify when an asset's price may be overbought or oversold.
Here's how it works:
Input parameters:
rsiLength: the RSI calculation period (default is 14).
rsiOverbought: the overbought level of the RSI (default is 70).
rsiOversold: RSI oversold level (default is 30).
bbLength: Bollinger Bands calculation period (default is 20).
bbMult: standard deviation multiplier for Bollinger Bands (default is 2.0).
reducePyramiding: option to reduce pyramiding (off by default).
Indicator Calculation:
The script calculates RSI and Bollinger Bands using the built-in functions ta.rsi() and ta.bb().
Signal conditions:
Buy signal: generated when the RSI falls below the rsiOversold level and the closing price is below the lower Bollinger Band.
Sell signal: generated when the RSI rises above the rsiOverbought level and the closing price is above the upper Bollinger Band.
Pyramiding:
The script uses the buyCount and sellCount counters to track the number of consecutive buy and sell signals.
The maxTrades parameter defines the maximum number of trades in one direction (1 if reducePyramiding is enabled, and 3 otherwise).
Eroina Trend Reversal Indicator with ConfirmationsEroina Trend Reversal Indicator with Confirmations
Overview (English):
The Trend Reversal Indicator with Confirmations is designed to identify potential trend reversals by analyzing dynamic resistance and support levels. This script uses a robust confirmation system to reduce false signals, making it ideal for traders who seek disciplined, data-driven decisions.
Key Features:
• Dynamic Levels: Calculates resistance and support levels based on user-defined lengths.
• Breakout Confirmation: Confirms trend reversals by validating price action over a specified number of candles.
• Visual Cues: Displays “LONG” and “SHORT” signals directly on the chart, alongside resistance/support levels.
• Customizable Parameters: Adaptable to different timeframes and market conditions.
How It Works:
1. Resistance & Support Levels:
• Resistance: Calculated as the highest high over the last N bars.
• Support: Calculated as the lowest low over the last N bars.
2. Breakout Detection:
• A resistance breakout occurs when the price closes above the resistance level.
• A support breakout occurs when the price closes below the support level.
3. Confirmation Logic:
• Signals are validated only if the price remains above/below the levels for a user-defined number of candles.
4. Entry Signals:
• “LONG” signals indicate a confirmed breakout above resistance.
• “SHORT” signals indicate a confirmed breakdown below support.
Settings:
• Resistance Length: Defines the number of candles used to calculate resistance levels.
• Support Length: Defines the number of candles used to calculate support levels.
• Confirmation Candles: Specifies how many candles are required to confirm breakouts.
Usage:
This indicator is ideal for identifying trend reversals and optimizing entry points. Combine it with volume analysis or other technical indicators to enhance accuracy. For example:
• Use in conjunction with RSI to avoid overbought/oversold conditions.
• Combine with moving averages to confirm the trend direction.
Overview (Additional Language):
(Your additional language description can go here after English, e.g., Russian, Spanish, etc.)
IU 4 Bar UP StrategyIU 4 Bar UP Strategy
The IU 4 Bar UP Strategy is a trend-following strategy designed to identify and execute long trades during strong bullish momentum, combined with confirmation from the SuperTrend indicator. This strategy is suitable for traders aiming to capitalize on sustained upward market movements.
Features :
1. SuperTrend Confirmation: Incorporates the SuperTrend indicator as a dynamic support/resistance line to filter trades in the direction of the trend.
2. 4 Consecutive Bullish Bars: Detects a series of 4 bullish candles as a signal for strong upward momentum, ensuring robust trade setups.
3. Dynamic Alerts: Sends alerts for trade entries and exits to keep traders informed.
4. Visual Enhancements:
- Plots the SuperTrend indicator on the chart.
- Changes the background color while a trade is active for easy visualization.
Inputs :
- SuperTrend ATR Period: The period used to calculate the Average True Range (ATR) for the SuperTrend indicator.
- SuperTrend ATR Factor: The multiplier for the ATR in the SuperTrend calculation.
Entry Conditions :
A long entry is triggered when:
1. The last 4 consecutive candles are bullish (closing prices are higher than opening prices).
2. The current price is above the SuperTrend line.
3. The strategy is not already in a position.
4. The bar is confirmed (not a partially formed bar).
When all these conditions are met, the strategy enters a long position and provides an alert:
"Long Entry triggered"
Exit Conditions :
The strategy exits the long position when:
1. The closing price drops below the SuperTrend line.
2. An alert is generated: "Close the long Trade"
Visualization :
- The SuperTrend line is plotted, dynamically colored:
- Green when the trend is bullish.
- Red when the trend is bearish.
- The background color turns semi-transparent green while a trade is active, indicating a long position.
Do use proper risk management while using this strategy.