Call ratio spread Credit indicatorCall ratio spread credit indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
This spread is a CREDIT SPREAD.
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
-Credit received: The credit received for one unit of options strategy. Minimum value: 0. 01 .
-Instrument price when entered spread: the stock price when you enter the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
- Upper Strike numbers of calls . This number has to be greater than the number of calls that were bought.
- Lower Strike number of calls . This number has to be less than the number of calls that were sold.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
在腳本中搜尋"entry"
Put Bull Spread indicatorPut bull spread indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
This spread is a CREDIT SPREAD.
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
- Put spread price (Credit): The credit received for one unit of options strategy.
-Instrument price when entered spread: the stock price when you enter the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-% of Max Profit/Loss: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (0.95).
Example: In this spread, -0.95 means, 95% of the options strategy maximum loss is reached and, 0.95 means, 95% of the options strategy maximum profit is reached.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Put Bear Spread indicatorPut bear spread indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
This spread is a DEBIT SPREAD.
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
- Put spread price (Debit): The debit paid for one unit of options strategy.
-Instrument price when entered spread: the stock price when you enter the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-% of Max Profit/Loss: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (0.95).
Example: In this spread, -0.95 means, 95% of the options strategy maximum loss is reached and, 0.95 means, 95% of the options strategy maximum profit is reached.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Iron Condor / butterfly buy or sell indicatorIron Condor / butterfly indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
-Buy or sell (the strategy)
- Iron Condor price bought/sold: enter the price that you bought/sold one options strategy.
-Instrument price when bought/sold: the stock price when you bought/sold the options strategy.
-Upper strike price Top: the top upper strike price of the options strategy.
-Lower strike price Top: the top lower strike price of the options strategy.
-Upper strike price Bottom: the bottom upper strike price of the options strategy.
-Lower strike price Bottom: the bottom lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-% of Profit/Loss: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (0.95).
Example: If the strategy was bought, -0.95 means, 95% of the options strategy maximum loss is reached. : If the strategy was bought, 0.95 means, 95% of the options strategy maximum profit is reached.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Straddle / strangle buy or sell indicatorStraddle / strangle buy or sell indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
-Buy or sell (the strategy)
- Straddle/strangle price bought/sold: enter the price that you bought/sold one options strategy.
-Instrument price when bought/sold: the stock price when you bought/sold the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-Risk to reward: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (3).
Example: If the strategy was bought, -0.95 means, 95% of the options strategy value is lost (unrealized). If the strategy was bought, 3 means, the risk to reward is 3.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Call Bear Spread indicatorCall bear spread indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
This spread is a CREDIT SPREAD.
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
- Call spread price (Credit): The credit received for one unit of options strategy.
-Instrument price when entered spread: the stock price when you enter the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-% of Max Profit/Loss: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (0.95).
Example: In this spread, -0.95 means, 95% of the options strategy maximum loss is reached and, 0.95 means, 95% of the options strategy maximum profit is reached.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Call bull spread indicatorCall bull spread indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
This spread is a DEBIT SPREAD.
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
- Call spread price (Debit): The debit paid for one unit of options strategy.
-Instrument price when entered spread: the stock price when you enter the options strategy.
-Upper strike price: the upper strike price of the options strategy.
-Lower strike price: the lower strike price of the options strategy.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-% of Max Profit/Loss: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (0.95).
Example: In this spread, -0.95 means, 95% of the options strategy maximum loss is reached and, 0.95 means, 95% of the options strategy maximum profit is reached.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Put option buy or sell indicatorPut option indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
-Buy or sell (the strategy)
-The option price bought: at what price did you bought/sold one option.
-Instrument price when bought: the stock price when you bought/sold the option.
-Strike price: the strike price of the option.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-Risk to reward: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (3).
Example: If an option was bought, -0.95 means, 95% of the option value is lost (unrealized). If an option was bought, 3 means, the risk to reward is 3.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Call option buy or sell indicatorCall option indicator developed by Chobotaru Brothers.
You need to have basic knowledge in option trading to use this indicator!
The indicator shows P&L lines of the options strategy. Use only for stocks since the mathematical model of options for Future instruments is different from stocks. Plus, the days' representation in futures is also different from stocks (stocks have fewer days than futures ).
***Each strategy in options is based on different mathematical equations, use this indicator only for the strategy in the headline.***
What does the indicator do?
The indicator is based on the Black-Scholes model, which uses partial differential equations to determine the option pricing. Due to options non-linear behavior, it is hard to visualize the option price. The indicator calculates the solutions of the Black-Scholes equation and plots them on the chart so traders can view how the option pricing will behave.
How the indicator does it?
The indicator uses five values (four dominants and one less dominant) to solve the Black-Scholes equation. The values are stock price, the strike price of the option, time to expiration, risk-free interest rate, and implied volatility .
How the indicator help the users?
-View the risks and rewards so you can know the profit targets in advance which means you can compare different options in different strikes.
-View the volatility change impact so you can know the risk and the P&L changes in case of a change in the volatility over the life of the option before you enter the trade.
-View the passage of time impact so you can know where and when you could realize a profit.
-Multi-timeframes so you can stay on the same chart (Daily and below).
All these features are to help the user improve his analysis while trading options.
How to use it?
The user needs to obtain from the “option chain” the following inputs:
-Buy or sell (the strategy)
-The option price bought: at what price did you bought/sold one option.
-Instrument price when bought: the stock price when you bought/sold the option.
-Strike price: the strike price of the option.
-Interest rate: find the risk-free interest rate from the U.S. DEPARTMENT OF THE TREASURY. Example: for 2% interest rate, input: 0.02.
-Days to expire: how many days until the option expires.
-Volatility: the implied volatility of the option bought/sold. Example: for 45% implied volatility , input: 0.45.
-Day of entry: A calendar day of the month that the option bought/sold.
-Month of entry: Calendar month the option bought/sold.
-Year of entry: Calendar year the option bought/sold.
-Risk to reward: Profit/loss line defined by the user. Minimum input (-0.95) ; maximum input (3).
Example: If an option was bought, -0.95 means, 95% of the option value is lost (unrealized). If an option was bought, 3 means, the risk to reward is 3.
After entering all the inputs, press Ok and you should see “Calculation Complete” on the chart.
The user should not change the entry date and days to expire inputs as time passes after he entered the trade.
How to access the indicator?
Use the link below to obtain access to the indicator
Momentum by Trading BiZonesSqueeze Momentum Indicator with EMA
Overview
The Squeeze Momentum Indicator with EMA is a powerful technical analysis tool that combines the original Squeeze Momentum concept with an Exponential Moving Average (EMA) overlay. This enhanced version helps traders identify market momentum, volatility contractions (squeezes), and potential trend reversals with greater precision.
Core Concept
The indicator operates on the principle of volatility contraction and expansion:
Squeeze Phase: When Bollinger Bands move inside the Keltner Channel, indicating low volatility and potential energy buildup
Expansion Phase: When momentum breaks out of the squeeze, signaling potential directional moves
Key Components
1. Squeeze Momentum Calculation
Formula: Momentum = Linear Regression(Close - Average Price)
Where Average Price = (Highest High + Lowest Low + SMA(Close)) / 3
Visualization: Histogram bars showing positive (green) and negative (red) momentum
Zero Line: Represents equilibrium point between buyers and sellers
2. EMA Overlay
Purpose: Smooths momentum values to identify underlying trends
Customization:
Adjustable period (default: 20)
Toggle on/off display
Customizable color and line thickness
Cross Signals: Buy/sell signals when momentum crosses above/below EMA
3. Volatility Bands
Bollinger Bands (20-period, 2 standard deviations)
Keltner Channels (20-period, 1.5 ATR multiplier)
Squeeze Detection: Visual background shading when BB are inside KC
Trading Signals
Buy Signals (Green Upward Triangle)
Momentum histogram crosses ABOVE EMA line
Occurs during or after squeeze release
Confirmed by expanding histogram bars
Sell Signals (Red Downward Triangle)
Momentum histogram crosses BELOW EMA line
Often precedes market downturns
Watch for increasing negative momentum
Squeeze Warnings (Gray Background)
Market in low volatility state
Prepare for potential breakout
Direction indicated by momentum bias
Indicator Settings
Main Parameters
Length: Period for calculations (default: 20)
Show EMA: Toggle EMA visibility
EMA Period: Smoothing period for EMA
Visual Settings
Histogram color-coding based on momentum direction
EMA line color and thickness
Signal marker size and visibility
Squeeze zone background display
Practical Applications
Trend Identification
Uptrend: Consistently positive momentum with EMA support
Downtrend: Consistently negative momentum with EMA resistance
Range-bound: Oscillating around zero line
Entry/Exit Points
Conservative Entry: Wait for squeeze release + EMA crossover
Aggressive Entry: Anticipate breakout during squeeze
Exit: Opposite crossover or momentum divergence
Risk Management
Use squeeze zones as warning periods
EMA crossovers as confirmation signals
Combine with support/resistance levels
Advanced Interpretation
Momentum Strength
Strong Bullish: Tall green bars above EMA
Weak Bullish: Short green bars near EMA
Strong Bearish: Tall red bars below EMA
Weak Bearish: Short red bars near EMA
Divergence Detection
Price makes higher high, momentum makes lower high → Bearish divergence
Price makes lower low, momentum makes higher low → Bullish divergence
Squeeze Characteristics
Long squeezes: More potential energy
Frequent squeezes: Choppy market conditions
No squeezes: High volatility, trending markets
Recommended Timeframes
Scalping: 1-15 minute charts
Day Trading: 15-minute to 4-hour charts
Swing Trading: 4-hour to daily charts
Position Trading: Daily to weekly charts
Best Practices
Confirmation
Use with volume indicators
Check higher timeframe direction
Wait for candle close confirmation
Filtering Signals
Ignore signals during extreme volatility
Require minimum bar size for crossovers
Consider market context (news, sessions)
Combination Suggestions
With RSI: Confirm overbought/oversold conditions
With Volume Profile: Identify high-volume nodes
With Support/Resistance: Key level reactions
With Trend Lines: Breakout confirmations
Limitations
Lagging indicator (based on past data)
Works best in trending markets
May give false signals in ranging markets
Requires proper risk management
Conclusion
The Squeeze Momentum Indicator with EMA provides a comprehensive view of market dynamics by combining volatility analysis, momentum measurement, and trend smoothing. Its visual clarity and customizable parameters make it suitable for traders of all experience levels seeking to identify high-probability trading opportunities during volatility contractions and expansions.
主流币种中长线趋势系统This script is a comprehensive trading system designed for medium-to-long-term analysis of mainstream assets. It combines custom volatility algorithms, trend momentum filters, and market structure analysis to identify high-probability reversal points (Tops/Bottoms) and trend-following entry opportunities.
It eliminates market noise and provides clear visual signals, making it suitable for traders looking to capture major market swings without staring at the screen 24/7.
这是一个专为主流资产中长线交易设计的综合分析系统。它融合了自定义的波动率算法、趋势动量过滤器以及市场结构分析,旨在识别高胜率的趋势反转点(顶/底)以及右侧顺势入场机会。
本系统有效过滤了市场噪音,提供清晰的视觉信号,非常适合希望捕捉市场主升浪/主跌浪的交易者。
How to Use / 信号使用说明
The system provides three layers of information: Reversal Warnings, Trend Confirmations, and Key Levels.
本系统提供三个维度的信息:反转预警、趋势确认、关键位结构。
1. Reversal Signals (Top & Bottom) / 顶底反转信号
These signals appear when the market is overheated or oversold based on our proprietary composite algorithm.
这些信号出现在市场极度贪婪或恐慌的时刻,基于独家的复合算法计算得出。
"底" (Bottom) Label (Green): Indicates a potential market bottom or accumulation zone. It suggests that downside momentum is exhausted.
"底"(绿色标签): 提示潜在的市场底部或吸筹区,意味着下跌动能衰竭,是左侧关注买入机会的参考。
"顶" (Top) Label (Red): Indicates a potential market top or distribution zone. It suggests that upside momentum is unsustainable.
"顶"(红色标签): 提示潜在的市场顶部或派发区,意味着上涨动能不可持续,是左侧止盈或减仓的参考。
2. Trend Entry Signals (Circles) / 趋势入场信号 (圆点)
These signals are generated only when the trend direction is confirmed and multiple filters align.
只有在趋势方向明确,且多个动量过滤器发生共振时,才会触发此类信号。
Green Circle: Confirmed Long entry. Best used when price action breaks out of consolidation or resumes an uptrend.
绿色圆点: 确认的多头入场信号。通常在价格突破盘整或上升趋势延续时出现,适合右侧顺势交易。
Red Circle: Confirmed Short entry. Indicates the start or continuation of a bearish trend.
红色圆点: 确认的空头入场信号。预示着下跌趋势的开始或延续。
3. Market Structure (Boxes & Lines) / 市场结构 (方框与线条)
Boxes: These represent institutional Order Blocks (Support/Resistance zones).
方框: 代表机构的关键订单块区域(强支撑/压力区)。
Lines: These visualize Break of Structure (BOS) or Change of Character (CHoCH), helping you understand the current market phase.
线条: 可视化显示市场结构的破坏与反转,帮助你判断当前是处于上涨结构还是下跌结构中。
Settings & Optimization / 设置与优化
Signal Mode (辅助提示模式):
Conservative (保守模式): Fewer signals, higher precision. Best for risk-averse traders.
Balanced (平衡模式): Default setting, balanced between frequency and accuracy.
Aggressive/Demon (激进/恶魔模式): More signals, captures smaller swings but with more noise.
Trade Mode (交易模式): You can choose to display signals for "Both Sides", "Long Only", or "Short Only" to fit your strategy.
Alerts / 警报系统
The script supports real-time alerts. When a signal is triggered, the alert message will also intelligently calculate and include the nearest Pressure (Resistance) and Support price levels based on current market structure.
脚本支持实时警报。当信号触发时,警报消息还会智能计算并附带当前最近的压力位和支撑位价格,方便挂单。
此版本有效期至2026年1月
Disclaimer / 免责声明
This script is for educational and analytical purposes only. Past performance does not guarantee future results. Please manage your risk strictly.
本脚本仅供教育和分析使用。过往表现不代表未来结果。请严格管理您的风险。
CE Crypto Dow Theory – BTC & ETH # Professional User Guide: Crypto Dow Theory Indicator
## Crypto Exponentials Technical Analysis Suite
---
## 📋 Introduction
Welcome to the Crypto Dow Theory indicator—a professional-grade technical analysis tool designed for sophisticated cryptocurrency market participants. This comprehensive guide will enable you to leverage the full capabilities of the indicator for informed trading decisions.
**Prerequisites**: Basic understanding of technical analysis and Dow Theory principles recommended but not required.
---
## 🚀 Initial Setup Protocol
### Step 1: Adding the Indicator
1. Navigate to **Indicators** menu at the top of your TradingView chart
2. Search for **"Crypto Dow Theory – BTC & ETH"** in your invited/private scripts
3. Click to apply the indicator to your active chart
4. The indicator will overlay directly on the price chart
### Step 2: Optimal Configuration
Access settings via the **gear icon (⚙️)** next to the indicator name:
#### Essential Parameters
**Dow Theory Settings**
- **Min % Move (Pullback Threshold)**: 5.0% (default)
*Recommendation*: 5-7% for standard volatility, 8-10% for high volatility periods
- **Min Days for Secondary Reaction**: 8 days (default)
*Note*: This parameter is currently informational; future versions may incorporate duration filtering
- **Timeframe**: D (Daily) - *Primary recommendation for reliable signals*
**Symbol Configuration**
- **Bitcoin Symbol**: BTCUSD (default)
*Alternatives*: COINBASE:BTCUSD, BINANCE:BTCUSDT, BITSTAMP:BTCUSD
- **Ethereum Symbol**: ETHUSD (default)
*Alternatives*: COINBASE:ETHUSD, BINANCE:ETHUSDT, BITSTAMP:ETHUSD
#### Visual Options (Customizable Display)
**Recommended Professional Setup**:
- ✅ **Show Divergence Alerts**: ON (critical signals)
- ☐ **Show Support/Resistance Lines**: OFF (toggle on for level analysis)
- ☐ **Show Trend Change Arrows**: OFF (toggle on for entry/exit timing)
- ☐ **Show BTC/ETH Price Lines**: OFF (redundant with price chart)
- ✅ **Show Pullback Triangles**: ON (continuous market state monitoring)
- ✅ **Show Info Label**: ON (real-time pullback metrics)
- ☐ **Show Help Panel**: OFF (reference available in this documentation)
#### Alert Configuration
**Alert Threshold Settings**
- **Alert on Pullback Greater Than**: 10.0% (default for significant moves)
*Adjust based on your risk tolerance and trading style*
---
## 📊 Signal Interpretation Framework
### Primary Status Indicator (Top Label)
Located at the top-right of your chart, this label provides instant market condition assessment:
- **✓ BULLISH** → Both assets in confirmed uptrend
*Interpretation*: Favorable conditions for long positioning; primary trend intact
- **⚠️ BTC** → Bitcoin in pullback phase
*Interpretation*: Monitor Ethereum for confirmation; potential isolated correction
- **⚠️ ETH** → Ethereum in pullback phase
*Interpretation*: Monitor Bitcoin for confirmation; assess correlation strength
- **⚠️ BOTH PULLBACK** → Dual-asset correction in progress
*Interpretation*: Market-wide retracement; defensive positioning recommended
### Information Label (Bottom Display)
Positioned at the bottom-right, this label provides quantitative pullback metrics:
**Format Examples**:
- `BTC: 5.2% down | ETH: 3.1% down` → Both assets in measured pullback
- `BTC: Uptrend | ETH: Uptrend` → No corrections detected; trend strength
- `BTC: 8.7% down | ETH: Uptrend` → Single-asset pullback (divergence potential)
- **Additional Flag**: `DIVERGENCE!` → Correlation breakdown detected
### Visual Marker System
#### Continuous Indicators
**Pullback Triangles** (Small, persistent markers)
- 🟠 **Orange Triangles** → Bitcoin in secondary reaction (below candles)
- 🔵 **Blue Triangles** → Ethereum in secondary reaction (below candles)
- **Multiple Consecutive Triangles** → Extended pullback duration
*Professional Use*: Track pullback persistence; extended pullbacks (10+ triangles) often precede strong reversals
#### Event-Based Signals
**Trend Change Arrows** (Optional, toggle in settings)
- 🔴 **Red Arrow Down** → Pullback initiation detected
- 🟢 **Green Arrow Up** → Recovery confirmed; new high established
*Professional Use*: Entry/exit timing markers; green arrows indicate trend resumption
#### Critical Alert Signals
**Divergence Warning**
- ❌ **Red X (Cross)** → Bearish divergence identified
*Scenario*: One asset makes new high while other remains in pullback
*Action*: Exercise caution; consider profit-taking or tightening stops
**Bullish Confirmation**
- 💎 **Green Diamond** → Coordinated recovery signal
*Scenario*: Both assets exit pullbacks simultaneously
*Action*: High-probability long entry zone; strong market agreement
#### Background Visualization
**Red Background Tint**
- Light red overlay when **both assets in pullback**
- Provides at-a-glance market condition awareness
- Signals elevated risk environment
---
## 📈 Professional Trading Strategies
### Strategy 1: Conservative Trend Following
**Risk Profile**: Low | **Recommended For**: Risk-averse participants, capital preservation focus
**Execution Protocol**:
1. **Entry Criteria**: Status displays **"✓ BULLISH"**; both assets trending
2. **Position Management**: Maintain exposure during bullish status
3. **Exit Trigger**: Status changes to **"⚠️ BOTH PULLBACK"**; initiate defensive positioning
4. **Re-Entry Signal**: Green diamond (bullish confirmation) after correction
5. **Risk Management**: Stop-loss below recent swing low
**Expected Characteristics**: Lower frequency trades, higher win rate, reduced drawdowns
---
### Strategy 2: Pullback Accumulation
**Risk Profile**: Medium | **Recommended For**: Swing traders, value-oriented entries
**Execution Protocol**:
1. **Setup Identification**: Single-asset pullback (**"⚠️ BTC"** or **"⚠️ ETH"**)
2. **Entry Zone**: Pullback reaches 5-7% (monitor info label)
3. **Confirmation**: Other asset remains in uptrend (divergence absent)
4. **Stop-Loss Placement**: Below pullback low with 1-2% buffer
5. **Exit Strategy**: Green arrow (recovery) or status returns to bullish
**Expected Characteristics**: Higher frequency, requires active monitoring, medium holding period
---
### Strategy 3: Divergence-Based Risk Management
**Risk Profile**: Medium-High | **Recommended For**: Advanced practitioners, short-term traders
**Execution Protocol**:
1. **Alert Trigger**: Red X (bearish divergence) appears
2. **Assessment**: Verify one asset making new highs while other in pullback
3. **Initial Action**: Reduce position size by 30-50% or tighten trailing stops
4. **Monitoring**: Watch for dual-asset pullback confirmation
5. **Re-Entry**: Green diamond signal after both assets correct and recover
**Expected Characteristics**: Defensive positioning, capital preservation during uncertainty
---
### Strategy 4: Institutional Accumulation
**Risk Profile**: Low (Long-Term) | **Recommended For**: Portfolio managers, HODLers, DCA strategies
**Execution Protocol**:
1. **Trigger**: **"⚠️ BOTH PULLBACK"** status + red background
2. **Accumulation Method**: Scale into position as pullback deepens
- 25% position at 5% pullback
- 25% position at 7% pullback
- 50% position at 10%+ pullback
3. **Confirmation Wait**: Green diamond (coordinated recovery)
4. **Hold Strategy**: Maintain through subsequent minor pullbacks
**Expected Characteristics**: Low frequency, high conviction entries, long holding periods
---
## 🔔 Alert Configuration Best Practices
### Recommended Alert Setup
**Critical Alerts** (Enable immediately):
1. ✅ **"Both in Pullback"** → Market-wide correction notification
2. ✅ **"Bearish Divergence"** → Correlation breakdown warning
3. ✅ **"Bullish Confirmation"** → High-confidence entry signal
4. ✅ **"Deep Pullback Alert"** → Threshold: 10% for significant moves
**Optional Alerts** (Based on trading style):
5. ☐ **"BTC Recovery"** → May generate frequent notifications
6. ☐ **"ETH Recovery"** → May generate frequent notifications
### Alert Configuration Parameters
**TradingView Alert Settings**:
- **Trigger Frequency**: "Once Per Bar Close" (recommended to avoid intrabar noise)
- **Expiration**: "Open-ended" (continuous monitoring)
- **Notification Methods**:
- Mobile push notifications (time-sensitive signals)
- Email (detailed records)
- SMS (critical alerts only due to volume)
---
## ⚙️ Parameter Optimization by Trading Style
### Swing Traders (Recommended Primary Use Case)
**Profile**: Multi-day to multi-week holding periods
**Optimal Settings**:
- **Timeframe**: Daily (1D)
- **Min % Move**: 5-7%
- **Alert Threshold**: 8-10%
- **Check Frequency**: Once daily post-market close
- **Visual Options**: Divergence alerts + Info label (minimal clutter)
---
### Position Traders / Long-Term Investors
**Profile**: Weeks to months holding periods
**Optimal Settings**:
- **Timeframe**: Daily (1D) or Weekly (1W)
- **Min % Move**: 7-10%
- **Alert Threshold**: 12-15%
- **Check Frequency**: 2-3 times weekly
- **Visual Options**: Status label only (macro view)
---
### High-Volatility Environments
**Market Condition**: Elevated realized volatility, choppy price action
**Optimal Settings**:
- **Min % Move**: Increase to 8-10%
- **Alert Threshold**: 12-15%
- **Rationale**: Reduces noise and false signals during turbulent periods
---
### Low-Volatility Environments
**Market Condition**: Consolidation, narrow ranges, low realized volatility
**Optimal Settings**:
- **Min % Move**: Decrease to 3-5%
- **Alert Threshold**: 7-8%
- **Rationale**: Captures smaller structural movements during quiet periods
---
## 🔧 Advanced Configuration
### Custom Symbol Implementation
**Major Exchange Pairs**:
```
Bitcoin Options:
- COINBASE:BTCUSD (US-based, high liquidity)
- BINANCE:BTCUSDT (global volume leader)
- BITSTAMP:BTCUSD (established exchange)
Ethereum Options:
- COINBASE:ETHUSD (US-based, high liquidity)
- BINANCE:ETHUSDT (global volume leader)
- BITSTAMP:ETHUSD (established exchange)
```
**Alternative Cryptocurrency Pairs**:
While designed for BTC/ETH, experimental configurations possible:
- **Large Cap Altcoins**: SOLUSD + ADAUSD (sector analysis)
- **DeFi Leaders**: AVAXUSD + MATICUSD (ecosystem tracking)
⚠️ **Important**: Dow Theory principles work optimally with dominant market leaders (BTC/ETH). Alternative pairs may produce less reliable signals.
---
## 🛠️ Troubleshooting Guide
### Issue: Excessive Signal Generation
**Symptoms**: Constant triangle markers, frequent alerts
**Root Cause**: Threshold too sensitive for current volatility
**Solution**: Increase "Min % Move" to 7-10%
**Verification**: Observe reduction in signal frequency while maintaining major moves
---
### Issue: Missed Significant Moves
**Symptoms**: No triangles during visible corrections
**Root Cause**: Threshold too conservative
**Solution**: Decrease "Min % Move" to 3-5%
**Verification**: Triangles appear during moderate retracements
---
### Issue: Labels Obscured or Invisible
**Symptoms**: Cannot see status or info labels
**Diagnostic Checklist**:
- Zoom level: Zoom out to reveal off-screen labels
- Settings: Verify "Show Info Label" is enabled
- Overlap: Check for other indicators obscuring labels
- Position: Labels placed 3 bars left of current price to prevent cutoff
**Solution**: Adjust chart zoom or disable overlapping indicators
---
### Issue: Persistent Red Background
**Symptoms**: Continuous red tinting despite apparent uptrend
**Root Cause**: One or both assets technically in pullback per threshold
**Solution**: Verify pullback percentages in info label; increase threshold if false positive
**Note**: Red background requires BOTH assets in pullback simultaneously
---
### Issue: No Triangles Displayed
**Diagnostic Checklist**:
- Verify "Show Pullback Triangles" enabled in Visual Options
- Confirm market not in extended uptrend (no pullbacks detected)
- Check threshold isn't too high (increase sensitivity)
---
### Issue: Divergence Signals Absent
**Solution**: Enable "Show Divergence Alerts" in Visual Options
**Note**: Divergence signals relatively rare; indicate significant correlation breakdowns
---
## 💡 Professional Trading Insights
### 1. Volume Confluence Analysis
**Integration Strategy**:
- Overlay volume indicator below price chart
- **Pullback + Low Volume** → Healthy correction within uptrend (bullish)
- **Pullback + High Volume** → Potential distribution or reversal (bearish)
- **Recovery + High Volume** → Strong accumulation confirmation (bullish)
**Application**: Validate indicator signals with volume context for higher-confidence trades
---
### 2. Multi-Timeframe Validation
**Hierarchical Analysis**:
- **Weekly (1W)**: Primary trend direction (strategic bias)
- **Daily (1D)**: Indicator signals (tactical execution)
- **4-Hour (4H)**: Precise entry timing within daily signals
**Protocol**: Ensure daily signals align with weekly trend; use 4H for entry refinement
---
### 3. Risk Management Framework
**Position Sizing Guidelines**:
- **Maximum Risk**: 2% account equity per position
- **Stop-Loss Placement**: Below pullback low + 1-2% buffer
- **Position Scaling**:
- Initial entry: 50% intended size
- Add 25% on confirmation (green arrow)
- Final 25% on bullish confirmation (green diamond)
**Capital Preservation**:
- Reduce exposure 50% on "BOTH PULLBACK" status
- Tighten stops to breakeven on bearish divergence (red X)
- Scale out 30% of position at predetermined profit targets
---
### 4. Macro Context Integration
**External Factors to Monitor**:
- **Total Crypto Market Capitalization**: Validate broad market alignment
- **Bitcoin Dominance**: Rising = BTC outperformance; Falling = altcoin season
- **Macro Events**: FOMC meetings, regulatory announcements, geopolitical developments
- **On-Chain Metrics**: Network activity, exchange flows (advanced)
**Application**: Indicator signals most reliable when macro context supports directional bias
---
### 5. Correlation Dynamics
**Healthy Market Characteristics**:
- ✅ Strong positive correlation (BTC and ETH move together)
- ✅ Coordinated recoveries (green diamond frequent)
- ✅ Simultaneous pullbacks of similar magnitude
**Warning Signs**:
- ⚠️ Frequent divergences (red X signals)
- ⚠️ Opposite directional moves
- ⚠️ One asset perpetually lagging
**Interpretation**: Strong correlation = stable bull market; Weak correlation = uncertainty, choppy conditions
---
## ✅ Best Practices Checklist
### DO:
- ✅ Primarily use daily timeframe for reliable signal generation
- ✅ Wait for confirmation signals (green diamond) before aggressive positioning
- ✅ Adjust threshold parameters based on prevailing volatility regime
- ✅ Configure alerts for critical signals (both pullback, divergence, confirmation)
- ✅ Combine indicator signals with volume analysis and macro context
- ✅ Maintain detailed trading journal to track signal accuracy and performance
- ✅ Backtest historical signals to understand indicator behavior in your market
- ✅ Scale position sizes proportionally to signal strength
### DO NOT:
- ❌ Apply to very short timeframes (<4H) where noise dominates signal
- ❌ Ignore "BOTH PULLBACK" warnings (market-wide risk elevation)
- ❌ Trade counter to primary trend without exceptional confirmation
- ❌ Rely exclusively on this indicator; use as part of comprehensive methodology
- ❌ Overtrade based on every minor signal; exercise discretion
- ❌ Neglect threshold adjustments during volatility regime changes
- ❌ Enter positions during bearish divergence without additional confirmation
- ❌ Exceed predetermined risk parameters based on signal enthusiasm
---
## 📚 Dow Theory Educational Context
### Core Principles Implemented
**1. Trend Persistence Doctrine**
*"The trend is assumed to continue until a definitive reversal signal occurs"*
**Implementation**: Indicator tracks absolute highest high for each asset, maintaining trend assumption until threshold breach (5%+ pullback)
---
**2. Significant Movement Threshold**
*"Minor fluctuations are noise; significant moves indicate structural change"*
**Implementation**: Configurable percentage threshold (default 5%) filters noise, identifying meaningful secondary reactions
---
**3. Confirmation Principle**
*"Market indices must confirm each other for signal validity"*
**Implementation**: Dual-asset tracking; highest confidence signals require BTC and ETH agreement (both bullish or both in pullback)
---
**4. Secondary Reactions Within Primary Trend**
*"Corrections within trends are natural and present opportunity"*
**Implementation**: Pullback detection maintains context of primary trend; triangles mark secondary reactions, not reversals
---
### Dow Theory Concepts Not Directly Implemented
**Volume Confirmation** (Dow's Three Phases)
- *Rationale*: Volume analysis requires separate indicator for comprehensive assessment
- *Recommendation*: Overlay volume indicator alongside this tool
**Three-Phase Market Cycle** (Accumulation-Distribution Framework)
- *Rationale*: Phase identification requires subjective analysis beyond pure price action
- *Recommendation*: Manual identification using indicator signals as supporting evidence
**Line Analysis** (Support/Resistance)
- *Rationale*: Optional in settings; trader discretion preferred for level identification
- *Recommendation*: Enable S/R lines when conducting detailed structural analysis
---
## 📞 Support Resources
### Technical Assistance
**For indicator-specific questions**:
- Platform: TradingView direct messaging
- Response Time: 24-48 hours
- Required Information:
- Chart screenshot
- Settings configuration
- Specific issue description
### Institutional Inquiries
**For enterprise deployment or custom development**:
- Website: (cryptoexponentials.com)
- Services: Custom indicator development, integration support, training
### Community Resources
**For general discussion and shared insights**:
- Test indicator on historical data before live trading
- Document edge cases and unusual behavior
- Share settings optimizations for specific market conditions
---
## 📝 Version Information
### Current Release: v1.0
**Feature Set**:
- Dual-asset (BTC/ETH) tracking with real-time synchronization
- Divergence detection and alert system
- Customizable pullback thresholds (volatility adaptation)
- Six distinct alert conditions
- Comprehensive visual framework with toggleable elements
- Professional interface optimized for minimal chart clutter
**Planned Enhancements** (Future Versions):
- Additional cryptocurrency pair support
- Volume-based signal confirmation
- Advanced divergence pattern library
- Custom alert message templates
- Historical signal performance metrics
- Multi-timeframe coordinated analysis
---
## 🎯 Closing Remarks
### Philosophy
The Crypto Dow Theory indicator is engineered as a **decision support tool**, not an autonomous trading system. Optimal results require:
1. **Comprehensive Market Understanding**: Technical signals within fundamental context
2. **Disciplined Risk Management**: Predetermined rules consistently applied
3. **Patient Signal Selection**: Quality over quantity; await high-probability setups
4. **Continuous Learning**: Document trades, analyze outcomes, refine approach
### Success Factors
**Highest-Probability Trades Exhibit**:
- ✅ Dual-asset confirmation (both agree on direction)
- ✅ Volume supporting the move (separate analysis)
- ✅ Alignment with weekly trend (higher timeframe confluence)
- ✅ Favorable risk/reward ratio (>2:1 minimum)
- ✅ Supportive macro environment (regulatory/economic context)
### Risk Acknowledgment
- This tool provides technical analysis, **not financial advice**
- All trading involves substantial risk of capital loss
- Past signal performance does not guarantee future accuracy
- Users are solely responsible for trading decisions and outcomes
- Always conduct independent research and consult qualified professionals
---
## 📧 Contact & Feedback
Your feedback drives continuous improvement. Please share:
- Feature requests and enhancement ideas
- Bug reports with detailed reproduction steps
- Settings optimizations for specific market conditions
- Success stories and lessons learned
**Thank you for choosing Crypto Exponentials technical analysis tools.**
**Trade with discipline. Manage risk religiously. Compound knowledge consistently.**
---
*© Crypto Exponentials | Professional Technical Analysis Solutions*
*Website: (cryptoexponentials.com)*
---
**Disclaimer**: This indicator is provided for educational and analytical purposes. The creator assumes no liability for financial losses. Cryptocurrency trading involves substantial risk. Never invest more than you can afford to lose. Always perform independent due diligence before making investment decisions.
Adaptive Genesis Engine [AGE]ADAPTIVE GENESIS ENGINE (AGE)
Pure Signal Evolution Through Genetic Algorithms
Where Darwin Meets Technical Analysis
🧬 WHAT YOU'RE GETTING - THE PURE INDICATOR
This is a technical analysis indicator - it generates signals, visualizes probability, and shows you the evolutionary process in real-time. This is NOT a strategy with automatic execution - it's a sophisticated signal generation system that you control .
What This Indicator Does:
Generates Long/Short entry signals with probability scores (35-88% range)
Evolves a population of up to 12 competing strategies using genetic algorithms
Validates strategies through walk-forward optimization (train/test cycles)
Visualizes signal quality through premium gradient clouds and confidence halos
Displays comprehensive metrics via enhanced dashboard
Provides alerts for entries and exits
Works on any timeframe, any instrument, any broker
What This Indicator Does NOT Do:
Execute trades automatically
Manage positions or calculate position sizes
Place orders on your behalf
Make trading decisions for you
This is pure signal intelligence. AGE tells you when and how confident it is. You decide whether and how much to trade.
🔬 THE SCIENCE: GENETIC ALGORITHMS MEET TECHNICAL ANALYSIS
What Makes This Different - The Evolutionary Foundation
Most indicators are static - they use the same parameters forever, regardless of market conditions. AGE is alive . It maintains a population of competing strategies that evolve, adapt, and improve through natural selection principles:
Birth: New strategies spawn through crossover breeding (combining DNA from fit parents) plus random mutation for exploration
Life: Each strategy trades virtually via shadow portfolios, accumulating wins/losses, tracking drawdown, and building performance history
Selection: Strategies are ranked by comprehensive fitness scoring (win rate, expectancy, drawdown control, signal efficiency)
Death: Weak strategies are culled periodically, with elite performers (top 2 by default) protected from removal
Evolution: The gene pool continuously improves as successful traits propagate and unsuccessful ones die out
This is not curve-fitting. Each new strategy must prove itself on out-of-sample data through walk-forward validation before being trusted for live signals.
🧪 THE DNA: WHAT EVOLVES
Every strategy carries a 10-gene chromosome controlling how it interprets market data:
Signal Sensitivity Genes
Entropy Sensitivity (0.5-2.0): Weight given to market order/disorder calculations. Low values = conservative, require strong directional clarity. High values = aggressive, act on weaker order signals.
Momentum Sensitivity (0.5-2.0): Weight given to RSI/ROC/MACD composite. Controls responsiveness to momentum shifts vs. mean-reversion setups.
Structure Sensitivity (0.5-2.0): Weight given to support/resistance positioning. Determines how much price location within swing range matters.
Probability Adjustment Genes
Probability Boost (-0.10 to +0.10): Inherent bias toward aggressive (+) or conservative (-) entries. Acts as personality trait - some strategies naturally optimistic, others pessimistic.
Trend Strength Requirement (0.3-0.8): Minimum trend conviction needed before signaling. Higher values = only trades strong trends, lower values = acts in weak/sideways markets.
Volume Filter (0.5-1.5): Strictness of volume confirmation. Higher values = requires strong volume, lower values = volume less important.
Risk Management Genes
ATR Multiplier (1.5-4.0): Base volatility scaling for all price levels. Controls whether strategy uses tight or wide stops/targets relative to ATR.
Stop Multiplier (1.0-2.5): Stop loss tightness. Lower values = aggressive profit protection, higher values = more breathing room.
Target Multiplier (1.5-4.0): Profit target ambition. Lower values = quick scalping exits, higher values = swing trading holds.
Adaptation Gene
Regime Adaptation (0.0-1.0): How much strategy adjusts behavior based on detected market regime (trending/volatile/choppy). Higher values = more reactive to regime changes.
The Magic: AGE doesn't just try random combinations. Through tournament selection and fitness-weighted crossover, successful gene combinations spread through the population while unsuccessful ones fade away. Over 50-100 bars, you'll see the population converge toward genes that work for YOUR instrument and timeframe.
📊 THE SIGNAL ENGINE: THREE-LAYER SYNTHESIS
Before any strategy generates a signal, AGE calculates probability through multi-indicator confluence:
Layer 1 - Market Entropy (Information Theory)
Measures whether price movements exhibit directional order or random walk characteristics:
The Math:
Shannon Entropy = -Σ(p × log(p))
Market Order = 1 - (Entropy / 0.693)
What It Means:
High entropy = choppy, random market → low confidence signals
Low entropy = directional market → high confidence signals
Direction determined by up-move vs down-move dominance over lookback period (default: 20 bars)
Signal Output: -1.0 to +1.0 (bearish order to bullish order)
Layer 2 - Momentum Synthesis
Combines three momentum indicators into single composite score:
Components:
RSI (40% weight): Normalized to -1/+1 scale using (RSI-50)/50
Rate of Change (30% weight): Percentage change over lookback (default: 14 bars), clamped to ±1
MACD Histogram (30% weight): Fast(12) - Slow(26), normalized by ATR
Why This Matters: RSI catches mean-reversion opportunities, ROC catches raw momentum, MACD catches momentum divergence. Weighting favors RSI for reliability while keeping other perspectives.
Signal Output: -1.0 to +1.0 (strong bearish to strong bullish)
Layer 3 - Structure Analysis
Evaluates price position within swing range (default: 50-bar lookback):
Position Classification:
Bottom 20% of range = Support Zone → bullish bounce potential
Top 20% of range = Resistance Zone → bearish rejection potential
Middle 60% = Neutral Zone → breakout/breakdown monitoring
Signal Logic:
At support + bullish candle = +0.7 (strong buy setup)
At resistance + bearish candle = -0.7 (strong sell setup)
Breaking above range highs = +0.5 (breakout confirmation)
Breaking below range lows = -0.5 (breakdown confirmation)
Consolidation within range = ±0.3 (weak directional bias)
Signal Output: -1.0 to +1.0 (bearish structure to bullish structure)
Confluence Voting System
Each layer casts a vote (Long/Short/Neutral). The system requires minimum 2-of-3 agreement (configurable 1-3) before generating a signal:
Examples:
Entropy: Bullish, Momentum: Bullish, Structure: Neutral → Signal generated (2 long votes)
Entropy: Bearish, Momentum: Neutral, Structure: Neutral → No signal (only 1 short vote)
All three bullish → Signal generated with +5% probability bonus
This is the key to quality. Single indicators give too many false signals. Triple confirmation dramatically improves accuracy.
📈 PROBABILITY CALCULATION: HOW CONFIDENCE IS MEASURED
Base Probability:
Raw_Prob = 50% + (Average_Signal_Strength × 25%)
Then AGE applies strategic adjustments:
Trend Alignment:
Signal with trend: +4%
Signal against strong trend: -8%
Weak/no trend: no adjustment
Regime Adaptation:
Trending market (efficiency >50%, moderate vol): +3%
Volatile market (vol ratio >1.5x): -5%
Choppy market (low efficiency): -2%
Volume Confirmation:
Volume > 70% of 20-bar SMA: no change
Volume below threshold: -3%
Volatility State (DVS Ratio):
High vol (>1.8x baseline): -4% (reduce confidence in chaos)
Low vol (<0.7x baseline): -2% (markets can whipsaw in compression)
Moderate elevated vol (1.0-1.3x): +2% (trending conditions emerging)
Confluence Bonus:
All 3 indicators agree: +5%
2 of 3 agree: +2%
Strategy Gene Adjustment:
Probability Boost gene: -10% to +10%
Regime Adaptation gene: scales regime adjustments by 0-100%
Final Probability: Clamped between 35% (minimum) and 88% (maximum)
Why These Ranges?
Below 35% = too uncertain, better not to signal
Above 88% = unrealistic, creates overconfidence
Sweet spot: 65-80% for quality entries
🔄 THE SHADOW PORTFOLIO SYSTEM: HOW STRATEGIES COMPETE
Each active strategy maintains a virtual trading account that executes in parallel with real-time data:
Shadow Trading Mechanics
Entry Logic:
Calculate signal direction, probability, and confluence using strategy's unique DNA
Check if signal meets quality gate:
Probability ≥ configured minimum threshold (default: 65%)
Confluence ≥ configured minimum (default: 2 of 3)
Direction is not zero (must be long or short, not neutral)
Verify signal persistence:
Base requirement: 2 bars (configurable 1-5)
Adapts based on probability: high-prob signals (75%+) enter 1 bar faster, low-prob signals need 1 bar more
Adjusts for regime: trending markets reduce persistence by 1, volatile markets add 1
Apply additional filters:
Trend strength must exceed strategy's requirement gene
Regime filter: if volatile market detected, probability must be 72%+ to override
Volume confirmation required (volume > 70% of average)
If all conditions met for required persistence bars, enter shadow position at current close price
Position Management:
Entry Price: Recorded at close of entry bar
Stop Loss: ATR-based distance = ATR × ATR_Mult (gene) × Stop_Mult (gene) × DVS_Ratio
Take Profit: ATR-based distance = ATR × ATR_Mult (gene) × Target_Mult (gene) × DVS_Ratio
Position: +1 (long) or -1 (short), only one at a time per strategy
Exit Logic:
Check if price hit stop (on low) or target (on high) on current bar
Record trade outcome in R-multiples (profit/loss normalized by ATR)
Update performance metrics:
Total trades counter incremented
Wins counter (if profit > 0)
Cumulative P&L updated
Peak equity tracked (for drawdown calculation)
Maximum drawdown from peak recorded
Enter cooldown period (default: 8 bars, configurable 3-20) before next entry allowed
Reset signal age counter to zero
Walk-Forward Tracking:
During position lifecycle, trades are categorized:
Training Phase (first 250 bars): Trade counted toward training metrics
Testing Phase (next 75 bars): Trade counted toward testing metrics (out-of-sample)
Live Phase (after WFO period): Trade counted toward overall metrics
Why Shadow Portfolios?
No lookahead bias (uses only data available at the bar)
Realistic execution simulation (entry on close, stop/target checks on high/low)
Independent performance tracking for true fitness comparison
Allows safe experimentation without risking capital
Each strategy learns from its own experience
🏆 FITNESS SCORING: HOW STRATEGIES ARE RANKED
Fitness is not just win rate. AGE uses a comprehensive multi-factor scoring system:
Core Metrics (Minimum 3 trades required)
Win Rate (30% of fitness):
WinRate = Wins / TotalTrades
Normalized directly (0.0-1.0 scale)
Total P&L (30% of fitness):
Normalized_PnL = (PnL + 300) / 600
Clamped 0.0-1.0. Assumes P&L range of -300R to +300R for normalization scale.
Expectancy (25% of fitness):
Expectancy = Total_PnL / Total_Trades
Normalized_Expectancy = (Expectancy + 30) / 60
Clamped 0.0-1.0. Rewards consistency of profit per trade.
Drawdown Control (15% of fitness):
Normalized_DD = 1 - (Max_Drawdown / 15)
Clamped 0.0-1.0. Penalizes strategies that suffer large equity retracements from peak.
Sample Size Adjustment
Quality Factor:
<50 trades: 1.0 (full weight, small sample)
50-100 trades: 0.95 (slight penalty for medium sample)
100 trades: 0.85 (larger penalty for large sample)
Why penalize more trades? Prevents strategies from gaming the system by taking hundreds of tiny trades to inflate statistics. Favors quality over quantity.
Bonus Adjustments
Walk-Forward Validation Bonus:
if (WFO_Validated):
Fitness += (WFO_Efficiency - 0.5) × 0.1
Strategies proven on out-of-sample data receive up to +10% fitness boost based on test/train efficiency ratio.
Signal Efficiency Bonus (if diagnostics enabled):
if (Signals_Evaluated > 10):
Pass_Rate = Signals_Passed / Signals_Evaluated
Fitness += (Pass_Rate - 0.1) × 0.05
Rewards strategies that generate high-quality signals passing the quality gate, not just profitable trades.
Final Fitness: Clamped at 0.0 minimum (prevents negative fitness values)
Result: Elite strategies typically achieve 0.50-0.75 fitness. Anything above 0.60 is excellent. Below 0.30 is prime candidate for culling.
🔬 WALK-FORWARD OPTIMIZATION: ANTI-OVERFITTING PROTECTION
This is what separates AGE from curve-fitted garbage indicators.
The Three-Phase Process
Every new strategy undergoes a rigorous validation lifecycle:
Phase 1 - Training Window (First 250 bars, configurable 100-500):
Strategy trades normally via shadow portfolio
All trades count toward training performance metrics
System learns which gene combinations produce profitable patterns
Tracks independently: Training_Trades, Training_Wins, Training_PnL
Phase 2 - Testing Window (Next 75 bars, configurable 30-200):
Strategy continues trading without any parameter changes
Trades now count toward testing performance metrics (separate tracking)
This is out-of-sample data - strategy has never seen these bars during "optimization"
Tracks independently: Testing_Trades, Testing_Wins, Testing_PnL
Phase 3 - Validation Check:
Minimum_Trades = 5 (configurable 3-15)
IF (Train_Trades >= Minimum AND Test_Trades >= Minimum):
WR_Efficiency = Test_WinRate / Train_WinRate
Expectancy_Efficiency = Test_Expectancy / Train_Expectancy
WFO_Efficiency = (WR_Efficiency + Expectancy_Efficiency) / 2
IF (WFO_Efficiency >= 0.55): // configurable 0.3-0.9
Strategy.Validated = TRUE
Strategy receives fitness bonus
ELSE:
Strategy receives 30% fitness penalty
ELSE:
Validation deferred (insufficient trades in one or both periods)
What Validation Means
Validated Strategy (Green "✓ VAL" in dashboard):
Performed at least 55% as well on unseen data compared to training data
Gets fitness bonus: +(efficiency - 0.5) × 0.1
Receives priority during tournament selection for breeding
More likely to be chosen as active trading strategy
Unvalidated Strategy (Orange "○ TRAIN" in dashboard):
Failed to maintain performance on test data (likely curve-fitted to training period)
Receives 30% fitness penalty (0.7x multiplier)
Makes strategy prime candidate for culling
Can still trade but with lower selection probability
Insufficient Data (continues collecting):
Hasn't completed both training and testing periods yet
OR hasn't achieved minimum trade count in both periods
Validation check deferred until requirements met
Why 55% Efficiency Threshold?
If a strategy earned 10R during training but only 5.5R during testing, it still proved an edge exists beyond random luck. Requiring 100% efficiency would be unrealistic - market conditions change between periods. But requiring >50% ensures the strategy didn't completely degrade on fresh data.
The Protection: Strategies that work great on historical data but fail on new data are automatically identified and penalized. This prevents the population from being polluted by overfitted strategies that would fail in live trading.
🌊 DYNAMIC VOLATILITY SCALING (DVS): ADAPTIVE STOP/TARGET PLACEMENT
AGE doesn't use fixed stop distances. It adapts to current volatility conditions in real-time.
Four Volatility Measurement Methods
1. ATR Ratio (Simple Method):
Current_Vol = ATR(14) / Close
Baseline_Vol = SMA(Current_Vol, 100)
Ratio = Current_Vol / Baseline_Vol
Basic comparison of current ATR to 100-bar moving average baseline.
2. Parkinson (High-Low Range Based):
For each bar: HL = log(High / Low)
Parkinson_Vol = sqrt(Σ(HL²) / (4 × Period × log(2)))
More stable than close-to-close volatility. Captures intraday range expansion without overnight gap noise.
3. Garman-Klass (OHLC Based):
HL_Term = 0.5 × ²
CO_Term = (2×log(2) - 1) × ²
GK_Vol = sqrt(Σ(HL_Term - CO_Term) / Period)
Most sophisticated estimator. Incorporates all four price points (open, high, low, close) plus gap information.
4. Ensemble Method (Default - Median of All Three):
Ratio_1 = ATR_Current / ATR_Baseline
Ratio_2 = Parkinson_Current / Parkinson_Baseline
Ratio_3 = GK_Current / GK_Baseline
DVS_Ratio = Median(Ratio_1, Ratio_2, Ratio_3)
Why Ensemble?
Takes median to avoid outliers and false spikes
If ATR jumps but range-based methods stay calm, median prevents overreaction
If one method fails, other two compensate
Most robust approach across different market conditions
Sensitivity Scaling
Scaled_Ratio = (Raw_Ratio) ^ Sensitivity
Sensitivity 0.3: Cube root - heavily dampens volatility impact
Sensitivity 0.5: Square root - moderate dampening
Sensitivity 0.7 (Default): Balanced response to volatility changes
Sensitivity 1.0: Linear - full 1:1 volatility impact
Sensitivity 1.5: Exponential - amplified response to volatility spikes
Safety Clamps: Final DVS Ratio always clamped between 0.5x and 2.5x baseline to prevent extreme position sizing or stop placement errors.
How DVS Affects Shadow Trading
Every strategy's stop and target distances are multiplied by the current DVS ratio:
Stop Loss Distance:
Stop_Distance = ATR × ATR_Mult (gene) × Stop_Mult (gene) × DVS_Ratio
Take Profit Distance:
Target_Distance = ATR × ATR_Mult (gene) × Target_Mult (gene) × DVS_Ratio
Example Scenario:
ATR = 10 points
Strategy's ATR_Mult gene = 2.5
Strategy's Stop_Mult gene = 1.5
Strategy's Target_Mult gene = 2.5
DVS_Ratio = 1.4 (40% above baseline volatility - market heating up)
Stop = 10 × 2.5 × 1.5 × 1.4 = 52.5 points (vs. 37.5 in normal vol)
Target = 10 × 2.5 × 2.5 × 1.4 = 87.5 points (vs. 62.5 in normal vol)
Result:
During volatility spikes: Stops automatically widen to avoid noise-based exits, targets extend for bigger moves
During calm periods: Stops tighten for better risk/reward, targets compress for realistic profit-taking
Strategies adapt risk management to match current market behavior
🧬 THE EVOLUTIONARY CYCLE: SPAWN, COMPETE, CULL
Initialization (Bar 1)
AGE begins with 4 seed strategies (if evolution enabled):
Seed Strategy #0 (Balanced):
All sensitivities at 1.0 (neutral)
Zero probability boost
Moderate trend requirement (0.4)
Standard ATR/stop/target multiples (2.5/1.5/2.5)
Mid-level regime adaptation (0.5)
Seed Strategy #1 (Momentum-Focused):
Lower entropy sensitivity (0.7), higher momentum (1.5)
Slight probability boost (+0.03)
Higher trend requirement (0.5)
Tighter stops (1.3), wider targets (3.0)
Seed Strategy #2 (Entropy-Driven):
Higher entropy sensitivity (1.5), lower momentum (0.8)
Slight probability penalty (-0.02)
More trend tolerant (0.6)
Wider stops (1.8), standard targets (2.5)
Seed Strategy #3 (Structure-Based):
Balanced entropy/momentum (0.8/0.9), high structure (1.4)
Slight probability boost (+0.02)
Lower trend requirement (0.35)
Moderate risk parameters (1.6/2.8)
All seeds start with WFO validation bypassed if WFO is disabled, or must validate if enabled.
Spawning New Strategies
Timing (Adaptive):
Historical phase: Every 30 bars (configurable 10-100)
Live phase: Every 200 bars (configurable 100-500)
Automatically switches to live timing when barstate.isrealtime triggers
Conditions:
Current population < max population limit (default: 8, configurable 4-12)
At least 2 active strategies exist (need parents)
Available slot in population array
Selection Process:
Run tournament selection 3 times with different seeds
Each tournament: randomly sample active strategies, pick highest fitness
Best from 3 tournaments becomes Parent 1
Repeat independently for Parent 2
Ensures fit parents but maintains diversity
Crossover Breeding:
For each of 10 genes:
Parent1_Fitness = fitness
Parent2_Fitness = fitness
Weight1 = Parent1_Fitness / (Parent1_Fitness + Parent2_Fitness)
Gene1 = parent1's value
Gene2 = parent2's value
Child_Gene = Weight1 × Gene1 + (1 - Weight1) × Gene2
Fitness-weighted crossover ensures fitter parent contributes more genetic material.
Mutation:
For each gene in child:
IF (random < mutation_rate):
Gene_Range = GENE_MAX - GENE_MIN
Noise = (random - 0.5) × 2 × mutation_strength × Gene_Range
Mutated_Gene = Clamp(Child_Gene + Noise, GENE_MIN, GENE_MAX)
Historical mutation rate: 20% (aggressive exploration)
Live mutation rate: 8% (conservative stability)
Mutation strength: 12% of gene range (configurable 5-25%)
Initialization of New Strategy:
Unique ID assigned (total_spawned counter)
Parent ID recorded
Generation = max(parent generations) + 1
Birth bar recorded (for age tracking)
All performance metrics zeroed
Shadow portfolio reset
WFO validation flag set to false (must prove itself)
Result: New strategy with hybrid DNA enters population, begins trading in next bar.
Competition (Every Bar)
All active strategies:
Calculate their signal based on unique DNA
Check quality gate with their thresholds
Manage shadow positions (entries/exits)
Update performance metrics
Recalculate fitness score
Track WFO validation progress
Strategies compete indirectly through fitness ranking - no direct interaction.
Culling Weak Strategies
Timing (Adaptive):
Historical phase: Every 60 bars (configurable 20-200, should be 2x spawn interval)
Live phase: Every 400 bars (configurable 200-1000, should be 2x spawn interval)
Minimum Adaptation Score (MAS):
Initial MAS = 0.10
MAS decays: MAS × 0.995 every cull cycle
Minimum MAS = 0.03 (floor)
MAS represents the "survival threshold" - strategies below this fitness level are vulnerable.
Culling Conditions (ALL must be true):
Population > minimum population (default: 3, configurable 2-4)
At least one strategy has fitness < MAS
Strategy's age > culling interval (prevents premature culling of new strategies)
Strategy is not in top N elite (default: 2, configurable 1-3)
Culling Process:
Find worst strategy:
For each active strategy:
IF (age > cull_interval):
Fitness = base_fitness
IF (not WFO_validated AND WFO_enabled):
Fitness × 0.7 // 30% penalty for unvalidated
IF (Fitness < MAS AND Fitness < worst_fitness_found):
worst_strategy = this_strategy
worst_fitness = Fitness
IF (worst_strategy found):
Count elite strategies with fitness > worst_fitness
IF (elite_count >= elite_preservation_count):
Deactivate worst_strategy (set active flag = false)
Increment total_culled counter
Elite Protection:
Even if a strategy's fitness falls below MAS, it survives if fewer than N strategies are better. This prevents culling when population is generally weak.
Result: Weak strategies removed from population, freeing slots for new spawns. Gene pool improves over time.
Selection for Display (Every Bar)
AGE chooses one strategy to display signals:
Best fitness = -1
Selected = none
For each active strategy:
Fitness = base_fitness
IF (WFO_validated):
Fitness × 1.3 // 30% bonus for validated strategies
IF (Fitness > best_fitness):
best_fitness = Fitness
selected_strategy = this_strategy
Display selected strategy's signals on chart
Result: Only the highest-fitness (optionally validated-boosted) strategy's signals appear as chart markers. Other strategies trade invisibly in shadow portfolios.
🎨 PREMIUM VISUALIZATION SYSTEM
AGE includes sophisticated visual feedback that standard indicators lack:
1. Gradient Probability Cloud (Optional, Default: ON)
Multi-layer gradient showing signal buildup 2-3 bars before entry:
Activation Conditions:
Signal persistence > 0 (same directional signal held for multiple bars)
Signal probability ≥ minimum threshold (65% by default)
Signal hasn't yet executed (still in "forming" state)
Visual Construction:
7 gradient layers by default (configurable 3-15)
Each layer is a line-fill pair (top line, bottom line, filled between)
Layer spacing: 0.3 to 1.0 × ATR above/below price
Outer layers = faint, inner layers = bright
Color transitions from base to intense based on layer position
Transparency scales with probability (high prob = more opaque)
Color Selection:
Long signals: Gradient from theme.gradient_bull_mid to theme.gradient_bull_strong
Short signals: Gradient from theme.gradient_bear_mid to theme.gradient_bear_strong
Base transparency: 92%, reduces by up to 8% for high-probability setups
Dynamic Behavior:
Cloud grows/shrinks as signal persistence increases/decreases
Redraws every bar while signal is forming
Disappears when signal executes or invalidates
Performance Note: Computationally expensive due to linefill objects. Disable or reduce layers if chart performance degrades.
2. Population Fitness Ribbon (Optional, Default: ON)
Histogram showing fitness distribution across active strategies:
Activation: Only draws on last bar (barstate.islast) to avoid historical clutter
Visual Construction:
10 histogram layers by default (configurable 5-20)
Plots 50 bars back from current bar
Positioned below price at: lowest_low(100) - 1.5×ATR (doesn't interfere with price action)
Each layer represents a fitness threshold (evenly spaced min to max fitness)
Layer Logic:
For layer_num from 0 to ribbon_layers:
Fitness_threshold = min_fitness + (max_fitness - min_fitness) × (layer / layers)
Count strategies with fitness ≥ threshold
Height = ATR × 0.15 × (count / total_active)
Y_position = base_level + ATR × 0.2 × layer
Color = Gradient from weak to strong based on layer position
Line_width = Scaled by height (taller = thicker)
Visual Feedback:
Tall, bright ribbon = healthy population, many fit strategies at high fitness levels
Short, dim ribbon = weak population, few strategies achieving good fitness
Ribbon compression (layers close together) = population converging to similar fitness
Ribbon spread = diverse fitness range, active selection pressure
Use Case: Quick visual health check without opening dashboard. Ribbon growing upward over time = population improving.
3. Confidence Halo (Optional, Default: ON)
Circular polyline around entry signals showing probability strength:
Activation: Draws when new position opens (shadow_position changes from 0 to ±1)
Visual Construction:
20-segment polyline forming approximate circle
Center: Low - 0.5×ATR (long) or High + 0.5×ATR (short)
Radius: 0.3×ATR (low confidence) to 1.0×ATR (elite confidence)
Scales with: (probability - min_probability) / (1.0 - min_probability)
Color Coding:
Elite (85%+): Cyan (theme.conf_elite), large radius, minimal transparency (40%)
Strong (75-85%): Strong green (theme.conf_strong), medium radius, moderate transparency (50%)
Good (65-75%): Good green (theme.conf_good), smaller radius, more transparent (60%)
Moderate (<65%): Moderate green (theme.conf_moderate), tiny radius, very transparent (70%)
Technical Detail:
Uses chart.point array with index-based positioning
5-bar horizontal spread for circular appearance (±5 bars from entry)
Curved=false (Pine Script polyline limitation)
Fill color matches line color but more transparent (88% vs line's transparency)
Purpose: Instant visual probability assessment. No need to check dashboard - halo size/brightness tells the story.
4. Evolution Event Markers (Optional, Default: ON)
Visual indicators of genetic algorithm activity:
Spawn Markers (Diamond, Cyan):
Plots when total_spawned increases on current bar
Location: bottom of chart (location.bottom)
Color: theme.spawn_marker (cyan/bright blue)
Size: tiny
Indicates new strategy just entered population
Cull Markers (X-Cross, Red):
Plots when total_culled increases on current bar
Location: bottom of chart (location.bottom)
Color: theme.cull_marker (red/pink)
Size: tiny
Indicates weak strategy just removed from population
What It Tells You:
Frequent spawning early = population building, active exploration
Frequent culling early = high selection pressure, weak strategies dying fast
Balanced spawn/cull = healthy evolutionary churn
No markers for long periods = stable population (evolution plateaued or optimal genes found)
5. Entry/Exit Markers
Clear visual signals for selected strategy's trades:
Long Entry (Triangle Up, Green):
Plots when selected strategy opens long position (position changes 0 → +1)
Location: below bar (location.belowbar)
Color: theme.long_primary (green/cyan depending on theme)
Transparency: Scales with probability:
Elite (85%+): 0% (fully opaque)
Strong (75-85%): 10%
Good (65-75%): 20%
Acceptable (55-65%): 35%
Size: small
Short Entry (Triangle Down, Red):
Plots when selected strategy opens short position (position changes 0 → -1)
Location: above bar (location.abovebar)
Color: theme.short_primary (red/pink depending on theme)
Transparency: Same scaling as long entries
Size: small
Exit (X-Cross, Orange):
Plots when selected strategy closes position (position changes ±1 → 0)
Location: absolute (at actual exit price if stop/target lines enabled)
Color: theme.exit_color (orange/yellow depending on theme)
Transparency: 0% (fully opaque)
Size: tiny
Result: Clean, probability-scaled markers that don't clutter chart but convey essential information.
6. Stop Loss & Take Profit Lines (Optional, Default: ON)
Visual representation of shadow portfolio risk levels:
Stop Loss Line:
Plots when selected strategy has active position
Level: shadow_stop value from selected strategy
Color: theme.short_primary with 60% transparency (red/pink, subtle)
Width: 2
Style: plot.style_linebr (breaks when no position)
Take Profit Line:
Plots when selected strategy has active position
Level: shadow_target value from selected strategy
Color: theme.long_primary with 60% transparency (green, subtle)
Width: 2
Style: plot.style_linebr (breaks when no position)
Purpose:
Shows where shadow portfolio would exit for stop/target
Helps visualize strategy's risk/reward ratio
Useful for manual traders to set similar levels
Disable for cleaner chart (recommended for presentations)
7. Dynamic Trend EMA
Gradient-colored trend line that visualizes trend strength:
Calculation:
EMA(close, trend_length) - default 50 period (configurable 20-100)
Slope calculated over 10 bars: (current_ema - ema ) / ema × 100
Color Logic:
Trend_direction:
Slope > 0.1% = Bullish (1)
Slope < -0.1% = Bearish (-1)
Otherwise = Neutral (0)
Trend_strength = abs(slope)
Color = Gradient between:
- Neutral color (gray/purple)
- Strong bullish (bright green) if direction = 1
- Strong bearish (bright red) if direction = -1
Gradient factor = trend_strength (0 to 1+ scale)
Visual Behavior:
Faint gray/purple = weak/no trend (choppy conditions)
Light green/red = emerging trend (low strength)
Bright green/red = strong trend (high conviction)
Color intensity = trend strength magnitude
Transparency: 50% (subtle, doesn't overpower price action)
Purpose: Subconscious awareness of trend state without checking dashboard or indicators.
8. Regime Background Tinting (Subtle)
Ultra-low opacity background color indicating detected market regime:
Regime Detection:
Efficiency = directional_movement / total_range (over trend_length bars)
Vol_ratio = current_volatility / average_volatility
IF (efficiency > 0.5 AND vol_ratio < 1.3):
Regime = Trending (1)
ELSE IF (vol_ratio > 1.5):
Regime = Volatile (2)
ELSE:
Regime = Choppy (0)
Background Colors:
Trending: theme.regime_trending (dark green, 92-93% transparency)
Volatile: theme.regime_volatile (dark red, 93% transparency)
Choppy: No tint (normal background)
Purpose:
Subliminal regime awareness
Helps explain why signals are/aren't generating
Trending = ideal conditions for AGE
Volatile = fewer signals, higher thresholds applied
Choppy = mixed signals, lower confidence
Important: Extremely subtle by design. Not meant to be obvious, just subconscious context.
📊 ENHANCED DASHBOARD
Comprehensive real-time metrics in single organized panel (top-right position):
Dashboard Structure (5 columns × 14 rows)
Header Row:
Column 0: "🧬 AGE PRO" + phase indicator (🔴 LIVE or ⏪ HIST)
Column 1: "POPULATION"
Column 2: "PERFORMANCE"
Column 3: "CURRENT SIGNAL"
Column 4: "ACTIVE STRATEGY"
Column 0: Market State
Regime (📈 TREND / 🌊 CHAOS / ➖ CHOP)
DVS Ratio (current volatility scaling factor, format: #.##)
Trend Direction (▲ BULL / ▼ BEAR / ➖ FLAT with color coding)
Trend Strength (0-100 scale, format: #.##)
Column 1: Population Metrics
Active strategies (count / max_population)
Validated strategies (WFO passed / active total)
Current generation number
Total spawned (all-time strategy births)
Total culled (all-time strategy deaths)
Column 2: Aggregate Performance
Total trades across all active strategies
Aggregate win rate (%) - color-coded:
Green (>55%)
Orange (45-55%)
Red (<45%)
Total P&L in R-multiples - color-coded by positive/negative
Best fitness score in population (format: #.###)
MAS - Minimum Adaptation Score (cull threshold, format: #.###)
Column 3: Current Signal Status
Status indicator:
"▲ LONG" (green) if selected strategy in long position
"▼ SHORT" (red) if selected strategy in short position
"⏳ FORMING" (orange) if signal persisting but not yet executed
"○ WAITING" (gray) if no active signal
Confidence percentage (0-100%, format: #.#%)
Quality assessment:
"🔥 ELITE" (cyan) for 85%+ probability
"✓ STRONG" (bright green) for 75-85%
"○ GOOD" (green) for 65-75%
"- LOW" (dim) for <65%
Confluence score (X/3 format)
Signal age:
"X bars" if signal forming
"IN TRADE" if position active
"---" if no signal
Column 4: Selected Strategy Details
Strategy ID number (#X format)
Validation status:
"✓ VAL" (green) if WFO validated
"○ TRAIN" (orange) if still in training/testing phase
Generation number (GX format)
Personal fitness score (format: #.### with color coding)
Trade count
P&L and win rate (format: #.#R (##%) with color coding)
Color Scheme:
Panel background: theme.panel_bg (dark, low opacity)
Panel headers: theme.panel_header (slightly lighter)
Primary text: theme.text_primary (bright, high contrast)
Secondary text: theme.text_secondary (dim, lower contrast)
Positive metrics: theme.metric_positive (green)
Warning metrics: theme.metric_warning (orange)
Negative metrics: theme.metric_negative (red)
Special markers: theme.validated_marker, theme.spawn_marker
Update Frequency: Only on barstate.islast (current bar) to minimize CPU usage
Purpose:
Quick overview of entire system state
No need to check multiple indicators
Trading decisions informed by population health, regime state, and signal quality
Transparency into what AGE is thinking
🔍 DIAGNOSTICS PANEL (Optional, Default: OFF)
Detailed signal quality tracking for optimization and debugging:
Panel Structure (3 columns × 8 rows)
Position: Bottom-right corner (doesn't interfere with main dashboard)
Header Row:
Column 0: "🔍 DIAGNOSTICS"
Column 1: "COUNT"
Column 2: "%"
Metrics Tracked (for selected strategy only):
Total Evaluated:
Every signal that passed initial calculation (direction ≠ 0)
Represents total opportunities considered
✓ Passed:
Signals that passed quality gate and executed
Green color coding
Percentage of evaluated signals
Rejection Breakdown:
⨯ Probability:
Rejected because probability < minimum threshold
Most common rejection reason typically
⨯ Confluence:
Rejected because confluence < minimum required (e.g., only 1 of 3 indicators agreed)
⨯ Trend:
Rejected because signal opposed strong trend
Indicates counter-trend protection working
⨯ Regime:
Rejected because volatile regime detected and probability wasn't high enough to override
Shows regime filter in action
⨯ Volume:
Rejected because volume < 70% of 20-bar average
Indicates volume confirmation requirement
Color Coding:
Passed count: Green (success metric)
Rejection counts: Red (failure metrics)
Percentages: Gray (neutral, informational)
Performance Cost: Slight CPU overhead for tracking counters. Disable when not actively optimizing settings.
How to Use Diagnostics
Scenario 1: Too Few Signals
Evaluated: 200
Passed: 10 (5%)
⨯ Probability: 120 (60%)
⨯ Confluence: 40 (20%)
⨯ Others: 30 (15%)
Diagnosis: Probability threshold too high for this strategy's DNA.
Solution: Lower min probability from 65% to 60%, or allow strategy more time to evolve better DNA.
Scenario 2: Too Many False Signals
Evaluated: 200
Passed: 80 (40%)
Strategy win rate: 45%
Diagnosis: Quality gate too loose, letting low-quality signals through.
Solution: Raise min probability to 70%, or increase min confluence to 3 (all indicators must agree).
Scenario 3: Regime-Specific Issues
⨯ Regime: 90 (45% of rejections)
Diagnosis: Frequent volatile regime detection blocking otherwise good signals.
Solution: Either accept fewer trades during chaos (recommended), or disable regime filter if you want signals regardless of market state.
Optimization Workflow:
Enable diagnostics
Run 200+ bars
Analyze rejection patterns
Adjust settings based on data
Re-run and compare pass rate
Disable diagnostics when satisfied
⚙️ CONFIGURATION GUIDE
🧬 Evolution Engine Settings
Enable AGE Evolution (Default: ON):
ON: Full genetic algorithm (recommended for best results)
OFF: Uses only 4 seed strategies, no spawning/culling (static population for comparison testing)
Max Population (4-12, Default: 8):
Higher = more diversity, more exploration, slower performance
Lower = faster computation, less exploration, risk of premature convergence
Sweet spot: 6-8 for most use cases
4 = minimum for meaningful evolution
12 = maximum before diminishing returns
Min Population (2-4, Default: 3):
Safety floor - system never culls below this count
Prevents population extinction during harsh selection
Should be at least half of max population
Elite Preservation (1-3, Default: 2):
Top N performers completely immune to culling
Ensures best genes always survive
1 = minimal protection, aggressive selection
2 = balanced (recommended)
3 = conservative, slower gene pool turnover
Historical: Spawn Interval (10-100, Default: 30):
Bars between spawning new strategies during historical data
Lower = faster evolution, more exploration
Higher = slower evolution, more evaluation time per strategy
30 bars = ~1-2 hours on 15min chart
Historical: Cull Interval (20-200, Default: 60):
Bars between culling weak strategies during historical data
Should be 2x spawn interval for balanced churn
Lower = aggressive selection pressure
Higher = patient evaluation
Live: Spawn Interval (100-500, Default: 200):
Bars between spawning during live trading
Much slower than historical for stability
Prevents population chaos during live trading
200 bars = ~1.5 trading days on 15min chart
Live: Cull Interval (200-1000, Default: 400):
Bars between culling during live trading
Should be 2x live spawn interval
Conservative removal during live trading
Historical: Mutation Rate (0.05-0.40, Default: 0.20):
Probability each gene mutates during breeding (20% = 2 out of 10 genes on average)
Higher = more exploration, slower convergence
Lower = more exploitation, faster convergence but risk of local optima
20% balances exploration vs exploitation
Live: Mutation Rate (0.02-0.20, Default: 0.08):
Mutation rate during live trading
Much lower for stability (don't want population to suddenly degrade)
8% = mostly inherits parent genes with small tweaks
Mutation Strength (0.05-0.25, Default: 0.12):
How much genes change when mutated (% of gene's total range)
0.05 = tiny nudges (fine-tuning)
0.12 = moderate jumps (recommended)
0.25 = large leaps (aggressive exploration)
Example: If gene range is 0.5-2.0, 12% strength = ±0.18 possible change
📈 Signal Quality Settings
Min Signal Probability (0.55-0.80, Default: 0.65):
Quality gate threshold - signals below this never generate
0.55-0.60 = More signals, accept lower confidence (higher risk)
0.65 = Institutional-grade balance (recommended)
0.70-0.75 = Fewer but higher-quality signals (conservative)
0.80+ = Very selective, very few signals (ultra-conservative)
Min Confluence Score (1-3, Default: 2):
Required indicator agreement before signal generates
1 = Any single indicator can trigger (not recommended - too many false signals)
2 = Requires 2 of 3 indicators agree (RECOMMENDED for balance)
3 = All 3 must agree (very selective, few signals, high quality)
Base Persistence Bars (1-5, Default: 2):
Base bars signal must persist before entry
System adapts automatically:
High probability signals (75%+) enter 1 bar faster
Low probability signals (<68%) need 1 bar more
Trending regime: -1 bar (faster entries)
Volatile regime: +1 bar (more confirmation)
1 = Immediate entry after quality gate (responsive but prone to whipsaw)
2 = Balanced confirmation (recommended)
3-5 = Patient confirmation (slower but more reliable)
Cooldown After Trade (3-20, Default: 8):
Bars to wait after exit before next entry allowed
Prevents overtrading and revenge trading
3 = Minimal cooldown (active trading)
8 = Balanced (recommended)
15-20 = Conservative (position trading)
Entropy Length (10-50, Default: 20):
Lookback period for market order/disorder calculation
Lower = more responsive to regime changes (noisy)
Higher = more stable regime detection (laggy)
20 = works across most timeframes
Momentum Length (5-30, Default: 14):
Period for RSI/ROC calculations
14 = standard (RSI default)
Lower = more signals, less reliable
Higher = fewer signals, more reliable
Structure Length (20-100, Default: 50):
Lookback for support/resistance swing range
20 = short-term swings (day trading)
50 = medium-term structure (recommended)
100 = major structure (position trading)
Trend EMA Length (20-100, Default: 50):
EMA period for trend detection and direction bias
20 = short-term trend (responsive)
50 = medium-term trend (recommended)
100 = long-term trend (position trading)
ATR Period (5-30, Default: 14):
Period for volatility measurement
14 = standard ATR
Lower = more responsive to vol changes
Higher = smoother vol calculation
📊 Volatility Scaling (DVS) Settings
Enable DVS (Default: ON):
Dynamic volatility scaling for adaptive stop/target placement
Highly recommended to leave ON
OFF only for testing fixed-distance stops
DVS Method (Default: Ensemble):
ATR Ratio: Simple, fast, single-method (good for beginners)
Parkinson: High-low range based (good for intraday)
Garman-Klass: OHLC based (sophisticated, considers gaps)
Ensemble: Median of all three (RECOMMENDED - most robust)
DVS Memory (20-200, Default: 100):
Lookback for baseline volatility comparison
20 = very responsive to vol changes (can overreact)
100 = balanced adaptation (recommended)
200 = slow, stable baseline (minimizes false vol signals)
DVS Sensitivity (0.3-1.5, Default: 0.7):
How much volatility affects scaling (power-law exponent)
0.3 = Conservative, heavily dampens vol impact (cube root)
0.5 = Moderate dampening (square root)
0.7 = Balanced response (recommended)
1.0 = Linear, full 1:1 vol response
1.5 = Aggressive, amplified response (exponential)
🔬 Walk-Forward Optimization Settings
Enable WFO (Default: ON):
Out-of-sample validation to prevent overfitting
Highly recommended to leave ON
OFF only for testing or if you want unvalidated strategies
Training Window (100-500, Default: 250):
Bars for in-sample optimization
100 = fast validation, less data (risky)
250 = balanced (recommended) - about 1-2 months on daily, 1-2 weeks on 15min
500 = patient validation, more data (conservative)
Testing Window (30-200, Default: 75):
Bars for out-of-sample validation
Should be ~30% of training window
30 = minimal test (fast validation)
75 = balanced (recommended)
200 = extensive test (very conservative)
Min Trades for Validation (3-15, Default: 5):
Required trades in BOTH training AND testing periods
3 = minimal sample (risky, fast validation)
5 = balanced (recommended)
10+ = conservative (slow validation, high confidence)
WFO Efficiency Threshold (0.3-0.9, Default: 0.55):
Minimum test/train performance ratio required
0.30 = Very loose (test must be 30% as good as training)
0.55 = Balanced (recommended) - test must be 55% as good
0.70+ = Strict (test must closely match training)
Higher = fewer validated strategies, lower risk of overfitting
🎨 Premium Visuals Settings
Visual Theme:
Neon Genesis: Cyberpunk aesthetic (cyan/magenta/purple)
Carbon Fiber: Industrial look (blue/red/gray)
Quantum Blue: Quantum computing (blue/purple/pink)
Aurora: Northern lights (teal/orange/purple)
⚡ Gradient Probability Cloud (Default: ON):
Multi-layer gradient showing signal buildup
Turn OFF if chart lags or for cleaner look
Cloud Gradient Layers (3-15, Default: 7):
More layers = smoother gradient, more CPU intensive
Fewer layers = faster, blockier appearance
🎗️ Population Fitness Ribbon (Default: ON):
Histogram showing fitness distribution
Turn OFF for cleaner chart
Ribbon Layers (5-20, Default: 10):
More layers = finer fitness detail
Fewer layers = simpler histogram
⭕ Signal Confidence Halo (Default: ON):
Circular indicator around entry signals
Size/brightness scales with probability
Minimal performance cost
🔬 Evolution Event Markers (Default: ON):
Diamond (spawn) and X (cull) markers
Shows genetic algorithm activity
Minimal performance cost
🎯 Stop/Target Lines (Default: ON):
Shows shadow portfolio stop/target levels
Turn OFF for cleaner chart (recommended for screenshots/presentations)
📊 Enhanced Dashboard (Default: ON):
Comprehensive metrics panel
Should stay ON unless you want zero overlays
🔍 Diagnostics Panel (Default: OFF):
Detailed signal rejection tracking
Turn ON when optimizing settings
Turn OFF during normal use (slight performance cost)
📈 USAGE WORKFLOW - HOW TO USE THIS INDICATOR
Phase 1: Initial Setup & Learning
Add AGE to your chart
Recommended timeframes: 15min, 30min, 1H (best signal-to-noise ratio)
Works on: 5min (day trading), 4H (swing trading), Daily (position trading)
Load 1000+ bars for sufficient evolution history
Let the population evolve (100+ bars minimum)
First 50 bars: Random exploration, poor results expected
Bars 50-150: Population converging, fitness improving
Bars 150+: Stable performance, validated strategies emerging
Watch the dashboard metrics
Population should grow toward max capacity
Generation number should advance regularly
Validated strategies counter should increase
Best fitness should trend upward toward 0.50-0.70 range
Observe evolution markers
Diamond markers (cyan) = new strategies spawning
X markers (red) = weak strategies being culled
Frequent early activity = healthy evolution
Activity slowing = population stabilizing
Be patient. Evolution takes time. Don't judge performance before 150+ bars.
Phase 2: Signal Observation
Watch signals form
Gradient cloud builds up 2-3 bars before entry
Cloud brightness = probability strength
Cloud thickness = signal persistence
Check signal quality
Look at confidence halo size when entry marker appears
Large bright halo = elite setup (85%+)
Medium halo = strong setup (75-85%)
Small halo = good setup (65-75%)
Verify market conditions
Check trend EMA color (green = uptrend, red = downtrend, gray = choppy)
Check background tint (green = trending, red = volatile, clear = choppy)
Trending background + aligned signal = ideal conditions
Review dashboard signal status
Current Signal column shows:
Status (Long/Short/Forming/Waiting)
Confidence % (actual probability value)
Quality assessment (Elite/Strong/Good)
Confluence score (2/3 or 3/3 preferred)
Only signals meeting ALL quality gates appear on chart. If you're not seeing signals, population is either still learning or market conditions aren't suitable.
Phase 3: Manual Trading Execution
When Long Signal Fires:
Verify confidence level (dashboard or halo size)
Confirm trend alignment (EMA sloping up, green color)
Check regime (preferably trending or choppy, avoid volatile)
Enter long manually on your broker platform
Set stop loss at displayed stop line level (if lines enabled), or use your own risk management
Set take profit at displayed target line level, or trail manually
Monitor position - exit if X marker appears (signal reversal)
When Short Signal Fires:
Same verification process
Confirm downtrend (EMA sloping down, red color)
Enter short manually
Use displayed stop/target levels or your own
AGE tells you WHEN and HOW CONFIDENT. You decide WHETHER and HOW MUCH.
Phase 4: Set Up Alerts (Never Miss a Signal)
Right-click on indicator name in legend
Select "Add Alert"
Choose condition:
"AGE Long" = Long entry signal fired
"AGE Short" = Short entry signal fired
"AGE Exit" = Position reversal/exit signal
Set notification method:
Sound alert (popup on chart)
Email notification
Webhook to phone/trading platform
Mobile app push notification
Name the alert (e.g., "AGE BTCUSD 15min Long")
Save alert
Recommended: Set alerts for both long and short, enable mobile push notifications. You'll get alerted in real-time even if not watching charts.
Phase 5: Monitor Population Health
Weekly Review:
Check dashboard Population column:
Active count should be near max (6-8 of 8)
Validated count should be >50% of active
Generation should be advancing (1-2 per week typical)
Check dashboard Performance column:
Aggregate win rate should be >50% (target: 55-65%)
Total P&L should be positive (may fluctuate)
Best fitness should be >0.50 (target: 0.55-0.70)
MAS should be declining slowly (normal adaptation)
Check Active Strategy column:
Selected strategy should be validated (✓ VAL)
Personal fitness should match best fitness
Trade count should be accumulating
Win rate should be >50%
Warning Signs:
Zero validated strategies after 300+ bars = settings too strict or market unsuitable
Best fitness stuck <0.30 = population struggling, consider parameter adjustment
No spawning/culling for 200+ bars = evolution stalled (may be optimal or need reset)
Aggregate win rate <45% sustained = system not working on this instrument/timeframe
Health Check Pass:
50%+ strategies validated
Best fitness >0.50
Aggregate win rate >52%
Regular spawn/cull activity
Selected strategy validated
Phase 6: Optimization (If Needed)
Enable Diagnostics Panel (bottom-right) for data-driven tuning:
Problem: Too Few Signals
Evaluated: 200
Passed: 8 (4%)
⨯ Probability: 140 (70%)
Solutions:
Lower min probability: 65% → 60% or 55%
Reduce min confluence: 2 → 1
Lower base persistence: 2 → 1
Increase mutation rate temporarily to explore new genes
Check if regime filter is blocking signals (⨯ Regime high?)
Problem: Too Many False Signals
Evaluated: 200
Passed: 90 (45%)
Win rate: 42%
Solutions:
Raise min probability: 65% → 70% or 75%
Increase min confluence: 2 → 3
Raise base persistence: 2 → 3
Enable WFO if disabled (validates strategies before use)
Check if volume filter is being ignored (⨯ Volume low?)
Problem: Counter-Trend Losses
⨯ Trend: 5 (only 5% rejected)
Losses often occur against trend
Solutions:
System should already filter trend opposition
May need stronger trend requirement
Consider only taking signals aligned with higher timeframe trend
Use longer trend EMA (50 → 100)
Problem: Volatile Market Whipsaws
⨯ Regime: 100 (50% rejected by volatile regime)
Still getting stopped out frequently
Solutions:
System is correctly blocking volatile signals
Losses happening because vol filter isn't strict enough
Consider not trading during volatile periods (respect the regime)
Or disable regime filter and accept higher risk
Optimization Workflow:
Enable diagnostics
Run 200+ bars with current settings
Analyze rejection patterns and win rate
Make ONE change at a time (scientific method)
Re-run 200+ bars and compare results
Keep change if improvement, revert if worse
Disable diagnostics when satisfied
Never change multiple parameters at once - you won't know what worked.
Phase 7: Multi-Instrument Deployment
AGE learns independently on each chart:
Recommended Strategy:
Deploy AGE on 3-5 different instruments
Different asset classes ideal (e.g., ES futures, EURUSD, BTCUSD, SPY, Gold)
Each learns optimal strategies for that instrument's personality
Take signals from all 5 charts
Natural diversification reduces overall risk
Why This Works:
When one market is choppy, others may be trending
Different instruments respond to different news/catalysts
Portfolio-level win rate more stable than single-instrument
Evolution explores different parameter spaces on each chart
Setup:
Same settings across all charts (or customize if preferred)
Set alerts for all
Take every validated signal across all instruments
Position size based on total account (don't overleverage any single signal)
⚠️ REALISTIC EXPECTATIONS - CRITICAL READING
What AGE Can Do
✅ Generate probability-weighted signals using genetic algorithms
✅ Evolve strategies in real-time through natural selection
✅ Validate strategies on out-of-sample data (walk-forward optimization)
✅ Adapt to changing market conditions automatically over time
✅ Provide comprehensive metrics on population health and signal quality
✅ Work on any instrument, any timeframe, any broker
✅ Improve over time as weak strategies are culled and fit strategies breed
What AGE Cannot Do
❌ Win every trade (typical win rate: 55-65% at best)
❌ Predict the future with certainty (markets are probabilistic, not deterministic)
❌ Work perfectly from bar 1 (needs 100-150 bars to learn and stabilize)
❌ Guarantee profits under all market conditions
❌ Replace your trading discipline and risk management
❌ Execute trades automatically (this is an indicator, not a strategy)
❌ Prevent all losses (drawdowns are normal and expected)
❌ Adapt instantly to regime changes (re-learning takes 50-100 bars)
Performance Realities
Typical Performance After Evolution Stabilizes (150+ bars):
Win Rate: 55-65% (excellent for trend-following systems)
Profit Factor: 1.5-2.5 (realistic for validated strategies)
Signal Frequency: 5-15 signals per 100 bars (quality over quantity)
Drawdown Periods: 20-40% of time in equity retracement (normal trading reality)
Max Consecutive Losses: 5-8 losses possible even with 60% win rate (probability says this is normal)
Evolution Timeline:
Bars 0-50: Random exploration, learning phase - poor results expected, don't judge yet
Bars 50-150: Population converging, fitness climbing - results improving
Bars 150-300: Stable performance, most strategies validated - consistent results
Bars 300+: Mature population, optimal genes dominant - best results
Market Condition Dependency:
Trending Markets: AGE excels - clear directional moves, high-probability setups
Choppy Markets: AGE struggles - fewer signals generated, lower win rate
Volatile Markets: AGE cautious - higher rejection rate, wider stops, fewer trades
Market Regime Changes:
When market shifts from trending to choppy overnight
Validated strategies can become temporarily invalidated
AGE will adapt through evolution, but not instantly
Expect 50-100 bar re-learning period after major regime shifts
Fitness may temporarily drop then recover
This is NOT a holy grail. It's a sophisticated signal generator that learns and adapts using genetic algorithms. Your success depends on:
Patience during learning periods (don't abandon after 3 losses)
Proper position sizing (risk 0.5-2% per trade, not 10%)
Following signals consistently (cherry-picking defeats statistical edge)
Not abandoning system prematurely (give it 200+ bars minimum)
Understanding probability (60% win rate means 40% of trades WILL lose)
Respecting market conditions (trending = trade more, choppy = trade less)
Managing emotions (AGE is emotionless, you need to be too)
Expected Drawdowns:
Single-strategy max DD: 10-20% of equity (normal)
Portfolio across multiple instruments: 5-15% (diversification helps)
Losing streaks: 3-5 consecutive losses expected periodically
No indicator eliminates risk. AGE manages risk through:
Quality gates (rejecting low-probability signals)
Confluence requirements (multi-indicator confirmation)
Persistence requirements (no knee-jerk reactions)
Regime awareness (reduced trading in chaos)
Walk-forward validation (preventing overfitting)
But it cannot prevent all losses. That's inherent to trading.
🔧 TECHNICAL SPECIFICATIONS
Platform: TradingView Pine Script v5
Indicator Type: Overlay indicator (plots on price chart)
Execution Type: Signals only - no automatic order placement
Computational Load:
Moderate to High (genetic algorithms + shadow portfolios)
8 strategies × shadow portfolio simulation = significant computation
Premium visuals add additional load (gradient cloud, fitness ribbon)
TradingView Resource Limits (Built-in Caps):
Max Bars Back: 500 (sufficient for WFO and evolution)
Max Labels: 100 (plenty for entry/exit markers)
Max Lines: 150 (adequate for stop/target lines)
Max Boxes: 50 (not heavily used)
Max Polylines: 100 (confidence halos)
Recommended Chart Settings:
Timeframe: 15min to 1H (optimal signal/noise balance)
5min: Works but noisier, more signals
4H/Daily: Works but fewer signals
Bars Loaded: 1000+ (ensures sufficient evolution history)
Replay Mode: Excellent for testing without risk
Performance Optimization Tips:
Disable gradient cloud if chart lags (most CPU intensive visual)
Disable fitness ribbon if still laggy
Reduce cloud layers from 7 to 3
Reduce ribbon layers from 10 to 5
Turn off diagnostics panel unless actively tuning
Close other heavy indicators to free resources
Browser/Platform Compatibility:
Works on all modern browsers (Chrome, Firefox, Safari, Edge)
Mobile app supported (full functionality on phone/tablet)
Desktop app supported (best performance)
Web version supported (may be slower on older computers)
Data Requirements:
Real-time or delayed data both work
No special data feeds required
Works with TradingView's standard data
Historical + live data seamlessly integrated
🎓 THEORETICAL FOUNDATIONS
AGE synthesizes advanced concepts from multiple disciplines:
Evolutionary Computation
Genetic Algorithms (Holland, 1975): Population-based optimization through natural selection metaphor
Tournament Selection: Fitness-based parent selection with diversity preservation
Crossover Operators: Fitness-weighted gene recombination from two parents
Mutation Operators: Random gene perturbation for exploration of new parameter space
Elitism: Preservation of top N performers to prevent loss of best solutions
Adaptive Parameters: Different mutation rates for historical vs. live phases
Technical Analysis
Support/Resistance: Price structure within swing ranges
Trend Following: EMA-based directional bias
Momentum Analysis: RSI, ROC, MACD composite indicators
Volatility Analysis: ATR-based risk scaling
Volume Confirmation: Trade activity validation
Information Theory
Shannon Entropy (1948): Quantification of market order vs. disorder
Signal-to-Noise Ratio: Directional information vs. random walk
Information Content: How much "information" a price move contains
Statistics & Probability
Walk-Forward Analysis: Rolling in-sample/out-of-sample optimization
Out-of-Sample Validation: Testing on unseen data to prevent overfitting
Monte Carlo Principles: Shadow portfolio simulation with realistic execution
Expectancy Theory: Win rate × avg win - loss rate × avg loss
Probability Distributions: Signal confidence quantification
Risk Management
ATR-Based Stops: Volatility-normalized risk per trade
Volatility Regime Detection: Market state classification (trending/choppy/volatile)
Drawdown Control: Peak-to-trough equity measurement
R-Multiple Normalization: Performance measurement in risk units
Machine Learning Concepts
Online Learning: Continuous adaptation as new data arrives
Fitness Functions: Multi-objective optimization (win rate + expectancy + drawdown)
Exploration vs. Exploitation: Balance between trying new strategies and using proven ones
Overfitting Prevention: Walk-forward validation as regularization
Novel Contribution:
AGE is the first TradingView indicator to apply genetic algorithms to real-time indicator parameter optimization while maintaining strict anti-overfitting controls through walk-forward validation.
Most "adaptive" indicators simply recalibrate lookback periods or thresholds. AGE evolves entirely new strategies through competitive selection - it's not parameter tuning, it's Darwinian evolution of trading logic itself.
The combination of:
Genetic algorithm population management
Shadow portfolio simulation for realistic fitness evaluation
Walk-forward validation to prevent overfitting
Multi-indicator confluence for signal quality
Dynamic volatility scaling for adaptive risk
...creates a system that genuinely learns and improves over time while avoiding the curse of curve-fitting that plagues most optimization approaches.
🏗️ DEVELOPMENT NOTES
This project represents months of intensive development, facing significant technical challenges:
Challenge 1: Making Genetics Actually Work
Early versions spawned garbage strategies that polluted the gene pool:
Random gene combinations produced nonsensical parameter sets
Weak strategies survived too long, dragging down population
No clear convergence toward optimal solutions
Solution:
Comprehensive fitness scoring (4 factors: win rate, P&L, expectancy, drawdown)
Elite preservation (top 2 always protected)
Walk-forward validation (unproven strategies penalized 30%)
Tournament selection (fitness-weighted breeding)
Adaptive culling (MAS decay creates increasing selection pressure)
Challenge 2: Balancing Evolution Speed vs. Stability
Too fast = population chaos, no convergence. Too slow = can't adapt to regime changes.
Solution:
Dual-phase timing: Fast evolution during historical (30/60 bar intervals), slow during live (200/400 bar intervals)
Adaptive mutation rates: 20% historical, 8% live
Spawn/cull ratio: Always 2:1 to prevent population collapse
Challenge 3: Shadow Portfolio Accuracy
Needed realistic trade simulation without lookahead bias:
Can't peek at future bars for exits
Must track multiple portfolios simultaneously
Stop/target checks must use bar's high/low correctly
Solution:
Entry on close (realistic)
Exit checks on current bar's high/low (realistic)
Independent position tracking per strategy
Cooldown periods to prevent unrealistic rapid re-entry
ATR-normalized P&L (R-multiples) for fair comparison across volatility regimes
Challenge 4: Pine Script Compilation Limits
Hit TradingView's execution limits multiple times:
Too many array operations
Too many variables
Too complex conditional logic
Solution:
Optimized data structures (single DNA array instead of 8 separate arrays)
Minimal visual overlays (only essential plots)
Efficient fitness calculations (vectorized where possible)
Strategic use of barstate.islast to minimize dashboard updates
Challenge 5: Walk-Forward Implementation
Standard WFO is difficult in Pine Script:
Can't easily "roll forward" through historical data
Can't re-optimize strategies mid-stream
Must work in real-time streaming environment
Solution:
Age-based phase detection (first 250 bars = training, next 75 = testing)
Separate metric tracking for train vs. test
Efficiency calculation at fixed interval (after test period completes)
Validation flag persists for strategy lifetime
Challenge 6: Signal Quality Control
Early versions generated too many signals with poor win rates:
Single indicators produced excessive noise
No trend alignment
No regime awareness
Instant entries on single-bar spikes
Solution:
Three-layer confluence system (entropy + momentum + structure)
Minimum 2-of-3 agreement requirement
Trend alignment checks (penalty for counter-trend)
Regime-based probability adjustments
Persistence requirements (signals must hold multiple bars)
Volume confirmation
Quality gate (probability + confluence thresholds)
The Result
A system that:
Truly evolves (not just parameter sweeps)
Truly validates (out-of-sample testing)
Truly adapts (ongoing competition and breeding)
Stays within TradingView's platform constraints
Provides institutional-quality signals
Maintains transparency (full metrics dashboard)
Development time: 3+ months of iterative refinement
Lines of code: ~1500 (highly optimized)
Test instruments: ES, NQ, EURUSD, BTCUSD, SPY, AAPL
Test timeframes: 5min, 15min, 1H, Daily
🎯 FINAL WORDS
The Adaptive Genesis Engine is not just another indicator - it's a living system that learns, adapts, and improves through the same principles that drive biological evolution. Every bar it observes adds to its experience. Every strategy it spawns explores new parameter combinations. Every strategy it culls removes weakness from the gene pool.
This is evolution in action on your charts.
You're not getting a static formula locked in time. You're getting a system that thinks , that competes , that survives through natural selection. The strongest strategies rise to the top. The weakest die. The gene pool improves generation after generation.
AGE doesn't claim to predict the future - it adapts to whatever the future brings. When markets shift from trending to choppy, from calm to volatile, from bullish to bearish - AGE evolves new strategies suited to the new regime.
Use it on any instrument. Any timeframe. Any market condition. AGE will adapt.
This indicator gives you the pure signal intelligence. How you choose to act on it - position sizing, risk management, execution discipline - that's your responsibility. AGE tells you when and how confident . You decide whether and how much .
Trust the process. Respect the evolution. Let Darwin work.
"In markets, as in nature, it is not the strongest strategies that survive, nor the most intelligent - but those most responsive to change."
Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.
— Happy Holiday's
KSL-Fullsystem V2.0Trend Following & Reversal Trading System. It combines **Price Action (Market Structure)** with multiple technical indicators to generate high-quality Buy and Sell signals.
---
1. How Signals are Generated (The Core Logic)
The script uses **"Internal Shifts"** (Market Structure Breaks) to find entry points.
* BUY Signal: The price breaks above a previous bearish structure (Higher High) + All enabled filters are Green.
* SELL Signal: The price breaks below a previous bullish structure (Lower Low) + All enabled filters are Red.
When a signal occurs, the script automatically calculates:
* Stop Loss (SL): Based on the recent Swing High/Low.
* Take Profit (TP): Three levels (TP1, TP2, TP3) based on risk-reward ratios (1.5x, 2.0x, 3.0x).
---
2. The Filters (Your Confirmation Checklist)
You can turn these On/Off in the settings. **Note:** If you turn *all* of them on, you might get very few signals because the conditions become too strict.
**A. Bollinger Bands (BB) Filters (Primary Feature)**
This is the main filter for this version.
* Squeeze Filter: Prevents trading when the bands are too narrow (low volatility). If the background turns **Yellow**, it means the market is "Squeezing" – **Do Not Trade.**
* Touch Entry: Looks for price bouncing off the Lower Band (Buy) or Upper Band (Sell).
* Breakout Entry: Looks for price blasting through the bands.
* Mean Reversion: Checks if price is reverting to the middle line (Basis).
**B. Moving Average Filters (Trend)**
The script includes three types of Moving Averages. You can choose which style suits you:
* EMA (Exponential): Fast-reacting. Good for scalping.
* SMA (Simple): Standard trend lines. Good for position trading.
* LWMA (Linear Weighted): Focuses heavily on recent data.
* Configuration: You can select specific setups like "Scalping" (9/21/50 EMA) or "Trend" (50/200 EMA).
**C. Momentum Filters**
* MACD: Checks momentum. You can choose settings for Scalping, Day Trading, or Swing Trading.
* AO (Awesome Oscillator) & AC: Helps confirm if the momentum is strong enough to support the trend.
---
**3. Visual Guide: What You See on the Chart**
* Green Box: A Buy Zone (Demand).
* Red Box: A Sell Zone (Supply).
* Labels (Text): Shows "BUY" or "SELL" with exact prices for TP1, TP2, TP3, and SL.
* Blue Lines: The Bollinger Bands (Upper and Lower).
* Orange Line: The Bollinger Band Basis (Middle).
* Small Triangles:
* Green Triangle (Below Bar): Price touched the Lower Bollinger Band.
* Red Triangle (Above Bar): Price touched the Upper Bollinger Band.
* Yellow Background: **WARNING.** The market has low volume/volatility (BB Squeeze). Wait for a breakout.
---
4. How to Use This Script
1. Select Your Style: Go to the Settings (Inputs).
* If you are a **Scalper**, turn on "Scalping EMA" or "Scalping MACD".
* If you are a **Swing Trader**, turn on "Swing SMA" or "Trend EMA".
2. Configure Bollinger Bands: Keep `Use Bollinger Bands Filter` checked. Decide if you want to trade "Squeezes" (usually safer to avoid them).
3. Wait for the Label: Do not enter blindly. Wait for the script to print a **BUY** or **SELL** label with the TP/SL targets.
4. Check the Background: If the background is **Yellow**, ignore the signal or wait until the color clears.
5. Manage Risk: Place your Stop Loss at the price shown on the label ("SL").
ULTRA PLATINUM V51. LONG (BUY) SETUP
When to Enter:
Signal: Wait for a Blue "AL" Label to appear below the candle.
Bar Color: The candle body should turn Green (indicating a strong bullish trend).
Panel Confirmation (Right Corner):
Squeeze Momentum: Should show "MOMENTUM LONG" (Green).
Market Type: Should say "TREND VAR" (Green). If it says "YATAY (RISKLI)" or "CHOPPY", it is better to wait.
EMA Safety: Should say "GÜVENLİ" (Safe).
Action:
Open a Long position at the close of the signal candle.
Stop Loss: Set your SL to the price shown in the Panel under "STOP LOSS".
Take Profit: Set your targets to the prices shown under "KAR AL 1" (TP1) and "KAR AL 2" (TP2).
2. SHORT (SELL) SETUP
When to Enter:
Signal: Wait for an Orange "SAT" Label to appear above the candle.
Bar Color: The candle body should turn Red (indicating a strong bearish trend).
Panel Confirmation:
Squeeze Momentum: Should show "MOMENTUM SHORT" (Red).
Market Type: Should say "TREND VAR".
EMA Safety: Should say "GÜVENLİ".
Action:
Open a Short position at the close of the signal candle.
Stop Loss: Set your SL to the price shown in the Panel under "STOP LOSS".
Take Profit: Use the TP1 and TP2 levels from the Panel.
3. RE-ENTRY STRATEGY (Scaling In)
This feature allows you to increase your position size if the trend continues.
Long Re-Entry: Look for a small Green Triangle below the bar. This means the price pulled back slightly and is now pushing up again (RSI crossover). You can add to your Long position here.
Short Re-Entry: Look for a small Red Triangle above the bar. You can add to your Short position here.
4. CRITICAL WARNINGS (When NOT to Trade)
Gray Candles: If the candles are Gray, the market is indecisive. Avoid entering new positions even if you see a signal.
Squeeze Mode: If the Panel says "SIKIŞMA VAR (BEKLE)" (Squeeze On), it means volatility is very low. A big move is coming, but the direction is uncertain. Wait until the squeeze breaks and the panel changes to Momentum Long or Short.
High Risk: If the panel says "ÇOK YAKIN (RİSK)" regarding the EMA, the price is too close to the 200 EMA. This often acts as a magnet or a wall; proceed with caution.
ICT Fair Value Gap Detector [Eˣ]⚡ Fair Value Gap Detector
Overview
The Fair Value Gap Detector automatically identifies price imbalances on your charts - the inefficiencies left behind when price moves too quickly. This indicator reveals where price is likely to return for "rebalancing", based on ICT (Inner Circle Trader) concepts of market efficiency.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What This Indicator Does
Detects Fair Value Gaps:
• 🟢 Bullish FVG - Gap left below during aggressive upward move
• 🔴 Bearish FVG - Gap left above during aggressive downward move
• Automatically identifies 3-candle price inefficiencies
• Works on all timeframes and instruments
Smart Fill Tracking:
• Full Fill - Price completely fills the gap
• 50% Fill - Price fills half the gap (critical level)
• Partial Fill - Price touches gap edge
• Real-time fill percentage tracking
• Auto-removes filled gaps (optional)
Professional Features:
• Active Gap Highlighting - Shows nearest unfilled gap
• Distance Calculator - Displays how far price is from gaps
• Market Bias - Analysis based on gap balance
• Size Filtering - Minimum gap size to avoid noise
• Visual Clarity - Clean boxes with color-coding
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 Understanding Fair Value Gaps
What Are Fair Value Gaps?
Fair Value Gaps (FVGs), also known as imbalances or inefficiencies, are zones where price moved so quickly that normal trading didn't occur. They represent:
• Price Imbalance - One-sided aggressive buying or selling
• Unfair Pricing - Some participants didn't get to trade at these levels
• Market Inefficiency - Supply/demand equilibrium was disrupted
• Rebalancing Zones - Price often returns to "fill" these gaps
The ICT Concept:
Markets constantly seek equilibrium (fair value). When price moves too fast:
1. It leaves gaps where normal trading didn't happen
2. These gaps represent unfair/inefficient pricing
3. Market has a tendency to return and "rebalance"
4. Smart money knows this and trades the fills
Why FVGs Work:
• Unfilled Orders - Traders who missed the move have pending orders in the gap
• Algorithmic Trading - Algos programmed to exploit inefficiencies
• Market Psychology - Traders notice gaps and place orders there
• Institutional Behavior - Smart money uses gaps for entries/exits
FVG vs Regular Gaps:
• Regular Gaps - Occur at market open, between daily closes
• Fair Value Gaps - Occur intraday, between 3 consecutive candles
• FVGs happen more frequently and on all timeframes
• FVGs are more tradeable for intraday/swing traders
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 Bullish Fair Value Gaps Explained
How They Form:
Bullish FVG requires 3 candles:
1. Candle 1 - Any candle (sets the high reference)
2. Candle 2 - Strong bullish candle (aggressive buying)
3. Candle 3 - Continuation candle
The Gap: Candle 3's LOW is above Candle 1's HIGH = Gap left unfilled
Visual Example:
```
Candle 3: Low at $105 ──────────┐
│ ← GAP (Bullish FVG)
Candle 2: Strong bullish │
│
Candle 1: High at $100 ──────────┘
```
What It Means:
• Price jumped from $100 to $105+ so fast, no trading occurred in between
• This $100-$105 zone is "unfair" - buyers/sellers didn't get to trade there
• Market may return to this zone to "rebalance"
• When price returns, it often acts as support
Trading Bullish FVGs:
Strategy:
• Wait for price to retrace down into the bullish FVG (green box)
• Look for rejection/bounce from the gap zone
• Enter long when price respects the FVG as support
• Stop loss: Below the FVG
• Target: Previous high or opposite FVG
Best Entry Points:
• 50% Fill: Price enters middle of gap (highest probability)
• Full Fill: Price touches bottom of gap (aggressive entry)
• Tap & Reject: Price quickly enters and exits gap (strong signal)
Example Trade:
• Bullish FVG forms: $50,000 - $50,500 (500 point gap)
• Price rallies to $52,000 then retraces
• Price drops to $50,250 (50% of gap filled)
• Bullish reversal candle appears
• Enter long at $50,500, stop at $49,800
• Target: $52,000+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔴 Bearish Fair Value Gaps Explained
How They Form:
Bearish FVG requires 3 candles:
1. Candle 1 - Any candle (sets the low reference)
2. Candle 2 - Strong bearish candle (aggressive selling)
3. Candle 3 - Continuation candle
The Gap: Candle 3's HIGH is below Candle 1's LOW = Gap left unfilled
Visual Example:
```
Candle 1: Low at $100 ───────────┐
│ ← GAP (Bearish FVG)
Candle 2: Strong bearish │
│
Candle 3: High at $95 ───────────┘
```
What It Means:
• Price dropped from $100 to $95 so fast, no trading occurred in between
• This $95-$100 zone is "unfair" - buyers/sellers didn't get to trade there
• Market may return to this zone to "rebalance"
• When price returns, it often acts as resistance
Trading Bearish FVGs:
Strategy:
• Wait for price to retrace up into the bearish FVG (red box)
• Look for rejection/reversal from the gap zone
• Enter short when price respects the FVG as resistance
• Stop loss: Above the FVG
• Target: Previous low or opposite FVG
Best Entry Points:
• 50% Fill: Price enters middle of gap (highest probability)
• Full Fill: Price touches top of gap (aggressive entry)
• Tap & Reject: Price quickly enters and exits gap (strong signal)
Example Trade:
• Bearish FVG forms: $48,000 - $48,500 (500 point gap)
• Price drops to $46,000 then retraces
• Price rallies to $48,250 (50% of gap filled)
• Bearish reversal candle appears
• Enter short at $48,000, stop at $48,700
• Target: $46,000-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 How To Use This Indicator
Strategy 1: FVG Rebalancing (Classic)
Best For: Swing trading, reversal trading
Timeframes: 15min, 1H, 4H
Win Rate: 65-75%
Entry Rules:
1. Identify unfilled FVG (bright color, not gray)
2. Wait for price to return to the gap
3. Best entry: 50% fill of the gap
4. Look for reversal confirmation:
• Bullish FVG: Pin bar, engulfing, hammer
• Bearish FVG: Shooting star, bearish engulfing
5. Enter when price bounces/rejects from FVG
6. Stop: Beyond opposite side of FVG
7. Target: 2-3R or previous high/low
Why It Works: 70%+ of FVGs get filled, and 60%+ show reaction
Strategy 2: FVG + Order Block Confluence
Best For: High-probability setups
Timeframes: 1H, 4H
Win Rate: 75-85%
Entry Rules:
1. Find FVG that overlaps with Order Block
2. This creates a "super zone" of confluence
3. Wait for price to return to this zone
4. Enter on first touch of confluence zone
5. Stop: Beyond the confluence zone
6. Target: 3-4R
Why It Works: Double institutional concepts = highest probability
Strategy 3: Multi-Timeframe FVG
Best For: Position trading, major moves
Timeframes: Combine Daily + 4H or 4H + 1H
Win Rate: 70-80%
Entry Rules:
1. Identify large FVG on higher timeframe (Daily/4H)
2. Wait for price to enter this HTF FVG
3. Switch to lower timeframe (4H/1H)
4. Look for LTF FVG within HTF FVG in same direction
5. Trade the LTF FVG fill
6. Stop: Below LTF FVG
7. Target: Exit HTF FVG or beyond
Why It Works: Timeframe alignment = institutional consensus
Strategy 4: FVG Rejection Trade
Best For: Quick scalps, day trading
Timeframes: 5min, 15min
Win Rate: 60-70%
Entry Rules:
1. Price enters FVG zone
2. Immediate rejection (strong reversal candle)
3. Enter on close of rejection candle
4. Tight stop beyond FVG
5. Quick target: 1-2R
Why It Works: Strong rejection = institutional defense of level
Strategy 5: FVG-to-FVG Trading
Best For: Momentum trading
Timeframes: 15min, 1H
Win Rate: 55-65%
Entry Rules:
1. Identify bullish FVG below and bearish FVG above
2. Enter long at bullish FVG, target bearish FVG
3. Or enter short at bearish FVG, target bullish FVG
4. Price often moves from one imbalance to another
5. Stop: Beyond trading FVG
6. Target: Opposite FVG
Why It Works: Price rebalances from one inefficiency to another
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Settings Explained
Display Settings
Show Bullish/Bearish FVG
• Toggle each type on/off independently
• Customize colors for each FVG type
• Default: Green (bullish), Red (bearish)
• Tip: Use colors that contrast with your chart
Max FVG to Display (Default: 20)
• Limits how many gaps are shown at once
• Lower (10-15): Cleaner chart, recent gaps only
• Higher (30-50): More historical context
• Recommended: 15-25 for most trading
Show FVG Labels (Default: ON)
• Displays "FVG+" and "FVG-" text on gaps
• Shows 🎯 on active (nearest) gap
• Shows fill percentage (e.g., "FVG+ 35%")
• Turn OFF for minimal appearance
• Recommended: Keep ON for clarity
Extend Gaps (bars) (Default: 50)
• How far to extend gap boxes to the right
• Lower (20-30): Shorter boxes
• Higher (100+): Longer boxes, easier to see
• Gaps auto-extend until filled or limit reached
• Recommended: 40-60 bars
Filters
Min Gap Size % (Default: 0.05)
• Minimum gap size as percentage of price
• Filters out tiny, insignificant gaps
• Crypto: 0.05-0.15% (high volatility)
• Forex: 0.03-0.10% (moderate volatility)
• Stocks: 0.05-0.20% (varies by stock)
• Indices: 0.05-0.15%
• Adjust based on instrument's average move
Show Filled Gaps (Default: OFF)
• When ON: Shows gray boxes for filled gaps
• When OFF: Gaps disappear after mitigation
• Use ON: For learning and backtesting
• Use OFF: For clean, active trading view
Advanced Settings
Auto-Detect Mitigation (Default: ON)
• Automatically tracks when gaps are filled
• Updates fill percentage in real-time
• Marks gaps as "mitigated" when filled
• Recommended: Keep ON
Mitigation Type (Default: Full)
• Full: Gap considered filled when price closes through entire gap
• 50%: Gap considered filled at 50% (critical level)
• Partial: Gap considered filled on first touch
• For learning: Use "Full"
• For aggressive trading: Use "50%"
• For conservative trading: Use "Partial"
Highlight Nearest Gap (Default: ON)
• Highlights the closest unfilled gap to current price
• Active gap shown with 🎯 emoji and brighter color
• Helps focus on most relevant opportunity
• Recommended: Keep ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Info Panel Guide
Bullish FVG Count
• Number of active (unfilled) bullish fair value gaps
• Higher number = More potential support zones below
• Multiple bullish FVGs = Strong rebalancing demand
Bearish FVG Count
• Number of active (unfilled) bearish fair value gaps
• Higher number = More potential resistance zones above
• Multiple bearish FVGs = Strong rebalancing supply
Bias Indicator
• ⬆ Bullish: More bullish FVGs than bearish
• ⬇ Bearish: More bearish FVGs than bullish
• ↔ Neutral: Equal FVGs on both sides
• Market tends to fill nearby gaps first
Target Indicator
• Shows nearest unfilled gap and distance
• Example: "Bull FVG -1.25%" = Bullish gap is 1.25% below price
• Example: "Bear FVG +0.85%" = Bearish gap is 0.85% above price
• Watch for price to reach these targets
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Alert Setup
This indicator includes 4 alert types:
1. Price Entering Bullish FVG
• Fires when price drops into a bullish gap
• Action: Watch for bounce/reversal
• High-probability long setup developing
2. Price Entering Bearish FVG
• Fires when price rallies into a bearish gap
• Action: Watch for rejection/reversal
• High-probability short setup developing
3. New Bullish FVG Detected
• Fires when a new bullish gap forms
• Action: Mark zone for future fill
• New rebalancing target below identified
4. New Bearish FVG Detected
• Fires when a new bearish gap forms
• Action: Mark zone for future fill
• New rebalancing target above identified
To Set Up Alerts:
1. Click "Alert" button (clock icon)
2. Select "Fair Value Gap Detector"
3. Choose your alert condition
4. Configure notification method
5. Click "Create"
Pro Tip: Set "Price Entering" alerts to catch fills in real-time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 Pro Tips & Best Practices
✅ DO:
• Wait for 50% fill - Middle of gap has highest win rate (65-70%)
• Use confirmation - Don't trade just because price touched gap
• Combine with structure - FVG + support/resistance = high probability
• Trade first fill - Unfilled gaps have better success rate than refilled
• Respect full fills - Once fully filled, gap is less reliable
• Use multiple timeframes - HTF FVGs are stronger than LTF
• Check session timing - FVGs work best during London/NY sessions
• Follow the bias - More bullish FVGs = favor longs
⚠️ DON'T:
• Don't blindly fade gaps - Wait for price action confirmation
• Don't ignore momentum - Strong trends can blow through FVGs
• Don't trade every gap - Quality over quantity
• Don't assume all gaps fill - About 70-80% fill, 20-30% don't
• Don't use tight stops - Allow room for wick into gap
• Don't overtrade - Wait for confluence and confirmation
• Don't fight trends - Best FVG trades are with higher TF trend
• Don't ignore fill percentage - 50% is often the sweet spot
🎯 Best Timeframes:
• Scalpers: 1min, 5min (many gaps, quick fills)
• Day Traders: 5min, 15min, 1H (balanced)
• Swing Traders: 1H, 4H, Daily (larger, more reliable gaps)
• Position Traders: 4H, Daily, Weekly (major imbalances)
🔥 Best Instruments:
• Excellent: BTC, ETH, ES, NQ, Forex majors (clean price action)
• Good: Gold, Oil, Major indices, Large-cap stocks
• Moderate: Altcoins, small-cap stocks (more noise)
• Best Markets: Trending markets with clear swings
⏰ Best Times for FVG Trading:
• London Session: High volume = reliable gap fills
• NY Session: Strong moves create quality gaps
• London-NY Overlap: Best time for gap creation and fills
• Asian Session: Lower probability, wait for London
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 Advanced FVG Concepts
FVG Mitigation Levels
Understanding fill percentages:
• 0-25% Fill: Gap barely touched, often continues without fill
• 25-50% Fill: Partial rebalancing, may reverse here
• 50% Fill: CRITICAL LEVEL - Highest probability reversal zone
• 50-75% Fill: Deep rebalancing, strong reversal likely
• 75-100% Fill: Full rebalancing, gap's purpose fulfilled
Why 50% Matters: Market seeks equilibrium, and 50% represents perfect balance
FVG Inversions
When price breaks through a gap completely:
• Bullish FVG that's broken becomes bearish (support → resistance)
• Bearish FVG that's broken becomes bullish (resistance → support)
• Inverted gaps are weaker than fresh gaps
• Trading: Can fade the inverted gap but with caution
FVG Confluence Zones
Multiple FVGs at similar level:
• Creates "super gap" or confluence zone
• Much higher probability of reaction
• Wider zone for entries (more room for stops)
• Often aligns with other institutional concepts
FVG + Order Block Combo
When FVG overlaps with Order Block:
• Double institutional concept
• Extremely high probability setup (75-85% win rate)
• Price drawn to fill gap AND test order block
• Use tight stops, generous targets (3-5R possible)
Nested FVGs (Multi-Timeframe)
Small FVG inside larger FVG:
• Daily FVG contains 4H FVG contains 1H FVG
• Trade the smallest FVG in direction of larger ones
• Highest probability when all aligned
• Progressive targets: Fill small → medium → large gaps
FVG Exhaustion
When price creates multiple FVGs in same direction:
• Indicates strong momentum/impulsive move
• Each gap represents acceleration
• Last gap often signals exhaustion
• Watch for reversal after filling final gap
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Common FVG Patterns
Pattern 1: The Perfect Rebalance
• FVG forms during strong move
• Price continues 100+ pips
• Clean return to 50% of gap
• Immediate reversal
• Textbook setup, 70%+ win rate
Pattern 2: The Double Fill
• Price partially fills gap (25%)
• Weak reaction, continues
• Returns again for deeper fill (75%)
• Strong reversal on second fill
• Second fill often better entry
Pattern 3: The Blow-Through
• Price approaches gap
• Completely ignores it, no reaction
• Keeps going in same direction
• Sign of very strong momentum
Pattern 4: The Magnet Effect
• Price slowly grinds toward gap
• Accelerates as it gets close
• Quickly fills and reverses
• Common in ranging markets
Pattern 5: The False Fill
• Price wicks into gap briefly
• Immediately reverses without filling
• "Stop hunt" or liquidity grab
• Gap remains unfilled
• Often precedes strong move
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 What Makes This Different?
Unlike basic gap indicators, Fair Value Gap Detector:
• ICT Methodology - Based on proven institutional concepts
• Real-Time Fill Tracking - Shows percentage filled as it happens
• 3 Mitigation Types - Full, 50%, Partial for different strategies
• Active Gap Highlighting - Shows most relevant opportunity
• Smart Filtering - Minimum size to avoid noise
• Visual Clarity - Clean, professional appearance
• Auto-Management - Removes filled gaps automatically
• Distance Tracking - Know exactly where price needs to go
Based On Professional Concepts:
• ICT Fair Value Gap theory
• Market efficiency principles
• Price rebalancing dynamics
• Institutional order flow analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 FVG Statistics & Probabilities
Based on ICT concepts and trader observations:
Gap Fill Rates:
• 70-80% of FVGs get filled eventually
• 60-70% show some reaction when filled
• 50% fill level has ~65% reversal rate
• Full fills have ~55% reversal rate
Timeframe Reliability:
• Daily FVGs: ~75-85% fill rate, strongest reactions
• 4H FVGs: ~70-80% fill rate, strong reactions
• 1H FVGs: ~65-75% fill rate, good reactions
• 15min FVGs: ~60-70% fill rate, moderate reactions
• 5min FVGs: ~55-65% fill rate, weaker reactions
Best Practices:
• First touch of gap = 65-70% win rate
• 50% fill = 65% win rate
• FVG + Order Block = 75-85% win rate
• Multi-timeframe aligned FVG = 70-80% win rate
• FVG in trending market = 60-70% win rate
Common Failures:
• Strong momentum blows through gaps (20-30% of time)
• Gaps in low-volume periods less reliable
• Very small gaps (<0.05%) often ignored
• Counter-trend gaps have lower success rate
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🙏 If You Find This Helpful
• ⭐ Leave your feedback
• 💬 Share your experience in the comments
• 🔔 Follow for updates and new tools
Questions about Fair Value Gaps? Feel free to ask in the comments.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version History
• v1.0 - Initial release with 3-candle FVG detection and real-time fill tracking
SM OB Intraday Bot AssistantSM OB Intraday Bot Assistant is an intraday tool built around Smart Money Concepts (SMC). It focuses on market structure, Order Blocks and mitigation, and then turns them into a complete trade plan with entry, adaptive stop-loss and structured take-profit levels.
────────────────────
1. Concept & purpose
────────────────────
The script is designed for intraday trading on 15m–1h timeframes. It automates a classic SMC workflow:
1) Detect swing structure and Break Of Structure (BOS).
2) Identify bullish/bearish Order Blocks (OB) and Hidden Order Blocks (HOB).
3) Filter them using impulse strength, volume and Fib/OTE confluence.
4) Build a trade idea: Entry, Stop-Loss, TP1, TP2, TP3.
5) Track trade status and basic statistics on chart.
The source is protected (invite-only), but the logic below describes how the script works so traders can understand and use it.
────────────────────
2. Structure, BOS and FVG
────────────────────
• Swings are detected using configurable swing length.
• BOS is confirmed only when:
– Price closes beyond the last swing high/low by a minimum tick distance.
– The break candle is an impulse: its body must exceed a minimum ATR fraction and a minimum Body/Range ratio.
• Optional filter: the BOS candle must also create a 3-bar Fair Value Gap (FVG).
This helps the script focus on meaningful breaks instead of random noise.
────────────────────
3. Order Blocks & Hidden OBs
────────────────────
After a valid BOS, the script looks back for the last opposite candle to define an Order Block:
• Only small-body candles are considered (body ≤ X% of total range), with a minimum OB height in ticks.
• OBs can be built using either candle bodies or full wicks.
• Hidden OBs (HOBs) are marked when price creates same-bias FVGs further in the direction of the BOS, while the original OB remains unmitigated.
• Each OB is stored as a box that can be:
– Extended to the right,
– Limited to N bars, or
– Kept only at its origin.
Mitigation state is tracked for each OB:
• 0 = untouched
• 1 = partially mitigated
• 2 = fully mitigated
The user can choose which mitigation states to display.
────────────────────
4. Fib / OTE confluence
────────────────────
The script automatically builds the last significant leg between swing low and swing high and computes:
• Fib levels 0.618 / 0.705 / 0.786
• An OTE band (roughly between the 62–79% retracement area)
An OB is marked as “in confluence” when its midpoint is near these Fib levels or inside the OTE band, with tolerance based on ATR. This allows traders to focus on OBs that align with both structure and retracement logic.
────────────────────
5. Volume filter
────────────────────
For each OB, the script compares its candle volume to a volume moving average:
• If enabled, only OBs with volume ≥ (multiplier × volume MA) are considered valid for entries.
This acts as a simple high-volume filter to ignore weak zones that form on low participation.
────────────────────
6. Trade logic and “smart” levels
────────────────────
When a new qualified OB appears and meets the filters, the script builds a full intraday trade plan:
• Entry:
– Taken from the midpoint of the OB (PIN / mid-zone), not from an arbitrary price.
• Stop-Loss:
– For longs: behind the nearest meaningful low (recent swing low or OB low).
– For shorts: behind the nearest meaningful high (recent swing high or OB high).
– The SL is then capped so that its distance never exceeds the distance to TP1.
This keeps risk under control and avoids oversized stops.
• Take Profits (TP1, TP2, TP3):
– Targets are not fixed percentages of stop.
– The script computes a “base unit” using:
• distance to the next structure level,
• ATR,
• OB height,
• and a minimum percentage of price.
– TP1, TP2, TP3 are multiples of this base unit, so all targets are tied to volatility and structure, not random numbers.
This makes the levels more realistic for intraday trading compared to simple R-multiples.
────────────────────
7. Execution control
────────────────────
• Only one active trade at a time can be enforced if desired.
• The script can block opening a new trade in the same direction while the previous one is still active.
• OBs can expire on first touch if the user prefers to keep the chart clean.
────────────────────
8. Trade panel & statistics
────────────────────
The script includes a compact on-chart table showing:
• Direction: LONG / SHORT
• Entry price
• Stop-Loss
• TP1, TP2, TP3
• Current trade status:
– “Waiting”, “In play”, “TP1 hit”, “TP2 hit”, “TP3 hit”, “SL hit”, etc.
• Rolling win rate (WR) over the last 100 trades, based on TP1 vs SL.
This allows traders to visually follow the logic of the system and its recent performance without having to read code.
────────────────────
9. Alerts and automation
────────────────────
The indicator exposes alert conditions for:
• New bullish / bearish OB
• Mitigation of bullish / bearish OB
• Trade entry signals (LONG / SHORT)
It can also format alerts as JSON-style messages containing entry, SL and TP levels, so that external tools, webhooks or custom bots can parse and act on them. This makes it easier to connect the script to automated execution, while the trade logic and risk parameters remain fully controlled inside the indicator.
────────────────────
10. Usage notes
────────────────────
• Recommended environment: intraday crypto or FX on 15m–1h.
• Best use cases:
– Focusing on high-quality OBs with structural and Fib/OTE confluence.
– Using the generated Entry/SL/TP1–TP3 as a consistent intraday playbook.
– Feeding signals into external automation via alerts.
This script is not a guarantee of profits and is not financial advice. It is a framework that formalizes a specific Smart Money style approach (BOS → OB/HOB → mitigation → confluence → structured targets) so traders can apply it systematically in their own strategies.
Opening Range & Session Liquidity [LTS]“Opening Range & Session Liquidity ” is an intraday planning tool that combines a configurable Opening Range box with session highs/lows and previous-day reference levels. It is designed to help you visualize where liquidity is likely to build up around the cash open and major global sessions, without making any forecasts or performance promises. It is designed with our signature attention to user customization and accessibility.
Opening Range & Bias
The script builds a configurable Opening Range (OR) in New York time (default 08:00–08:15 on a 15-minute basis), regardless of your chart timeframe (up to 1-hour). The high, low, and midline of this window are drawn as a transparent box and dashed midline that extend forward so you can see how the session trades around that range.
At a user-defined Bias Check Time (default 09:30–09:31 NY), the script classifies the OR as:
Bullish if price is above the OR high
Bearish if price is below the OR low
Neutral if price is still trading inside the OR
The box color updates to reflect the current bias if bias mode is enabled. All OR parameters (formation window, bias check, colors, maximum number of zones, etc.) are adjustable.
Entry Signal Logic
The indicator can optionally generate non-repainting visual signals when price interacts with the OR midline.
1. 9:30 Bias mode (trend-following)
A directional bias is locked in at the bias check time.
Signals trigger only when price trades through the OR midline inside the box, aligned with that bias:
Bullish bias → long signal when price touches the midline from below and closes inside the range.
Bearish bias → short signal when price touches the midline from above and closes inside the range.
Each “episode” can fire only once; signals are confirmed on the bar where the conditions first become true.
2. Entry Direction mode (reaction to first touch)
Instead of using a fixed 9:30 bias, the script detects from which side price first enters the OR (from above or from below).
That “entry direction” stays active until price fully exits and closes outside the OR again.
When price later touches the midline while the entry direction is defined, a single long or short signal is triggered based on the stored direction of entry.
In both modes, historical signals are plotted without using future data; only the real-time bar can change state until it closes.
Optional TP/SL Visualization
When a long or short signal appears, the script can draw simple take-profit/stop-loss boxes to illustrate a basic one-trade idea:
Stop-loss distance can be defined as:
A fixed number of points beyond the OR high/low, or
A percentage of ATR (configurable length and percent).
Take-profit is automatically placed at a user-defined risk-to-reward multiple of that stop distance.
The boxes extend forward bar by bar and stop updating once either TP or SL is touched, or when a new OR session resets the context.
These boxes are for visualization only and do not place or manage orders.
Session Liquidity & PDH/PDL
To help you map where liquidity frequently builds up, the script tracks three configurable intraday sessions in New York time:
Asian session (default 18:00–02:00)
London session (default 03:00–08:00)
New York session (default 09:30–16:00)
For each completed session, the indicator records the session high and low, then:
Draws solid horizontal lines and labels (e.g., “Asia Hi/Lo”, “London Hi/Lo”, “NY Hi/Lo”).
Extends these solid lines to the right as long as they remain untouched by price.
When price first trades through a level, the solid line is cut at that bar and replaced by a dashed line that extends only until the next session of the same type begins.
Older sessions are automatically removed according to the “Max Sessions to Display” setting to reduce chart clutter.
In addition, the indicator plots:
Previous Day High (PDH) & Previous Day Low (PDL)
Previous Day Point of Control (PDPoC) – an approximate volume-weighted price computed from intraday data using a simple binning approach on a user-chosen lower timeframe.
Like the session levels, PDH/PDL/PDPoC start as solid lines. After the first touch, each level switches to a dashed style and continues only until the following trading day, at which point the previous day’s dashed lines are stopped and new levels are created.
Info Table & Multi-Timeframe Logic
An optional on-chart info table summarizes the most recent Opening Range:
OR high, low, and midline
Current OR range in points
Active mode (9:30 Bias vs. Entry Direction)
Current bias or entry-direction status
Whether a signal is “Waiting”, “Armed”, or “Triggered”
Whether the OR was built from the chart timeframe or from a 15-minute higher-timeframe feed
If your chart timeframe is higher than the OR calculation timeframe, the script automatically uses multi-timeframe data to build a consistent OR, while enforcing a maximum chart timeframe of 1-hour for reliability.
How to Use This Tool
Use the OR box and bias to define your primary intraday context around the cash open.
Use session highs/lows and PDH/PDL/PDPoC as objective reference levels for where price may react or where stops and liquidity might cluster.
Treat the signal markers and TP/SL boxes as visual guides only. They can help you structure trade ideas, but they are not a trading system by themselves.
Always confirm levels and signals with your own analysis, risk management, and execution rules.
Limitations & Notes
The script is intended for intraday charts up to 1-hour. By the nature of the information being displayed, any time frame above that may result is undesirable visual clutter.
The POC calculation is an approximation based on lower timeframe bar-level volume and binning; it is not a tick-by-tick volume profile.
Signals and levels update in real time on the current forming bar. Once a bar closes, completed historical signals do not repaint, but the last live bar can change until it closes.
The indicator does not use lookahead or offset plotting into the past; it is not designed to predict the future or guarantee any particular trading result.
Always test settings on a demo environment first and manage risk according to your own plan.
XΩ — Trade Commander (Global)1. What is XΩ — Trade Commander?
XΩ — Trade Commander (Global) is a post‑entry position management system.
It does not tell you where to enter. Instead, it helps you manage a trade after you are already in:
Dynamic Trailing Stop based on volatility (ATR)
Visual Safe Zone under price
R‑Multiple targets (1R, 2R, 3R) for profit‑taking
A live Position Dashboard with PnL and suggested actions
Exit alert when price breaks the Trailing Stop
Plus a ZERO GENESIS brand signature on the chart
Think of it as a trade commander / position guardian that enforces your risk and trailing rules.
2. Basic setup (Inputs)
In the Active Position Settings group:
Position Active?
Turn ON when you have a live position you want to manage.
Turn OFF when flat (no position), to effectively disable the management logic.
Avg Entry Price
Enter your average entry price (if you scaled in, use your weighted average).
This is the reference for all PnL and R calculations.
Initial Stop Loss
Your original invalidation price (hard stop) when you planned the trade.
Used to define:
The size of 1R (initial risk unit)
The locations of 1R, 2R, 3R targets.
Position Size (Units)
Size of your current position (number of shares/coins/contracts, etc.).
Used to convert PnL into currency value.
In the Trailing Stop Engine group:
Trailing Width (xATR)
Controls how tight/loose the trailing stop is:
Smaller value → tighter, closer to price (protects faster, more likely to get stopped out early)
Larger value → looser, farther from price (lets winners run, accepts more swing)
Source
Price source for the trailing engine:
AVA → smoothed price (reduces noise and “random” stop‑outs)
Close → closing price
High/Low → mid of high & low
In the Take Profit Targets (R-Multiples) group:
Show R-Levels
Turn ON to draw 1R, 2R, 3R reference lines on the chart.
Turn OFF if you prefer a cleaner chart.
3. How to read the indicator on the chart
Once Position Active? is ON and you’ve filled Avg Entry Price / Initial Stop Loss / Position Size, you’ll see:
3.1. Trailing Stop line (“The Shield”)
A blue/gray line below price (for long trades):
It only moves up, never down (ratchet‑style trailing).
When price rises → the trailing stop is adjusted upward.
When price falls → the trailing stop stays in place, not lowered.
Color:
Blue → price is still above the trailing stop (protected, trade is “alive”).
Gray → price is below the trailing stop (trailing has been violated).
Visually, this line is your dynamic protective shield.
3.2. Safe Zone (blue fill)
Light blue fill between price (chosen source) and the Trailing Stop line.
Represents your current buffer:
Thick Safe Zone → good distance to the stop → room for normal volatility.
Thin Safe Zone → close to stop → trade is at risk of being closed.
3.3. Entry & Hard Stop lines
Horizontal lines:
Entry Price → gray dotted line
Initial Stop Loss → solid red line
Helps you always see:
Where the trade started
Where the original invalidation was (your planned “I’m wrong here” level)
3.4. R‑Multiple Targets (1R, 2R, 3R)
When Show R-Levels is ON and Initial Stop Loss is set:
1R: dashed green line, labeled 1R
2R: dashed green line, labeled 2R
3R: dashed green line, labeled 3R (Target)
Use these for:
Planning partial take‑profits
Knowing when it’s reasonable to move your stop (e.g., to breakeven at 1R)
Evaluating your trade in terms of reward vs initial risk
3.5. “POSITION GUARDIAN” Dashboard label
Near the current price, you’ll see a label like:
Title: 🛡️ POSITION GUARDIAN
Inside:
Size: your position size and entry price
PnL: current profit/loss percentage and value (auto‑formatted, e.g. 1.23M, 45K, etc.)
R-Multiple: your current R (e.g., 0.7R, 1.5R, 3.2R)
TRAILING STOP: the current trailing stop price
ACTION: a suggested action string, for example:
🚫 TRAILING HIT -> EXIT NOW!
🚀 RUNNING PROFIT (x.xR) -> Hold or Trim
✅ IN PROFIT (x.xR) -> Move SL to BE
⚠️ DRAWDOWN -> Watch Trailing Stop
🟢 BREAKEVEN -> Holding
The text color changes (red, green, yellow, orange, etc.) to match the situation, so you can read your trade status at a glance.
4. How to use it in practice
Step 1 – Right after entering a trade
Open a position using your own entry strategy (Commander does not give entries).
On the TradingView chart:
Set Position Active? = true
Fill:
Avg Entry Price = your actual entry
Initial Stop Loss = your planned hard stop
Position Size = the size of your position
Adjust:
Trailing Width (xATR):
Lower for tight, short‑term trades (scalp/intraday).
Higher for swing/position trades to avoid premature exits.
Turn Show R-Levels ON if you trade in terms of R.
Now the script will start drawing the Trailing Stop, Safe Zone, R levels, and Dashboard.
Step 2 – While the trade is running
When price moves in your favor:
Track:
Your current R-Multiple
How much Safe Zone you have
Typical logic:
Once you reach ≥ 1R, consider moving your hard stop to breakeven (BE).
Around 2R–3R, consider:
Taking partial profits
Tightening the trailing
Letting the remainder run with the Shield.
When price pulls back:
If price breaks below the Trailing Stop:
Dashboard shows the red warning: TRAILING HIT -> EXIT NOW!
The alert (if enabled) will also fire.
→ This is your disciplined exit condition according to Commander.
When price hovers near entry:
Dashboard shows BREAKEVEN or DRAWDOWN.
You can:
Give the setup more time
Or decide to scratch the trade if it no longer fits your plan
(The key is: you’re deciding based on a clear snapshot, not pure emotion.)
5. Alerts
The script contains one key alert:
XΩ EXIT SIGNAL
Triggers when price crosses under the Trailing Stop.
Message: "Price breached Trailing Stop. Exit position immediately!"
Use this alert to automate your exit discipline: you don’t need to stare at the chart to know when your trailing stop is hit.
Multi-Account Lot Calculator (@JP7FX)Multi-Account Lot Calculator (JP7FX)
Multi-Account Lot Calculator shows a single trade idea across multiple accounts and currencies. It builds a panel on the chart that displays risk per account and the lot size needed for a chosen stop distance and R multiple.
Trade and asset settings
You define the shared trade settings once: direction (long or short), stop loss distance in pips, risk to reward, and entry price or use close.
The script supports Forex, stock, crypto, XAU/USD and index/CFD, with automatic or manual pip size and contract size. It also includes inputs for index point size and value per point when using index or CFD symbols.
Entry, SL and TP visuals
The script plots entry, stop loss and take profit lines on the chart.
Labels can show the exact prices and the R multiple for the take profit.
Optional zones between entry and SL, and entry and TP, can be drawn on the right side of the chart.
A lock feature lets you freeze the trade window and price levels manually or when price touches entry. When locked, the script can keep zones visible using line fills and can auto extend the right edge as new bars print.
Multi account panel
Up to six accounts can be configured at the same time.
For each account you can set:
• a custom name
• account balance
• account currency (USD, EUR, GBP, AUD, NZD, CAD, CHF, JPY)
• risk mode (percent or cash)
• preset risk percent or fixed cash risk
The panel calculates, per account:
• risk amount in that account’s currency
• lot size for the given stop loss distance
Currency conversion
Risk and lot sizing use the symbol’s quote currency and convert it into each account currency with request.currency_rate.
A fallback conversion rate can be set if live data is not available.
Table layout and style
The on-chart table shows columns for Account, CCY, Balance, Mode, R%, Risk Amt and Lot.
You can choose the panel position, border width, title and subheader colours, row colours and optional zebra rows.
Use cases
This tool is intended for traders who run several accounts or prop firm accounts in different currencies and want a single view of position size per account for the same trade idea.
BEM Scalping & Trend Continuation ToolThe BEM Scalping & Trend Continuation Tool highlights 3-candle pullback structures into moving averages and visualizes potential continuation areas within ongoing trends. The script includes two pullback detectors using configurable moving averages, a trend-direction average, VWAP, signal markers, and dynamic swing-level tracking. These elements are designed to support visual analysis of short-term momentum, pullbacks, and structural behavior across different markets and timeframes.
How It Works:
The script identifies descending 3-bar patterns (for bullish pullbacks) and ascending 3-bar patterns (for bearish pullbacks). Pullbacks are highlighted when they interact with a selected moving average and meet additional structural criteria. Optional markers plot when such patterns occur.
Swing levels are detected using pivots, extended forward, and removed when invalidated.
Intended Use:
This tool supports discretionary and rule-assisted chart analysis by highlighting pullbacks, trend context, and market structure. It does not generate predictions or financial advice, and its signals do not imply performance or outcomes.
⭐ Core Features
1️⃣ Highlighted Pullback Bars (Fast + Deep Retracements)
The tool uses two customizable moving averages:
MA1 (default 9) → Fast trend pullback
MA2 (default 45) → Deeper retracement pullback
The script highlights candles when the price creates a structured 3-bar pullback into either moving average. Colors automatically reflect bullish or bearish continuation conditions.
2️⃣ Trend Direction Filter
A longer moving average (default 102) provides directional bias.
This helps traders visually stay aligned with the dominant trend.
3️⃣ VWAP Integration
VWAP is included as a dynamic institutional support/resistance level.
Useful for intraday bias, mean reversion, and trend continuation confluence.
4️⃣ Automated Pullback Signals
Triangle signals appear when a pullback meets all conditions:
Bullish/Short-term long
Bearish/Short-term short
Deep Bullish pullback (MA45)
Deep Bearish pullback (MA45)
These optional markers provide clear visual confirmation.
5️⃣ Smart Swing Lines (Auto-Structure Tracking)
Swing highs and lows are automatically detected and projected forward.
Broken levels self-remove to keep the chart clean.
Great for structure trading, liquidity analysis, and break-of-structure confirmation. To help identify the best possible scenario for the trend continuation pullback work A+.
🔍 How the Pullback Logic Works
The BEM Scalping & Trend Continuation Tool uses a 3-bar structural pattern:
Bullish Pullback Pattern
The High of the first candle needs to be higher than the second one, and the high of the second needs to be higher than the third, moving down in a pullback to the moving average.
Price wicks into MA
Open above MA (rejection)
Continuation expected upward
Bearish Pullback Pattern
The Low of the first candle needs to be lower than the second one, and the low of the second one needs to be lower than the third one, moving upward to the moving average.
Price wicks into MA
Open below MA (rejection)
Continuation expected downward
Bars are highlighted in different colors based on MA1(fast) or MA2(slow and deeper) pullback.
📘 How to Trade the System (Optional Use Case)
(Not predictive; for discretionary workflow support.)
LONG Scenario
Price above Trend MA
Price above VWAP (optional confluence)
Gold (MA9) or Blue (MA45) bullish pullback highlight
Bullish triangle plotted
Entry: candle close or break of signal candle high
Stop: below MA or swing low
Target: next liquidity level, swing high, or trail with MA9
SHORT Scenario
Price below Trend MA
Price below VWAP
Purple (MA9) or Deep Violet (MA45) bearish pullback highlight
Bearish triangle plotted
Entry: candle close or break of signal candle low
Stop: above MA or swing high
Target: next swing low or break structure
*
This tool is for charting and better visualization of pullback and trend continuation only.
It does not guarantee profits.
Always combine with proper risk management.
DCA Ladder CalculatorThis script is a DCA (Dollar-Cost Averaging) Ladder Calculator with Risk & Leverage Management baked in.
It’s designed for both LONG and SHORT positions, and helps you:
🎯 Strategically scale into positions across multiple entry points
🔐 Control risk exposure via defined capital allocation
⚖️ Utilize leverage responsibly — for efficiency, not destruction
🧮 Visualize risk, stop loss level, and entry distribution
🔁 Adapt to trend reversals or key zones, especially when combined with reversal indicators or higher timeframe signals
🧠 How It Works
This tool takes a capital allocation approach to building a ladder of positions:
1. You define:
- Portfolio value
- Risk per trade (as %)
- Leverage
- Number of DCA levels
- Entry multiplier (e.g. 1x, 2x, 4x...)
2. The script then:
- Calculates total margin to risk = Portfolio × Risk %
- Calculates total leveraged position size = Margin × Leverage
- Distributes entries according to exponential weights (1x, 2x, 4x...), totaling 7 for 3 levels
- Calculates per-entry:
- Entry price (based on price zone spacing)
- Multiplier
- Exact margin per entry
- Leverage per entry (margin × leverage)
- Computes:
- Average entry price (margin-weighted)
- Approximate stop loss level based on recent ATR and price structure
- % drawdown to SL
- Total margin and position size
3. Displays all this in a clean on-chart table.
📈 How to Use It
1. Apply the indicator to a chart (default: 1D — ideal for clean zones).
2. Configure your:
- Portfolio Value (total trading capital)
- Risk per Trade (%) (your acceptable loss)
- Leverage (exchange or strategy-based)
- DCA Levels (e.g. 3 = anchor + 2 entries)
- Multiplier (typically 2.0 for doubling)
3. Choose LONG or SHORT mode depending on direction.
4. The table will show:
- Entry price ladder
- Margin used per entry
- Total position size
- Approx. stop loss (where your full risk is defined)
Use in conjunction with price action, S/R zones, trendline breaks, volume divergence, or reversal indicators.
✅ Best Practices for Using This Tool
- Leverage is a tool, not a weapon. Use it to scale smartly — not recklessly.
- Use fewer, higher-conviction entries. Don’t blindly ladder; combine with price structure and signals.
- Stick to your risk percent. Never risk more than you can afford to lose. Let this calculator enforce discipline.
- Combine with other confirmation tools, like RSI divergence, momentum shifts, OB zones, etc.
- Avoid martingale-style over-exposure. This is not a gambling tool — it’s for capital efficiency.
🛡️ What This Tool Does NOT Do
- This is not a trade signal indicator.
- It does not place trades or auto-manage positions.
- It does not replace personal responsibility or strategy — it's a tool to help apply structure.
⚠️ Disclaimer
This script is for educational and informational purposes only.
It does not constitute financial advice, nor is it a recommendation to buy or sell any financial instrument.
Always consult a licensed financial advisor before making investment decisions.
Use of leverage involves high risk and can lead to substantial losses.
The author and publisher assume no liability for any trading losses resulting from use of this script.






















