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.
指标和策略
Estrategia RSI para BCT/USDT//@version=5
indicator("Estrategia RSI para BCT/USDT", overlay=false)
// Configuración del RSI
rsiPeriod = 14
rsiOverbought = 70
rsiOversold = 30
// Cálculo del RSI
rsiValue = ta.rsi(close, rsiPeriod)
// Señales de Compra y Venta
buySignal = ta.crossover(rsiValue, rsiOversold)
sellSignal = ta.crossunder(rsiValue, rsiOverbought)
// Gráfico del RSI
hline(rsiOverbought, "Sobrecompra", color=color.red)
hline(rsiOversold, "Sobreventa", color=color.green)
plot(rsiValue, "RSI", color=color.blue)
// Señales en el gráfico
plotshape(buySignal, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, text="BUY")
plotshape(sellSignal, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, text="SELL")
// Histograma de RSI
bgcolor(buySignal ? color.new(color.green, 90) : na)
bgcolor(sellSignal ? color.new(color.red, 90) : na)
EMA (10/20/50/200) with table and zone by Mr. Debabrata Saha1. This indicator consists of 10/ 20/ 50/ 200 EMA.
2. It has also multi timeframe information.
3. It has a table which indicates in multi timeframe where the price is (above or below).
4. It has also EMA based bearish and bullish zone information in multi timeframe
Position Size with Commission (Long & Short)Объем позиции на бар с тейком и выбором ratio. При вхождении в сделку стоп ордером при пробитии хай/лоу бара сразу на баре видно объем входа.
Price Cross SMA-EMA-WMA By Emanuele Sabatino v6.0Price Cross SMA-EMA-WMA By Emanuele Sabatino v6.0
Mostra il cross tra il prezzo e due medie mobili a scelta. E' possibile confermare il segnale con un filtro aggiuntivo di ATR per evitare il rumore
Stochastic Multi-Timeframe, Dual Look Back- Marks the bars to blue if there are several stoch oversold conditions.
1. Dual look back
2. Multi time frame stochastics
MA Cluster OscWhen all divergence lines cross the zero line of the histogram, it is a buy/sell signal.
> Proceed with caution, considering factors such as divergence.
ORB Channel FilledThis Pine Script indicator identifies the 15-minute opening range (9:30 AM to 9:45 AM EST) on intraday charts. It dynamically plots:
ORB High and Low: Displayed as subtle white lines with reduced thickness and opacity during regular trading hours (9:30 AM to 4:00 PM EST).
Filled Channel: A semi-transparent blue channel is filled between the ORB high and low levels, visually highlighting the range.
This script is ideal for traders looking to analyze the opening range and its implications during regular trading sessions.
Dima RSI EMA Bollinger MACD StrategyRsi 1 deqiqelik alqı satqı uçun hazirlamişam 1 deqiqelikde 80% duz tapır
EMA Color ChangeEste indicador hará lo siguiente:
Calcula la EMA de 12 períodos.
Cambia el color de la EMA a verde si el precio cierra por encima de ella.
Cambia el color de la EMA a rojo si el precio cierra por debajo de ella.
Bohmian Mechanics Moving Average (BMMA)
Bohmian Mechanics Moving Average (BMMA) Indicator
The Bohmian Mechanics Moving Average (BMMA) is a unique and innovative indicator designed to integrate concepts inspired by physics, specifically Bohmian Mechanics, into financial market analysis. It combines momentum, volatility, and smoothed averages to provide an adaptive moving average that responds dynamically to market conditions.
Key Components
1. Input Parameters
Length Parameters:
lengthShort: Defines the period for the short BMMA calculation.
lengthLong: Defines the period for the long BMMA calculation.
Factors:
momentumFactor: Controls the influence of momentum on the moving average.
volatilityFactor: Adjusts the sensitivity of the moving average to market volatility.
pilotWaveFactor: Affects the interaction between the pilot wave (derived from the EMA) and other market dynamics.
2. BMMA Calculation
The BMMA is computed using a multi-step process that incorporates both market momentum and volatility to adjust the smoothing effect dynamically.
Momentum (ta.mom): Measures the change in price over the defined period.
Volatility (ta.stdev): Captures the standard deviation of prices to quantify market uncertainty.
Pilot Wave: Derived from an Exponential Moving Average (EMA), adjusted by momentum and volatility factors. It represents the "guiding wave" for BMMA.
Quantum Potential: A dynamic factor that adapts the sensitivity of the BMMA to current market conditions. It combines the effects of momentum and volatility to adjust the smoothing and responsiveness of the moving average.
The BMMA formula ensures that the moving average remains adaptive and responsive, adjusting its behavior based on the interaction of market forces.
3. Short and Long BMMA
Short BMMA (BMMA_short): A faster-moving line that reacts more quickly to price changes.
Long BMMA (BMMA_long): A slower-moving line that smooths out longer-term trends.
Signal Generation
The crossover between the short and long BMMA lines is used to generate buy and sell signals:
Bullish Signal (Crossover): When the short BMMA crosses above the long BMMA, it indicates a potential upward trend. A green upward label is plotted below the bar.
Bearish Signal (Crossunder): When the short BMMA crosses below the long BMMA, it signals a potential downward trend. A red downward label is plotted above the bar.
Visualization
The short BMMA is plotted in blue, and the long BMMA is plotted in red for clear differentiation.
Labels are displayed at crossovers and crossunders to highlight bullish and bearish signals.
The smoothing effect and adaptive nature of the BMMA lines provide a visually appealing and informative trend-following system.
Use Cases
Trend Following: The BMMA helps traders identify and follow trends by dynamically adapting to market conditions.
Momentum and Volatility Analysis: By integrating these factors, the BMMA provides insights into the strength and stability of trends.
Signal Confirmation: The crossover signals can be used to confirm other trading strategies or indicators.
Advantages of BMMA
Adaptability: Unlike static moving averages, the BMMA adjusts dynamically to market momentum and volatility.
Unique Approach: Combines principles of physics (Bohmian Mechanics) with financial market analysis for a novel perspective.
Enhanced Signal Quality: The dual-line system provides clear crossover signals while reducing noise.
The Bohmian Mechanics Moving Average (BMMA) offers a cutting-edge approach to analyzing market trends, making it a valuable tool for traders seeking adaptive and insightful indicators.
EMA9 Pullback Range (JFK)Deze indicator helpt traders om instapmogelijkheden te identificeren rond de EMA9 door een tolerantieband te visualiseren die per aandeel aangepast kan worden.
حمایتهای مهم تکنیکالی//@version=5
indicator("حمایتهای مهم تکنیکالی", overlay=true)
// محاسبات میانگین متحرک
ma50 = ta.sma(close, 50) // میانگین متحرک 50
ma200 = ta.sma(close, 200) // میانگین متحرک 200
// محاسبات فیبوناچی
high_price = ta.highest(high, 100) // بالاترین قیمت در بازه 100 کندل
low_price = ta.lowest(low, 100) // پایینترین قیمت در بازه 100 کندل
fib_618 = low_price + (high_price - low_price) * 0.618 // سطح فیبوناچی 0.618
fib_382 = low_price + (high_price - low_price) * 0.382 // سطح فیبوناچی 0.382
// سطوح حمایت تاریخی
support_level = request.security(syminfo.tickerid, "W", ta.lowest(low, 20)) // کمترین قیمت در تایمفریم هفتگی
// رسم خطوط افقی
line.new(bar_index - 1000, ma50, bar_index + 1000, ma50, color=color.blue, width=1, style=line.style_dotted) // میانگین متحرک 50
line.new(bar_index - 1000, ma200, bar_index + 1000, ma200, color=color.green, width=1, style=line.style_dotted) // میانگین متحرک 200
line.new(bar_index - 1000, fib_618, bar_index + 1000, fib_618, color=color.orange, width=1, style=line.style_solid) // فیبوناچی 0.618
line.new(bar_index - 1000, fib_382, bar_index + 1000, fib_382, color=color.purple, width=1, style=line.style_solid) // فیبوناچی 0.382
line.new(bar_index - 1000, support_level, bar_index + 1000, support_level, color=color.red, width=2, style=line.style_dashed) // حمایت تاریخی هفتگی
// برچسبها برای توضیحات
label.new(bar_index, ma50, "MA50", style=label.style_label_down, color=color.blue, textcolor=color.white)
label.new(bar_index, ma200, "MA200", style=label.style_label_down, color=color.green, textcolor=color.white)
label.new(bar_index, fib_618, "فیبوناچی 0.618", style=label.style_label_down, color=color.orange, textcolor=color.white)
label.new(bar_index, fib_382, "فیبوناچی 0.382", style=label.style_label_down, color=color.purple, textcolor=color.white)
label.new(bar_index, support_level, "حمایت تاریخی", style=label.style_label_down, color=color.red, textcolor=color.white)
BTCs RSI + EMA 200 EMA CrossA simple script that provides an alert on the 200 EMA when price crosses the 200 EMA after the RSI dips below 25.
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.
ChristmasWishing You All a Merry Christmas! 🎄☃️❄️
May your charts be ever-green, your trades profitable, and your holiday season filled with joy, warmth, and magic. Happy Holidays!
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
Christmas tree Animated Pixel ArtThis is an animated Christmas tree that lights up.
It was done using a script by the author of Gunzo_TV
Merry Christmas!
MAD Ratio with Buy/Sell SignalsThis code creates an indicator that generates Buy and Sell signals based on the Moving Average Distance (MAD) Ratio and the crossover/crossunder of two Simple Moving Averages (SMA). Here's a breakdown of what it does:
What the Indicator Shows:
Moving Averages:
21-day SMA (shortMA): Plotted in blue.
200-day SMA (longMA): Plotted in red.
These lines visually represent short-term and long-term trends in price.
Horizontal Reference Line:
A gray horizontal line at Ratio = 1 marks when the 21-day SMA and 200-day SMA are equal. This is the neutral point for the MAD ratio.
Buy and Sell Signals:
Buy Signal (Green Label):
Triggered when:
MAD Ratio > 1 (shortMA is greater than longMA, indicating upward momentum).
The 21-day SMA crosses above the 200-day SMA.
Displays a green "BUY" label below the price chart.
Sell Signal (Red Label):
Triggered when:
MAD Ratio < 1 (shortMA is less than longMA, indicating downward momentum).
The 21-day SMA crosses below the 200-day SMA.
Displays a red "SELL" label above the price chart.
Open-Close Diff with Bollinger Bands (Up to 8σ)1. what this code does
This code does the following
Calculates the difference (diff) between the open (opening) and close (closing) prices
The direction and magnitude of the price change for each candle.
Calculate Bollinger bands from ±3σ to ±8σ
Calculated based on moving average (basis) and standard deviation (stdDev)
Calculates the upper and lower limits of the Bollinger Bands and plots the lines at each σ level (3σ to 8σ).
Changes background color when the Bollinger Band is exceeded.
For example, if the diff is between ±3σ and ±4σ, the background is changed in red or blue.
When a value reaches a Bollinger Band outside of the more outer Bollinger Band (e.g., ±8σ), the transparency of the background color changes to visually highlight the anomaly.