Multi Channel GRID & DCA LTF [trade_lexx]Multi Channel GRID & DCA LTF
Usage Guide
Part 1: The concept and general possibilities of the "Multi Channel GRID & DCA LTF" strategy
Introduction
Welcome to the guide to "Multi Channel GRID & DCA LTF", a powerful and versatile automated trading strategy for the TradingView platform. This tool was developed for traders who are looking for flexibility, control and a high degree of adaptability to various market conditions.
The strategy is based on a hybrid approach that combines two popular and time-tested techniques.:
1. GRID (grid trading): The classic method of averaging a position is by placing a grid of limit orders.
2. DCA (Dollar Cost averaging): Smart position averaging based on signals from external indicators.
However, "Multi Channel GRID & DCA LTF" goes far beyond the simple combination of these two techniques. The strategy includes a number of unique and innovative features, such as cascading MultiGRID grids for dealing with extreme volatility, Channel Mode range trading mode for profiting from sideways movement, and Low Time Frame analysis (LTF) to achieve surgical accuracy in backtesting. Deep customization options for risk management, capital, take profits, and stop losses allow you to configure a strategy for almost any trading style, asset, and timeframe.
The basic idea: How does it work?
Let's take a detailed look at each of the key concepts embedded in the logic of the strategy.
1. GRID — Automatic placement of buy and sell orders at certain price intervals.
This is a fundamental mode of operation. Its main goal is to systematically improve the average entry price for a position if the market is going against you.
* The principle of operation: After opening the base (first) order (`BO`), the strategy automatically places a series of pending limit orders (here they are called "safety orders" or "SO") at certain price intervals. For a long position, orders are placed below the entry price, and for a short position, orders are placed higher.
* Target: When the price moves against an open position, it consistently hits and executes safety orders. Each such execution adds additional volume to the position at a more favorable price, thereby shifting the overall average entry price (`position_avg_price') closer to the current market price. This means that a much smaller corrective movement will be required to gain ground.
* Flexibility: You have full control over the geometry of the grid: the number of safety orders, the percentage distance between them (`SO Step`), and you can even set a coefficient that will increase this step for each subsequent order (`SO Multiplier`), creating an expanding grid.
2. DCA (Signal Averaging) — Smart Averaging
This mode adds an additional layer of analysis to the averaging process. Instead of just buying/selling at the set price levels, the strategy waits for a confirmation signal.
* Working principle: You can connect any external indicator (for example, RSI, CCI, or even your own complex signal system) to the strategy, which outputs numerical values. As standard, 1 is used for a long signal, and -1 is used for a short signal. The strategy will place the next averaging order only at the moment when it receives the appropriate signal.
* Goal: To average a position not just during a fall (or a rise for a short), but at the moments that your main trading system considers the most favorable for this. This allows you to avoid "catching falling knives" and enter only if there are good reasons.
3. Hybrid Mode (GRID+DCA) is the best of the previous two modes
This mode is designed for maximum filtering and control. It requires two conditions to be fulfilled simultaneously.
* Working principle: The safety order will be executed only if the price has reached the calculated grid level and a confirmation signal has been received from your external indicator. If a confirmation signal is received from an external indicator, the next calculated grid level activates the limit order.
* Goal: To create the most reliable averaging system that protects against premature entries and requires double confirmation (both by price and indicator) before increasing the position size.
4. MultiGRID — Adaptation to extreme volatility
This is one of the most powerful and unique features of a strategy designed to survive and make a profit in the face of strong, protracted trends or "black swans".
* The problem it solves: The usual grid of orders has a limited depth. If the price goes beyond the last safety order, the strategy loses the opportunity to average and becomes vulnerable.
* The principle of operation: The MultiGRID function allows you to create "cascades" — several grids following one another. When all the orders of the first grid are executed, the strategy does not stop. Instead, she can activate the second, third (and so on) a grid of orders. The new grid can be activated by one of two triggers:
1. Offset: The new grid is activated when the price passes another set percentage deviation from the last executed order.
2. Signal: The new grid is activated when a signal is received from an external indicator.
* Goal: To significantly expand the working range of the strategy. This allows it to adapt to strong market movements that would "break" the usual grid, and continue to effectively average a position at a much greater depth of decline or growth.
5. Channel Mode — Trading in the range
This feature turns a standard averaging strategy into a machine for "farming" profits within a price channel that is formed during a sideways market movement.
* The problem it solves: In the standard grid strategy, after partially closing a take profit position, the volume of this part "leaves" the trade until the deal is fully closed. You are missing the opportunity to reuse this capital.
* Operating principle: When Channel Mode is enabled, the following happens. Suppose the price went against you, executed several safety orders, and then turned around and reached one of the partial take profits. At this point, the strategy is:
1. Fixes the profit, as it should be.
2. Instantly places a new limit order to buy (or sell for a short) at exactly the same price level where the last triggered safety order was executed. The volume of this order is equal to the volume of the part that was just closed for take profit.
3. If the price goes down again and executes this "repeat" order, the strategy immediately sets a corresponding take profit for it at the level where the previous profit was taken.
* Goal: To create a continuous buy-sell cycle within the local range (channel). The lower limit of the channel is the price of the last averaging, and the upper limit is the price of a partial take profit. This allows you to repeatedly profit from sideways price fluctuations, without waiting for the full closure of the main, large transaction.
6. LTF (Lower Timeframe Analysis) — Surgical precision of backtesting
This feature is critically important for obtaining reliable results during historical testing (backtesting) of grid strategies.
* The problem it solves: The standard testing mechanism in TradingView has a serious limitation. Working, for example, on a 4-hour chart, he sees only 4 candle points: Open, High, Low and Close. He does not know in what order the price moved within these 4 hours. He could have touched High first and then Low, or vice versa. For grid strategies, this is fatal — the engine can show that a take profit has been executed, although in reality the price first went down, collected the entire grid of orders and only then turned around.
* How it works: When you turn on the LTF mode, the strategy for each candle on your main chart (for example, 4H) requests and analyzes all candles from the lower timeframe you specified (for example, 1-minute). Then it virtually trades the entire price path for these minute candles, executing orders, take profits and stop losses in the sequence in which they would occur in reality. It works in the single take profit mode of the Grid strategy.
* Goal: To provide the most realistic and reliable backtest that reflects the real dynamics of the market. This allows you to avoid false expectations and accurately assess the potential performance of the strategy.
// ------------------------
Part 2: Detailed description of the strategy settings
This section is your main guide to all the switches and options available in the strategy. Understanding each setting is the key to unlocking the full potential of this powerful tool.
1. 🛡️ Risk Management 🛡️
This group contains fundamental parameters that determine the basic logic of risk management and the geometry of grid orders.
* Strategy type: Determines the direction of transactions.
* Long: The strategy will only open long positions (buy).
* Short: The strategy will only open short positions (sell).
* Both: The strategy will work both ways, opening long or short depending on the incoming signal.
* SO Count: Sets the maximum number of Safety (averaging) Orders (SO) that the strategy will place within the same grid. If you have MultiGRID enabled, this number applies to each individual grid.
* SO Step (%): This is the base percentage deviation from the entry price at which the first safety order will be placed. For example, at a value of 0.5, the first SO in a long trade will be placed 0.5% lower than the opening price of the base order.
* SO Multiplier: A coefficient that exponentially increases the step for each subsequent safety order. This allows you to create an expanding grid where averaging orders are placed further and further apart, which is effective with strong and accelerating price movements.
* *The step formula for the nth order*: Step(N) = (SO Step) * (SO Multiplier ^(N-1)).
* If the value is 1, all steps will be the same.
* With a value of 1.6, the step of the second SO will be 1.6 times larger than the first, the step of the third will be 1.6 times larger than the second, and so on.
* 1️⃣ TP/SL: These are simplified settings for quick configuration. They allow you to turn on/off the main take profit and stop loss and set basic percentage values for them. More detailed settings for these parameters can be found in the relevant sections below.
// ------------------------
2. 💰 Money Management 💰
Everything related to position size, leverage, and capital is configured here.
* Volume BO (Base Order): Determines the size of the trade's opening order.
* Volume BO: A fixed amount in the quote currency (for example, in USDT).
* USDT (check mark): Manages the information in the comments to the orders. If enabled, the volume of orders in USDT will be displayed in the comments. This is convenient for visual analysis and for sending the amount of USDT by the placeholder {{strategy.order.comment}} via webhooks when connecting the strategy to the exchange or trading terminals.
* or % of deposit: The amount calculated as a percentage of the available capital of the strategy. The check mark to the right of this field enables this mode. Important: using a percentage activates the effect of compounding (compound interest), as the amount of each new transaction will be automatically recalculated based on the current capital (initial capital + profit/loss). If enabled, the percentage of orders will be displayed in the comments. This is convenient for visual analysis and for sending percentages on the placeholder {{strategy.order.comment}} via webhooks when connecting the strategy to the stock exchange, trading terminals, or creating Copy trading.
* Martingale: The coefficient applied to the volume of orders. It increases the size of each subsequent insurance order compared to the base one.
* Volume formula for the nth SO: Volume SO (N) = (Volume BO) * (Martingale^N).
* With a value of 1.2, the volume of the first SO will be 1.2 times greater than the base, the second — 1.44 times (`1.2 * 1.2`) and so on.
* Leverage: Specify the size of your leverage. This parameter is used exclusively for calculating and displaying the approximate liquidation price. It does not affect the size of positions, but it helps to visually assess the risks.
* Liquidation: Enables or disables the calculation and display of the liquidation line on the chart.
* Margin type: Allows you to select a method for calculating the liquidation price, simulating the logic of exchanges:
* Isolated: The liquidation price is calculated based on the size and leverage of the current open position only.
* Cross: The calculation simulates using the entire available balance to maintain a position. In the strategy, the liquidation price is calculated as the level at which the loss on the current transaction is equal to the current capital.
* Commission (%): Specify the percentage of your exchange's commission per transaction. The correct value of this parameter is crucial for obtaining realistic backtest results.
// ------------------------
3. 🕸️ Grid Management 🕸️
This group is responsible for the logic of safety orders and advanced mechanics such as Channel Mode and MultiGRID.
* SO Type: Defines the logic of placing averaging orders.
* GRID: Classic grid. All safety orders are placed in advance as limit orders.
* DCA: Signal averaging. The strategy is waiting for a signal from an external indicator to place a market averaging order.
* GRID+DCA: Hybrid. The strategy waits for a signal, and if it arrives, places a limit order at the appropriate price level of the grid or executes a market order if the signal has arrived below the limit order level.
* Signal for SO: A data source (indicator) that will be used for signals in DCA and GRID+DCA modes.
* ↔️ Channel Mode: When this option is enabled, the strategy tries to trade in a sideways range. After partially closing a take profit position, it immediately places a limit order for re-entry at the price of the last triggered safety order. This creates a buy-sell cycle within the local channel.
* Best Price Only: This filter adds an additional condition for averaging in DCA and MultiGRID modes (when it operates on a signal). The next averaging order or a new grid will be activated only if the current price is more favorable (lower for long, higher for short) than the price of the previous entry.
* 🧩 MultiGRID ⮕ Enables cascading grid mode.
* Grid Count: The total number of grids that can be activated sequentially.
* Offset: Percentage deviation from the price of the last order of the previous grid. When this margin is reached, the following grid of orders is activated (this mode does not require a signal).
* Or signal: Allows you to use the signal from an external indicator as a trigger to activate the next grid. The checkmark on the right turns on this mode.
// ------------------------
4. 🎯 Entry and Stop 🎯
This group of settings allows you to fine-tune the conditions for starting a new trade and all aspects related to protective stop orders, including the complex mechanics of trailing and managing SL after partial take profits.
* 🎯 Signal: A data source (indicator) that will be used to determine when to enter a trade. The strategy expects a value of 1 for the start of a long trade and -1 for a short trade.
* Min Bars: Sets the minimum number of candles that must pass from the moment of opening the previous trade to the moment of opening the next one. A value of 0 disables this filter. This is a useful tool to prevent overly frequent entries in a "noisy" market.
* Non-stop: If this option is enabled, the strategy ignores the Entry Signal and opens a new trade immediately after closing the previous one (taking into account the Min Bars filter, if it is set). This turns the strategy into a constantly working mechanism that is always on the market.
* 🛑 SL Type: Defines the base price from which the stop loss percentage will be calculated. The stop loss in the first section must be enabled for this block of settings to work.
* From the entry point: SL is always calculated from the opening price of the very first base order. It remains static throughout the entire transaction unless it is moved by other functions.
* From breakeven line: SL is dynamically recalculated and shifted each time a safety order is executed. It always follows the average price of the position, being at a given percentage distance from it.
* From last executed SO: SL is recalculated from the price of the last executed order, whether it is a base or a safety order.
* From last SO: SL is calculated from the price of the most recent possible safety order in the grid. This is usually the most remote and conservative type of SL.
* Trailing SL Type: Defines the algorithm by which the stop loss will move after its activation.
* Standard: Classic trailing. After activation, SL will follow the price at a fixed distance.
* ATR: SL will follow the price at a distance equal to the value of the ATR indicator multiplied by the specified multiplier.
* External Source: SL will follow any selected line of the third-party indicator.
* Period and Multiplier: Common parameters for all types of trailing.
* Source: The source of the line for the trailing SL of the third-party indicator.
* Trailing SL after entry: The mode of activation of the trailing SL after entering the transaction
* SL management after TP (sections 1️⃣, 2️⃣, 3️⃣): These three blocks allow you to create a complex stop loss management logic as profits are recorded.
For each take profit level (TP1, TP2, TP3), you can configure:
* SL BE / SL TP1 / SL TP2: When the corresponding TP is reached, the stop loss will be moved to the breakeven point (for TP1), to the TP1 price level (for TP2) or to the TP2 price level (for TP3).
* Trailing SL: When the corresponding TP is reached, the trailing stop loss is activated according to the settings above.
* By ↔️ Signal: A very powerful option. If it is enabled, the above action (SL transfer or trailing activation) will occur when the opposite trading signal is received from an external indicator. This allows you to protect profits or reduce losses if the market turns sharply, even before reaching the target.
* SL Delay ⮕ Allows you to delay the activation of the stop loss.
* Number of Bars: The Stop loss will be physically placed on the market only after the specified number of candles has passed since entering the trade. This can help to avoid "taking out" the stop with a random short movement (squiz) immediately after opening a position.
* SL Block: Unique defensive mechanics for trading both ways (`Strategy Type: Both`).
* Number of SL: If the strategy receives the specified number of stop losses in a row in one direction (for example, 2 stops long), it temporarily blocks the opportunity to open new trades in that direction.
* Lock Reset mode:
* By direction: The lock is lifted if a profitable trade is closed in the allowed direction or if a stop loss is triggered in the opposite direction.
* First profit: The lock is lifted after closing any profitable transaction, regardless of its direction.
// ------------------------
5. ✅ Take Profit ✅
This group of settings provides comprehensive control over profit taking, from a simple take profit to a complex system of partial closures and trailing.
* ✅ TP Type: Defines the base price for calculating the percentage deviation of the take profit.
* From entry point: TP is calculated from the base order price.
* From breakeven line: TP dynamically follows the average position price.
* From last executed SO: TP is calculated from the price of the last executed order.
* Filters for closing on signal
* Only ➕: If TP is triggered by a signal, the deal will be closed only if it is in the black relative to the average price.
* Or >TP: If TP is triggered by a signal, the trade will be closed only if the closing price is better than (or equal to) the estimated price of this TP.
* TP type of trailing: Yes, take profit has a trailing too! It works differently than the SL trailing.
* Standard / ATR: After the price touches the "virtual" TP level, the trailing is activated. He does not place a stop order, but begins to move away from the price, dynamically moving the limit order to close further and further in the profitable direction, allowing him to collect the maximum from the impulse movement.
* External Source: TP will follow any selected line of the third-party indicator.
* Period and Multiplier: Parameters for calculating the trailing margin TP.
* Source: The source of the line for the trailing TP of the third-party indicator.
* TP level settings (sections 1️⃣, 2️⃣, 3️⃣, 4️⃣): The strategy supports up to four independent take profit levels, which allows for a flexible system of partial commits.
For each level, you can set:
* TP: Enable the level and set its percentage deviation from the base price.
* Size: What percentage of the current position will be closed when this level is reached. For the last active TP, this parameter is ignored, and 100% of the remaining position is closed.
* Trailing TP: Enable the above-described trailing mechanism for this particular level.
* Signal: Enable closing based on the signal from the external indicator for this level.
* Or take: If both the closing on the signal and the limit order are enabled, then whatever comes first will work.
* After SO: Activate this TP level only after the specified number of safety orders has been executed. This allows you to set closer targets for riskier (deeply averaged) positions.
// ------------------------
6. 🔬 GRID and MultiGrid Analysis on Lower TFs (LTF) 🔬
This group activates one of the most important functions for accurate testing of grid strategies.
* Enable LTF Calculation ⮕ The main switch of the analysis mode on the lower timeframes.
* Timeframe selection: A drop-down list where you can select a timeframe for detailed analysis. For example, if your main schedule is 1 hour, you can select 1 minute here. The strategy will emulate the trading of minute candles within each hour candle.
❗️Important: As mentioned in the first part, the use of this mode is critically necessary to obtain realistic backtest results, especially for strategies with a dense grid of orders. Without it, the results may be overly optimistic and not reflect the real dynamics of the market. It should be remembered that TradingView imposes a limit on the number of intra-bars (minor TF bars) that can be requested. This is usually about 100,000 bars.
// ------------------------
7. 🕘 Backtest Date Range 🕘
This group allows you to focus testing on a specific historical period.
* Limit Date Range: Enables date filtering.
* Start time: The date and time when the strategy will start analyzing and opening deals.
* End time: The date and time after which the strategy will stop opening new deals and complete testing.
// ------------------------
8. 🎨 Visualization 🎨
All the options responsible for the appearance and information content of the chart are collected here.
* Show PnL labels: Enables/disables the display of text labels with the result (profit/loss) after closing each trade.
* Statistics Table: Enables/disables the main dashboard with detailed statistics on the results of the backtest.
* Strategy Settings Table: Enables/disables an additional panel that summarizes all the key parameters of the current configuration.
* Monthly Profit Table: Enables/disables a table with a breakdown of percentage returns by month and year.
* Table settings: For each of the three tables, you can individually adjust the Text size and Table Position on the screen to position them as conveniently as possible.
* Decimal places: Defines how many decimal places will be displayed in numeric values in tables and on labels.
// ------------------------
9. ✉️ Webhook Settings ✉️
This group is intended for traders who want to automate trading on strategy signals using third-party services and exchanges (for example, 3Commas, WunderTrading, Cryptorobotics, Cryptohopper, Bitsgap, Binance, ByBit, OKX, Pionex, Bitget or proprietary solutions).
For each key event in the strategy, there is a separate switch and a text field:
* Webhook for Open: Enable and set a message for the webhook that will be sent when the base order is opened.
* Webhook for Averaging: A message sent when executing any insurance order.
* Webhook for Take Profit: A message sent when closing on take profit (including partial ones).
* Webhook for Stop-Loss: A message sent when a stop loss is closed.
You can insert a JSON code or any other message format that your service requires for automation into the text fields. The strategy supports special placeholders (for example, `{{strategy.order.alert_message}}`), which allow you to dynamically insert the necessary data into the message, such as the amount of USDT or the percentage of the deposit for entry, averaging and take profit orders.
Forecasting
Credit Spread Alpha SignalCredit Spread Alpha Signal: Complete Description
Introduction and Purpose
The Credit Spread Alpha Signal is a custom indicator developed for TradingView, designed to monitor the credit spread between High Yield (HY) bond yields and the 10-Year US Treasury yield (US10Y). This indicator serves as an advanced macroeconomic tool for traders and investors, helping to identify shifts in risk sentiment, monetary policy adjustments, or financial stress in the economy. It combines credit market data with statistical analysis to generate inverted buy and sell signals, where wider spreads (deteriorated conditions) are seen as buy opportunities (green), and tight spreads (risk-on) as sell opportunities (red).
The script is original, inspired by macroeconomic concepts, and visualizes data intuitively with histograms, background colors, and signal arrows. It is particularly useful for portfolio traders seeking confirmation signals or early warnings, integrating seamlessly into charts of stocks, bonds, or crypto assets.
Key Concepts
- HY Spread : Calculated as the difference between the High Yield Corporate Effective Yield (symbol: BAMLH0A0HYM2EY) and the US10Y Yield. Wider spreads indicate higher credit risk and economic deterioration (buy opportunity in the inverted logic). Tight spreads reflect market optimism (risk-on, sell opportunity).
- Inverted Signal Logic : Unlike traditional interpretation, here widening spreads (stress) trigger green and buy arrows (↑ below the chart), suggesting entry into long positions during panics. Compressing spreads trigger red and sell arrows (↓ above the chart), indicating exit during optimism peaks.
- Visual Highlights : Green for spread > +2.2σ (financial stress, buy); Red for spread < low threshold (risk-on, sell); Optional orange for recession risk (inverted curve + high spread, strong buy).
The indicator uses statistics like simple moving average (SMA) and standard deviation for dynamic thresholds, making it adaptable to different market periods.
How It Works: Internal Calculations
1. Data Sources : Uses `request.security` to fetch daily data ("D") from US10Y, US02Y (for inverted curve), and HY Yield.
2. Spread Calculation : `spread_hy = hy_yield - us10y`.
3. Statistics :
- Average (SMA) of the spread over the last `sma_length` days (default: 120).
- Standard deviation (stdev) over the same period.
- High threshold: `avg_spread_hy + std_mult * std_spread_hy` (default: multiplier 2.2).
- Low threshold: Editable value (default: 1.5%).
4. Conditions :
- High stress (green/buy): `spread_hy > high_threshold`.
- Compression (red/sell): `spread_hy < low_threshold`.
- Recession risk (orange/strong buy, optional): Inverted curve (`us10y < us2y`) + spread > `recession_spread_threshold`.
5. Crossings for Signals :
- Buy (green ↑ below): Crossover above high threshold (`ta.crossover`).
- Sell (red ↓ above): Crossunder below low threshold (`ta.crossunder`).
These calculations are processed bar by bar, ensuring real-time updates.
Visual Elements
- Histogram : Plots the spread as columns (`plot.style_columns`), dynamically colored: Light green (90% transparency) for stress/buy; Light red (90%) for compression/sell; Gray for neutral; Orange for recession.
- Reference Line : Horizontal red line at zero for benchmark.
- Background Coloring : Applies color to the main chart (overlay=true via force_overlay): Light green for buy, Light red for sell, Orange for recession, no color for neutral.
- Signal Arrows : ↑ Green below the bar for buy (widening_cross); ↓ Red above the bar for sell (compressed_cross).
- Floating Legend : Label in the lower panel explaining thresholds and conditions, dynamically updated with editable values.
Editable Settings (Inputs)
- SMA Period (days) : Default 120; adjusts the horizon for average and standard deviation.
- Standard Deviation Multiplier : Default 2.2; sets sensitivity of the high threshold (e.g., 2.2σ for moderate alerts).
- Low Threshold for Compression (%) : Default 1.5; level to detect risk-on/sell.
- Enable Recession Risk? : Default false; activates combined condition of inverted curve + high spread.
- Spread Threshold for Recession (%) : Default 2.0; level for recession (visible if enabled).
These inputs allow customization via the TradingView interface, without editing the code.
Integrated Alerts
The indicator includes alert conditions (`alertcondition`) for notifications in TradingView:
- "ALERT: HY Spread High": Spread exceeds threshold - financial stress (Buy).
- "ALERT: HY Spread Compressed": Spread compressed - risk-on conditions (Sell).
- "ALERT: HY Spread Widening (Buy)": Crossover above - buy opportunity in stress.
- "ALERT: HY Spread Compressed (Sell)": Crossunder below - sell opportunity in risk-on.
- "ALERT: Recession Risk (Strong Buy)": Inverted curve + high spread - high recession risk, consider buy (if enabled).
Set up alerts for email, SMS, or webhook notifications.
Usage Tips and Considerations
- Recommended Timeframe : Daily ("D"), but works on others; data is forced to daily for consistency.
- Practical Application : Add to charts of indices like SPY or QQQ to correlate with market moves. Test on historical periods (e.g., 2020 for widening, 2021 for compressing) to validate signals.
- Limitations : Relies on external data (US10Y, HY Yield), which may have delays; spreads are typically positive. Not financial advice – use with complementary analysis.
- Advanced Customization : Adjust thresholds for volatile markets; enable recession for more robust macro signals.
This indicator transforms credit data into actionable alpha, helping navigate economic cycles with visual precision. For support or modifications, refer to the source code or TradingView community.
Swing Averages & Next Swing Forecast Swing Averages & Next Swing Forecast
What it does:
Finds confirmed swing highs/lows, keeps only “significant” legs (default ≥ $0.10), then computes average up/down leg sizes and projects the next swing low and next swing high. Optionally runs calculations on a higher timeframe (HTF) while plotting on your current chart.
20W SMA (true 20W or 140D match)Modified SMA to reflect true 20W Smooth Moving Average.
Choose between different TF's and the price remains the same
Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Filter)📊 Auto Entry/SL/TP Zones + Dashboard (with MACD Filter)
This indicator automatically builds Entry, Stop Loss, and Take Profit zones based on price action and Fibonacci extensions.
It also provides a dashboard with real-time market conditions and signals.
🔑 Features:
Automatic Zones:
Entry point is set when a trading signal appears.
Stop Loss is placed at the nearest local support/resistance.
Take Profit levels (TP1, TP2, TP3) are calculated using Fibonacci multipliers (0.618, 1.0, 1.618).
Signal Logic (Multi-confirmation):
✅ RSI (Relative Strength Index)
✅ SMA50 trend filter
✅ MACD confirmation (histogram & signal line alignment)
Dashboard Panel:
RSI value with dynamic color zones
Trend direction (Up / Down / Sideways)
Divergence (Bullish / Bearish)
Volume state (High / Low / Neutral)
MACD status
Final signal: LONG / SHORT / WAIT
Visual Objects on Chart:
Colored zones for Entry, Stop Loss, and TP levels
Labels with price levels (Entry, SL, TP1, TP2, TP3)
🎯 How to Use:
Wait for a signal (LONG or SHORT).
Zones (Entry, SL, TP1-TP3) will automatically appear on the chart.
Use the dashboard to confirm market conditions.
Enter only if RSI, Trend, and MACD confirm the same direction.
Manage your position using TP levels or add your own Trailing Stop.
⚠️ Notes:
Works on any timeframe and any market (Forex, Crypto, Stocks).
The strategy is not a trading bot – it’s an assistant to help identify optimal entries and exits.
Always combine with risk management and your own market analysis.
👉 If you like this tool – add it to favorites and use it in your trading setup! 🚀
Forex 60m Simple Scanner + RSI Divergence“Forex 60m Simple Scanner + RSI Divergence”
This scanner helps beginner traders quickly identify trade opportunities across the top 10 forex pairs. It combines a simple EMA crossover system with an optional RSI filter to confirm trend direction, and adds RSI divergence detection to spot potential reversals early.
The built-in table shows each pair’s trend, RSI value, buy/sell signal, and divergence status—all in one place.
For beginners, this makes it easier to:
Avoid flipping between multiple charts.
See clear BUY/SELL 🚀 signals instead of guessing.
Spot high-probability setups with RSI divergence markers (😊/☹️).
It simplifies decision-making by turning complex signals into a straightforward dashboard that highlights where attention is needed most.
Forex 5m Simple Scanner + RSI DivergenceHello everyone. this is a easy to use indicator.
I wanted something very easy to visualize and understand. Great for the beginner's.
About this script:
“Forex 5m Simple Scanner + RSI Divergence”
This scanner helps beginner traders quickly identify trade opportunities across the top 10 forex pairs. It combines a simple EMA crossover system with an optional RSI filter to confirm trend direction, and adds RSI divergence detection to spot potential reversals early.
The built-in table shows each pair’s trend, RSI value, buy/sell signal, and divergence status—all in one place.
For beginners, this makes it easier to:
Avoid flipping between multiple charts.
See clear BUY/SELL 🚀 signals instead of guessing.
Spot high-probability setups with RSI divergence markers (😊/☹️).
It simplifies decision-making by turning complex signals into a straightforward dashboard that highlights where attention is needed most.
Exit SIGNALWhen an asset is overbought, using various methods, CCI, RSI, etc, this indicator paints candles red to signify that a potential top is forming. It is normal when the trend is very strong to see 2 or 3 candles turn red before the top is in. I like to use this to narrow down when to take profits. It's not the most sophisticated and fancy script but it gets it's job done well. :]
If you have any questions about the indicator or wish to try it out yourself for free, comment below or DM me, thanks!
Building a profitable strategy is all about combining various factors, I'm a hybrid trader meaning I mostly learned to trade with price action and smart money concepts only at first however I then learned pinescript and added my own indicators I have personalized to create various strategies, especially when it comes to helping me know when trend has reversed as soon as possible with as little false flags as possible.
MarketSurge EPS Line [tradeviZion]MarketSurge EPS Line
EPS trend line overlay for TradingView charts, inspired by the IBD MarketSurge (formerly MarketSmith) EPS line style.
Displays EPS trend line on price charts
Uses 4-quarter earnings moving average
Shows earnings momentum over time
Works with actual, estimated, or standardized earnings data
Customizable line color and width
This script creates an EPS trend line overlay, similar to the EPS line feature in IBD MarketSurge (previously MarketSmith), allowing you to visualize earnings trends alongside price action.
Add script to chart
EPS line appears automatically
Adjust color and width in settings if needed
Hover over line for earnings details
Settings:
EPS data type (actual/estimate/standardized)
Line color and width
💡 Tip:
For the complete IBD Style experience, pair this EPS line with IBD Style Candles to visualize price action with clean bars like IBD Style
MTF Advanced Disparity Index (Oscillator)multi time frame disparity index indicator is good for intraday ,we can find buy sell signals by using it's overbought & oversold zone
Wolfe Wave Auto+ManualWolfe Wave Auto+Manual Indicator
Description
The "Wolfe Wave Auto+Manual" indicator is a powerful tool for identifying and analyzing Wolfe Wave patterns on TradingView charts. It supports both automatic pattern detection based on Gann pivots and manual point configuration for precise pattern construction. This indicator is ideal for traders looking to leverage Wolfe Waves to predict market reversals and set take-profit targets.
The indicator displays the pattern with lines, zones (Sweet Zone), and labels, offering three take-profit calculation methods: ETA (intersection of lines 1-3 and 2-4), Line 1-4 (projection of the 1-4 trendline), and Flat (Point 4 price level). Users can customize visualization and calculations, including support for linear and logarithmic price scales.
Key Features
Auto and Manual Modes: Choose between automatic pattern detection using pivots or manual input of points 1-5.
Flexible Take-Profit Options: Supports three TP methods (ETA, Line 1-4, Flat) with customizable line and label colors.
Logarithmic Scale Support: Accurate calculations for charts with linear or logarithmic price scales.
Customizable Visualization: Enable/disable pattern lines, display the Sweet Zone, and show point labels positioned on the outer edges of the pattern for better readability.
Gann Pivots: Auto mode uses pivot detection for precise identification of key points.
User-Friendly Settings: All parameters include tooltips for easy configuration.
How to Use
Add the Indicator:
Find "Wolfe Wave Auto+Manual" in the TradingView indicator library and add it to your chart.
Select Mode:
Auto: The indicator automatically detects patterns based on pivots. Adjust "Swing Length" and "Pivot Offset" to control sensitivity.
Manual: Specify the time and price for points 1-5 in the settings to build a specific pattern.
Customize Visualization:
Enable/disable pattern lines using "Show Pattern Lines."
Adjust pivot and take-profit colors in their respective setting groups.
Choose Price Scale:
Set "Price Scale" to "Linear" or "Logarithmic" based on your chart type.
Configure Take-Profits:
Enable desired TP methods (ETA, Line 1-4, Flat) and customize their colors.
Use "TP Decimal Precision" to control the precision of displayed prices.
Analyze the Pattern:
Look for entry points near Point 5, using the Sweet Zone as a confirmation area.
Use TP levels to set profit targets.
Recommendations
Timeframes: The indicator works on all timeframes, but Auto mode is recommended for H1 and higher for more reliable pivots.
Instruments: Suitable for stocks, forex, cryptocurrencies, and other assets. Use logarithmic scale for long-term charts with high volatility.
Additional Filters: Combine with RSI, MACD, or support/resistance levels to enhance signal accuracy.
Testing: Experiment with "Swing Length" in Auto mode to optimize pattern detection for your trading style.
Notes
Ensure prices in Manual mode are positive when using logarithmic scale to avoid errors.
Disable "Show Pattern Lines" to focus on labels and TP levels for a cleaner chart.
Verify settings when switching between linear and logarithmic scales.
The "Wolfe Wave Auto+Manual" indicator is a versatile addition to your trading toolkit, helping you identify high-probability reversal patterns and plan trades with clear profit targets. Try it today to elevate your market analysis!
Индикатор "Wolfe Wave Auto+Manual"
Описание
Индикатор "Wolfe Wave Auto+Manual" — мощный инструмент для выявления и анализа паттернов волн Вульфа на графиках TradingView. Этот индикатор поддерживает как автоматическое обнаружение паттернов на основе пивотов Ганна, так и ручную настройку точек для точного построения. Он идеально подходит для трейдеров, которые хотят использовать волны Вульфа для прогнозирования разворотов рынка и определения целей тейк-профита.
Индикатор отображает паттерн с линиями, зонами (Sweet Zone) и метками, а также предлагает три метода расчёта тейк-профита: ETA (пересечение линий 1-3 и 2-4), Line 1-4 (проекция линии 1-4) и Flat (уровень точки 4). Пользователь может гибко настраивать визуализацию и расчёты, включая поддержку линейной и логарифмической шкал цен.
Ключевые особенности
Автоматический и ручной режимы: Выбирайте между автоматическим обнаружением паттернов на основе пивотов или ручным заданием точек 1-5.
Гибкие настройки тейк-профита: Поддержка трёх методов TP (ETA, Line 1-4, Flat) с настраиваемыми цветами линий и меток.
Поддержка логарифмической шкалы: Корректные расчёты для графиков с линейной или логарифмической шкалой цен.
Настраиваемая визуализация: Включайте/отключайте линии паттерна, отображайте Sweet Zone и метки точек, расположенные на внешних углах конструкции для лучшей читаемости.
Пивоты Ганна: В автоматическом режиме используются пивоты для точного определения ключевых точек.
Интуитивные настройки: Все параметры сопровождаются всплывающими подсказками для удобства.
Как использовать
Добавьте индикатор:
Найдите "Wolfe Wave Auto+Manual" в библиотеке индикаторов TradingView и добавьте на график.
Выберите режим:
Auto: Индикатор автоматически определяет паттерны на основе пивотов. Настройте "Swing Length" и "Pivot Offset" для контроля чувствительности.
Manual: Задайте время и цену для точек 1-5 в настройках для построения конкретного паттерна.
Настройте визуализацию:
Включите/отключите линии паттерна через "Show Pattern Lines".
Настройте цвета пивотов и тейк-профитов в соответствующих группах настроек.
Выберите шкалу цен:
Установите "Price Scale" в "Linear" или "Logarithmic" в зависимости от типа графика.
Настройте тейк-профиты:
Включите нужные методы TP (ETA, Line 1-4, Flat) и настройте их цвета.
Используйте "TP Decimal Precision" для контроля точности отображаемых цен.
Анализируйте паттерн:
Ищите точки входа вблизи точки 5, используя Sweet Zone как зону подтверждения.
Ориентируйтесь на уровни TP для фиксации прибыли.
Рекомендации
Таймфреймы: Индикатор работает на любых таймфреймах, но для Auto-режима рекомендуется использовать таймфреймы от H1 и выше для более надёжных пивотов.
Инструменты: Подходит для акций, форекса, криптовалют и других активов. Для долгосрочных графиков с высокой волатильностью используйте логарифмическую шкалу.
Дополнительные фильтры: Комбинируйте с индикаторами RSI, MACD или уровнями поддержки/сопротивления для повышения точности сигналов.
Тестирование: Протестируйте настройки в Auto-режиме с разными значениями "Swing Length" для оптимизации обнаружения паттернов.
Примечания
Убедитесь, что цены в Manual-режиме положительные при использовании логарифмической шкалы, чтобы избежать ошибок.
Для отключения линий паттерна используйте настройку "Show Pattern Lines", чтобы сосредоточиться на метках и уровнях TP.
Регулярно проверяйте настройки при переключении между линейной и логарифмической шкалами.
Этот индикатор станет отличным дополнением к вашей торговой стратегии, помогая выявлять высоковероятные разворотные паттерны и планировать сделки с чёткими целями прибыли. Попробуйте "Wolfe Wave Auto+Manual" и улучшите свой анализ рынка!
Gott's Copernican Trend PredictorThe Gott's Copernican Trend Predictor predicts trend duration using the Copernican Principle - Based on astrophysicist Richard Gott's temporal prediction method.
I had the idea to create this indicator after reading the book The Doomsday Calculation by William Poundstone.
Background & Theory
This indicator implements J. Richard Gott III's Copernican Principle - a statistical method that famously predicted the fall of the Berlin Wall and the duration of Broadway shows with remarkable accuracy.
The Copernican Principle Explained
Named after Copernicus who showed that Earth is not at the center of the universe, this principle assumes that you are not observing something at a special moment in time. When you observe a trend at any random point, you're statistically more likely to be seeing it during the "middle portion" of its lifetime rather than at its very beginning or end.
The Mathematics
Gott's formula provides a 95% confidence interval for how much longer a trend will continue:
Minimum remaining duration = Current Age ÷ 39
Maximum remaining duration = Current Age × 39
The factor of 39 comes from statistical analysis where:
There's only a 2.5% chance you're observing in the first 1/40th of the trend's life
There's only a 2.5% chance you're observing in the last 1/40th of the trend's life
This gives us 95% confidence that the trend will last between Age/39 and Age×39
How It Works
Trend Detection
The indicator uses dual moving averages (default: 50 & 200 period) to identify trend changes:
Bullish Cross: Fast MA crosses above Slow MA → Uptrend begins
Bearish Cross: Fast MA crosses below Slow MA → Downtrend begins
Real-Time Predictions
Once a trend is detected, the indicator continuously calculates:
Trend Age: How long the current trend has been active
Gott's 95% CI: Statistical range for remaining trend duration
Projected End Dates: Calendar dates when the trend might end
How to Use
Setup
Add the indicator to any timeframe (works on minutes, hours, days, weeks)
Customize MA periods and type (SMA, EMA, WMA)
Choose table position and font size for optimal viewing
Interpretation
Example: If a trend is 100 hours old:
Minimum duration: 100 ÷ 39 = ~3 more hours
Maximum duration: 100 × 39 = ~3,900 more hours
95% confidence: The trend will end between these times
This indicator might be useful for swing traders, trend followers, and quantitative analysts.
Coca-Cola example:
Coca-Cola's chart shows an uptrend spanning 810 weeks, approximately 15.5 years. According to Gott's Copernican Principle, this trend age generates a 95% confidence interval predicting the trend will continue for a minimum of 20 weeks and a maximum of 31,590 weeks.
On the other hand, a shorter trend age produces a proportionally smaller minimum duration and different risk profile in terms of statistical continuation probability. For this reason, more recent trends (and more recent companies) are likely to remain in trend for shorter.
EMA Oracle and RSIEMA Oracle
- “See the market’s structure through the eyes of exponential wisdom.”
combines classic EMA stacks with Pi-based logic to reveal high-probability buy/sell zones and trend bias across timeframes
Multi-EMA Trend & Pi Signal Indicator
This advanced indicator combines classic trend analysis with Pi-based signal logic to help traders identify optimal entry and exit zones across multiple timeframes.
Core Features
EMA Trend Structure: Displays EMAs 9, 13, 20, 50, and 200 to visualize short-term and long-term trend orientation. Bullish momentum is indicated when shorter EMAs are stacked above longer ones.
Pi-Based Signal Logic: Inspired by the Pi Indicator, it includes EMA111 and EMA700 (350×2) on the daily chart:
Buy Zone: When price is trading below EMA111, it signals potential accumulation for spot or low-leverage position trades.
Sell Zone: When price is above EMA700, it suggests potential distribution or exit zones.
Trend Cross Alerts: Detects EMA crossovers and crossunders to highlight shifts in market structure and generate buy/sell signals.
Multi-Timeframe Analysis: Evaluates trend direction across selected timeframes (e.g., 15m, 30m, 1h, 4h, 1D), offering a broader market perspective.
RSI Integration: Combines Relative Strength Index (RSI) readings with EMA positioning to assess momentum and overbought/oversold conditions.
Trend Table Display: A dynamic table summarizes the asset’s trend status per timeframe, showing:
RSI values
EMA alignment
Overall trend bias (bullish, bearish, neutral)
Concentric Geometry – Invariant MetricsConcentric Geometry – Invariant Metrics
This indicator demonstrates the invariant concept of a concentric circle around a selected price range. By anchoring two points (A & B), it calculates a set of ratios and slopes that remain consistent under concentric scaling of price and time. These invariants include the raw slope (ΔP/N), concentric slope, π-adjusted ratios, and √2 offsets — all of which can be used to explore deeper geometric relationships in the market.
What has been demonstrated here is not an “out-of-the-box” trading system. Instead, the outputs provide the raw invariant metrics from which the trader must derive their own ratios and extensions. For example, price-to-bar ratio inputs are not fixed — they need to be derived from the invariants themselves, and experimenting with them is the key to uncovering harmonic alignments and scaling behaviors.
Key features include:
• Range & Bars Analysis – Price range (ΔP) and bar count (N) between anchors.
• Core Invariants – Midpoint, radius (price and bar units), upper/lower bounds.
• Linear Slope Metrics – ΔP/N and √2 concentric slope.
• π-Adjusted Price/Bar – Harmonic arc-length ratio.
• Circumference & Offsets – Circle circumference, √2 and 1/√2 offsets in price and bar units.
This tool is best suited for traders studying market geometry, W.D. Gann principles, harmonic ratios, or the geometric methods of Michael Jenkins. It does not generate buy/sell signals — instead, it equips the trader with building blocks for geometric exploration.
Key point: The trader must experiment with the ratios derived from these metrics. Playing with different price-to-bar relationships unlocks the true potential of concentric market geometry, whether applied to dynamic anchored VWAPs, concentric overlays, or Vesica Piscis structures.
Use it to:
• Compare slopes across swings
• Derive new ratios from invariant metrics
• Anchor dynamic anchored VWAPs to concentric nodes
• Explore concentric or Vesica Piscis overlays
• Support advanced geometric trading strategies
Swing Support and Resistance [Vijay]Swing-based support & resistance with breakout buy/sell signals and alerts.
Full Description:
The Swing Support and Resistance indicator is a simple yet effective tool to identify swing-based support and resistance levels using pivot points.
Pivot Length: Defines how many bars on each side are used to confirm a swing high (resistance) or swing low (support).
Support & Resistance: Plots the most recent pivot levels as visual markers (circles) on the chart.
Buy & Sell Signals:
A Buy Signal is triggered when price crosses above the last resistance.
A Sell Signal is triggered when price crosses below the last support.
Visual Cues: Arrows are plotted directly on the chart for easy signal recognition.
Alerts: Built-in alert conditions allow you to set TradingView alerts for breakout signals.
This script is useful for traders who rely on price action, breakout trading, and swing structure analysis. It helps quickly spot where price is breaking key levels and provides instant alerts for trade opportunities.
Daily Distribution Range - Amplitude Probability DashboardSummary
This indicator provides a powerful statistical deep-dive into an asset's daily distribution range, amplitude and volatility. It moves beyond simple range indicators by calculating the historical probability of a trading day reaching certain amplitude levels.
The results are presented in a clean, interactive dashboard that highlights the current day's performance in real-time, allowing traders to instantly gauge if the current volatility is normal, unusually high, or unusually low compared to history.
This tool is designed to help traders answer a critical question: "Based on past behavior, what is the likelihood that today's range will be at least X%?"
Key Concepts Explained
1. Daily Amplitude (%)
The indicator first calculates the amplitude (or range) of every historical daily candle and expresses it as a percentage of that day's opening price.
Formula: (Daily High - Daily Low) / Daily Open * 100
This normalization allows for a consistent volatility comparison across different price levels and time periods.
2. Cumulative Probability Distribution
Instead of showing the probability of a day's final range falling into a small, exclusive bin (e.g., "exactly between 1.0% and 1.5%"), this indicator uses a cumulative model. It answers the question, "What is the probability that the daily range will be at least a certain value?"
For example, if the row for "≥ 2%" shows a probability of 12.22%, it means that historically, 12.22% of all trading days have had a total range of 2% or more. This is incredibly useful for risk management and setting realistic expectations.
Core Features
Statistical Dashboard: Presents all data in a clear, easy-to-read table on your chart.
Cumulative Probability Model: Instantly see the historical probability of the daily range reaching or exceeding key percentage levels.
Real-Time Highlight & Arrow (→): The dashboard isn't just historical. It actively tracks the current, unfinished day's amplitude and highlights the corresponding row with a color and an arrow (→). This provides immediate context for the current session's price action.
Timeframe Independent: You can use this indicator on any chart timeframe (e.g., 5-minute, 1-hour, 4-hour), and it will always fetch and calculate using the correct daily data.
Clean & Professional UI: Features a monospace font for perfect alignment and a simple, readable design.
Fully Customizable: Easily adjust the dashboard's position, text size, and the amount of historical data used for the analysis.
How to Use & Interpret the Data
This indicator is not a trading signal but a powerful tool for statistical context and decision-making.
Risk Management: If you see that an asset has only a 5% historical probability of moving more than 3% in a day, you can set stop-losses more intelligently and avoid being overly aggressive with your targets on a typical day.
Setting Profit Targets: Gauge realistic intra-day profit targets. If a stock is already up 2.5% and has historically only moved more than 3% on rare occasions, you might consider taking profits.
Options Trading: Volatility is paramount for options. This tool helps you visualize the expected range of movement, which can inform decisions on strike selection for strategies like iron condors or straddles.
Identifying Volatility Regimes: Quickly see if the current day is a "normal" low-volatility day or an "abnormal" high-volatility day that could signal a major market event or trend initiation.
Dashboard Breakdown
→ (Arrow): Points to the bin corresponding to the current, live day's amplitude.
Amplitude Level: The minimum amplitude threshold. The format "≥ 1.5%" means "greater than or equal to 1.5%".
Days Reaching Level: The raw number of historical days that had an amplitude equal to or greater than the level in the first column.
Prob. of Reaching Level (%): The percentage of total days that reached that amplitude level (Days Reaching Level / Total Days Analyzed).
Settings
Position: Choose where the dashboard appears on your chart.
Text Size: Adjust the font size for better readability on your screen resolution.
Max Historical Days to Analyze: Set the lookback period for the statistical analysis. A larger number provides a more robust statistical sample but may take slightly longer to load initially.
Enjoy this tool and use it to add a new layer of statistical depth to your trading analysis.
ADVANCED COSINE PROJECTION SYSTEM — LITE Mark3ACPS-Lite is a projection-based tool designed to visualize potential price paths using cosine-based similarity and stability analysis.
so, i have been working over multiple iterations to have a stable projection based on cosine principles and I've settled with a few stable algorithmic frameworks which works as: what i like to call : next generation leading indicators.
This indicator works well with any charting type like line/bar/candles etc. across ALL timeframes. (including seconds).
Basically this indicator projects a path towards the right.
Based on the trend the color of the projection updates on live refresh (depends on your timeframe of choice)
GREEN path projection for possible up trend
RED for bearish and yellow for sideways trend.
Technical : This indicator Aims to solve "DIRECTION" .
The idea was to to calculate angle between any given vectors : so if we translate it into the trading world : we are trying to determine direction (simplified explanation).
Pros : Scale Independent
meaning factors like flash crash , High impact movements (like NFP's) dont impact the projection logic in terms of Magnitude.
My model focuses on pattern similarity
example : in the previous instance of similar situation how did price react ?
therefore making a similar "COSINE" projection. (based on past "vector"/event)
on the left side there will always be an highlighted box section to visually represent where the future projections are based off of.
Cons: multiple vectors can have same direction from the cosine logic : essentially rendering the projected distance inconclusive.
but i solved that problem fully but on this lite version i made use of live refresh feature to keep the projections on a float : making our right side projections that much more fluid.
finally as a psychological factor not to get caught up on any Bias i made sure the indicator switches color according to immediate trend change logi.
Best Use case : have this indicator across multiple timeframes inside Tradingvieews tabs to Help make better Judgement.
I'm open for feedback / suggestions.
regards,
drsamc.
samc's FX SESSIONS - on candles So, based on my 8 yrs of experience and over a 2 decade worth of back testing on FX majors pairs one thing i can univocally affirm to the fact that Timing is everything especially in the currency markets.
so i made this indicator to help reduce the noise and focus on signals which is coded by time,
now i made this as GMT+8 in focus but you can adjust based on your requirements.
I classified my indicator colors according to the inter-SESSION High Impact areas only as following :
Primary session colors:
ASIAN - YELLOW
EU - BLUE
US - Magenta (light)
and every first 10 mins of the hour (Great for scalping)
i marked them in a shade of grey.
secondary sessions i marked them as minor sessions.
PRE-EU 1hr of expected trend i marked in color green
and
after hours in a shade of color violet.
so i usually make my candles into light grey by default and remove the body and wicks to minimize the visual stimulus so that this indicator will work great with both dark and light themes and does not obstruct other indicators.
also i made an option to uncheck my naming scheme of session on the top right.
Daily Seasonality Strength + Prediction TableDaily Seasonality Strength + Prediction Table
Return Estimates:
This indicator uses historical price data to calculate average returns for each day (of the week or month) and uses these to predict the next day’s return.
Seasonality Strength:
It measures seasonality strength by comparing predicted returns with actual returns, using the inverse of MSE (higher values mean stronger seasonality).
supports up to 10 assets
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. I am not a financial advisor. Any decisions you make based on this indicator are your own responsibility. Always do your own research and consult with a qualified financial professional before making any investment decisions.
Past performance is no guarantee of future results. The value of the instruments may fluctuate and is not guaranteed
AI Fib Strategy (Full Trade Plan)This indicator automatically plots Fibonacci retracements and a Golden Zone box (61.8%–65% retracement) based on the 4H candle body high/low.
Features:
Auto-detects session breaks or daily breaks (configurable).
Draws standard Fib retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%).
Highlights the Golden Zone for high-probability trade entries.
Optional Take Profit extensions (TP1, TP2, TP3).
Fully compatible with Pine Script v6.
Usage:
Best applied on intraday charts (15m, 30m, 1H).
Use the Golden Zone for entry confirmations.
Combine with candlestick patterns, order blocks, or volume for stronger signals.
Impulse Convexity Trend Gate [T1][T69]OVERVIEW 🧭
• A price-only trend engine that opens a “gate” only when trend strength, acceleration, and impulse dominance align.
• Built from three cooperating parts: adaptive slope, directional convexity, and an impulse-vs-pullback ratio.
• Output is a bounded oscillator (−100…+100) plus side-specific gate states (bull/bear), with optional pullback and weakness highlights.
THE IDEA & USEFULNESS 🧪
• Not a simple mashup: each component plays a distinct role—slope for direction, convexity for acceleration agreement, and an impulse ratio to suppress correction noise.
• Adaptive EMA length (series-based) lets the midline adjust to conditions without external indicators.
• Approximation of hyperbolic tangent and clamp keep signals bounded and stable while avoiding library dependencies.
• Designed to help trend traders act only when continuation is likely, and stand down during pullbacks or chop.
HOW IT WORKS (PIPELINE) ⚙️
• Price transform
• Uses log price for scale stability.
• Adaptive midline
• Volatility-aware EMA length is clamped between minimum and maximum, then applied via a custom recursive EMA.
• Slope & convexity
• Slope (first difference of the midline) defines direction; convexity (second difference) verifies acceleration agrees with that direction.
• Impulse vs pullback ratio (R)
• Sums directional progress versus counter-direction pullbacks over a window; requires impulse to dominate.
• Normalization & score
• Slope and convexity are normalized by recent dispersion; combined into a raw score and squashed to −100…+100 using manual tanh.
• Trend gate
• Gate opens only when: R ≥ threshold, |normalized slope| ≥ threshold, and slope/convexity share the same sign.
• States & visuals
• Bull/Bear Gate Entry when gate is open, oscillator crosses ±15 in the correct direction, price is on the correct side of the midline, and slope/convexity agree.
• Pullbacks mark counter-moves while a gate is active; Weakness flags specific fade patterns after pullbacks.
FEATURES ✨
• Bull and Bear Gate Entries (green/red columns).
• Pullback shading and optional trend-weakness highlights (yellow/orange + teal/maroon).
• Background tint reflects the active side (bull or bear).
• Pure price logic; no volume or external filters required.
HOW TO USE 🎯
• Regime filter
• Trade only in the direction of the open gate; ignore signals when the gate is closed.
• Pullback entries
• During an open gate, wait for a pullback zone, then act on trend-resumption (e.g., oscillator re-push through ±15 or structure break in gate direction).
• Exits & risk
• Consider trimming when the oscillator relaxes toward 0 while the gate remains open, or when convexity flips against slope and R deteriorates.
• Timeframes & markets
• Suited for trend following on crypto/FX/indices from M30 to 4H/1D; raise thresholds on lower timeframes to reduce noise.
CONFIGURATION 🔧
• Impulse ratio gate (R ≥): raises/lowers the standard for continuation dominance.
• Slope strength gate (|sN| ≥): controls how strong a slope must be to count.
• Show Pullback Impulse (toggle): enable/disable pullback highlights.
• Show Trend Weakness (toggle): enable/disable weakness flags.
LIMITATIONS ⚠️
• As a trend tool, it can lag at regime transitions; expect whipsaws in tight ranges.
• Parameters are instrument- and timeframe-dependent; tune thresholds before live use.
• Pullback/weakness flags are contextual—not trade signals by themselves; use them with gate state and your execution rules.
ADVANCED TIPS 🛠️
• Tighten R and slope thresholds for lower timeframes; loosen for higher timeframes.
• Pair with NNFX-style money management and pair-level filters; let the gate be the confirmation layer, not the entry trigger by itself.
• Batch-test across 100+ symbols, export metrics, and run Monte Carlo to validate LLN reliability and Sharpe/IQR stability.
• For system hedging, disable entries when both sides trigger on the same asset to avoid internal conflict.
NOTES 📝
• Price-only construction reduces data-vendor differences and keeps behavior consistent across markets.
• Manual tanh/clamp ensure stable, bounded scores even during extremes.
DISCLAIMER 🛡️
• For research and education. No financial advice. Test thoroughly, size conservatively, and respect your risk rules.
Capiba Directional Momentum Oscillator (ADX-based)
🇬🇧 English
Summary
The Capiba ADX is a momentum oscillator that transforms the classic ADX (Average Directional Index) into a much more intuitive visual tool. Instead of analyzing three separate lines (ADX, DI+, DI-), this indicator consolidates the strength and direction of the trend into a single histogram that oscillates around the zero line.
The result is a clear and immediate reading of market sentiment, allowing traders to quickly identify who is in control—buyers or sellers—and with what intensity.
How to Interpret and Use the Indicator
The operation of the Capiba ADX is straightforward:
Green Histogram (Above Zero): Indicates that buying pressure (DI+) is in control. The height of the bar represents the magnitude of the bullish momentum. Taller green bars suggest a stronger uptrend.
Red Histogram (Below Zero): Indicates that selling pressure (DI-) is in control. The "depth" of the bar represents the magnitude of the bearish momentum. Lower (more negative) red bars suggest a stronger downtrend.
Zero Line (White): This is the equilibrium point. Crossovers through the zero line signal a potential shift in trend control.
Crossover Above: Buyers are taking control.
Crossover Below: Sellers are taking control.
Reference Levels (Momentum Strength)
The indicator plots three fixed reference levels to help gauge the intensity of the move:
0 Line: Equilibrium.
100 Line: Signals significant directional momentum. When the histogram surpasses this level, the trend (whether bullish or bearish) is gaining considerable strength.
200 Line: Signals very strong directional momentum, or even potential exhaustion conditions. Moves that reach this level are powerful but may also precede a consolidation or reversal.
Usage Strategy
Trend Confirmation: Use the indicator to confirm the direction of your analysis. If you are looking for long positions, the Capiba ADX should ideally be green and, preferably, rising.
Strength Identification: Watch for the histogram to cross the 100 and 200 levels to validate the strength of a breakout or an established trend.
Entry/Exit Signals: A zero-line crossover can be used as a primary entry or exit signal, especially when confirmed by other technical analysis tools.
Acknowledgements
This indicator is the result of adapting knowledge and open-source codes shared by the vibrant TradingView community.
Capiba Custom RSI with Divergences v2
🇬🇧 English
Summary
This indicator is an enhanced and customizable version of the classic RSI, designed to provide clearer and more powerful trading signals. It combines an alternative, more price-sensitive RSI calculation with an automatic divergence detection, which is one of the most effective tools for predicting trend reversals and finding high-probability entry and exit points.
Built upon the compilation of knowledge and open-source codes from the community, this script has been refined to be an all-in-one tool for traders who base their strategies on momentum and trend exhaustion.
Key Features and How to Use
Ultimate RSI and Signal Line (Momentum)
What it is: The main indicator (white line) is an RSI variation that reacts more dynamically to changes in price volatility. It is accompanied by a signal line (orange, by default), which is a moving average of the RSI itself, serving to smooth the indicator and generate crossover signals.
How to use for Entries/Exits:
Buy Signal (Short-Term): Crossover of the RSI line (white) above the signal line (orange).
Sell Signal (Short-Term): Crossover of the RSI line (white) below the signal line (orange). These are momentum signals, ideal for confirming a trend or for scalping.
Automatic Divergence Detection (Reversal Signals) This is the most powerful feature of the indicator. A divergence occurs when the price moves in one direction and the momentum indicator moves in the opposite direction, signaling a likely exhaustion of the current trend.
Bullish Divergence (Green Line):
What it is: The price makes a lower low, but the RSI makes a higher low.
Meaning: Selling pressure is decreasing. It is a strong signal of a potential market bottom and an excellent entry opportunity for a long position.
Bearish Divergence (Red Line):
What it is: The price makes a higher high, but the RSI makes a lower high.
Meaning: Buying pressure is losing strength. It is a strong signal of a potential market top and an excellent exit opportunity for a long position or an entry for a short position.
Customizable Overbought & Oversold Levels
The horizontal lines (default 80 and 20) and the colored areas show when the asset is overextended to the upside (overbought) or downside (oversold), helping to contextualize the divergence and crossover signals.
Recommended Strategy
For maximum effectiveness, combine the signals:
High-Probability Entry (Buy): Look for a Bullish Divergence (green line) forming in the oversold zone. Confirm the entry when the RSI line crosses above its signal line.
High-Probability Exit (Sell): Look for a Bearish Divergence (red line) forming in the overbought zone. Confirm the exit or new short entry when the RSI line crosses below its signal line.
Acknowledgements
This indicator was developed by compiling and customizing excellent open-source ideas and codes shared by the TradingView community. Special thanks to everyone who contributes to the advancement of technical analysis.