MOHStrategy Description
Uses Heikin Ashi candles to filter market noise and identify trend direction.
Entry is allowed only when strong HA candles appear (bullish without lower wick, bearish without upper wick).
Doji candles signal possible reversal.
استخدام شموع Heikin Ashi لتقليل الضوضاء وتحديد اتجاه الترند.
الدخول فقط عند ظهور شموع قوية (صاعدة بدون ذيل سفلي، هابطة بدون ذيل علوي).
شمعة الدوجي = إشارة انعكاس محتملة.
Forecasting
Adaptive Cortex Strategy (Demo)Adaptive Cortex Strategy - The Smart, Adaptive Investment System
Don't Get Lost in the Market Noise. Learn to Understand the Market.
Every investor faces the same dilemma: Why does a strategy that worked perfectly yesterday struggle today when the market's character changes?
Because the market isn't static. It's a dynamic structure that constantly changes, breathes, and enters different regimes. So, why shouldn't your strategy adapt to this dynamism?
Adaptive Cortex Strategy (ACS)
What is This Strategy?
The Adaptive Cortex Strategy isn't just a simple indicator that gives you buy and sell signals. It's a holistic analysis framework that attempts to understand the changing nature of the market and adapt its decision-making mechanism accordingly. Its core philosophy is to identify data-driven, high-probability investment opportunities by combining (amalgamating) many different market dynamics.
The strategy's power comes from its proprietary technology, which we call the "Smart Decision Engine." This engine performs two primary functions:
Market Memory: The system continuously analyzes past significant market turning points and price levels. This allows the strategy to dynamically recognize and deeply understand the current market structure.
Situational Awareness: The system continuously measures the current market "mood." It detects whether we are in a strong trend or indecisive sideways movement and automatically adjusts its analysis accordingly. This allows it to adopt the most appropriate approach in each market.
What Does ACS Promise?
Clarity: By transforming complex market data into clear, conclusive signals, it provides you with an objective perspective during decision-making.
Discipline: With its rules-based structure, it helps you protect yourself from emotional traps like fear and greed, the market's greatest enemies.
Adaptation: Instead of searching for a "one-size-fits-all" strategy, it offers a system logic that "adapts to every market."
Risk Management: With advanced position management modules, it constantly reminds you that preserving capital is more important than making money.
What Doesn't It Promise? Guaranteed Profit or the "Holy Grail": No system in the financial markets can offer 100% certainty. Losing trades are a natural and inevitable part of professional investing. ACS aims not to eliminate losses, but to manage them and statistically maximize profit potential.
This is not a "run the robot and get rich" system. ACS is your most powerful analytical assistant, but the ultimate decision and responsibility always rest with the investor.
The Dream of Getting Rich Overnight: Successful investing is a marathon, not a sprint. ACS is designed to help disciplined and patient investors achieve statistical advantage over the long term.
Who Is This System Suitable For?
For Beginner Investors: It offers a disciplined and structured roadmap that avoids emotional decisions and confusion. For Experienced Analysts: It serves as a powerful quantitative aid that validates or challenges their technical analysis.
For Investors Seeking a System: It offers a professional-grade risk management framework that offers not only entry but also position management and multiple exit scenarios.
Sr.Rma.Breakout.Fib (Merged)DO YOUR DUE DILIGENCE – THIS IS FOR EDUCATIONAL PURPOSE AND NOT A TRADE ADVICE-
This strategy is designed for traders who want to merge pattern recognition (breakouts) with market structure context (Fibonacci), while maintaining disciplined trade management through automated stop-loss and reversal logic. “Once the chart is added, please ensure the candle pattern is set to Heikin Ashi.”
1. Breakout Finder Logic
The breakout finder identifies bullish and bearish breakouts using pivots, thresholds, and test counts:
• Pivot Highs & Lows (PH/PL): Calculated using user-defined periods.
• Breakout Threshold: Dynamic channel width based on recent volatility.
• Confirmation: A breakout is validated when price action clears the breakout Conditions
• Bullish Breakout: Triggered when multiple pivot highs are cleared by bullish Conditions.
• Bearish Breakout: Triggered when multiple pivot lows are broken by bearish Conditions.
• Sessions ignored: Traders can exclude up to three custom time windows to prevent signals during low-quality periods.
Risk & Reversal Controls
• Stop-Loss: Adjustable % thresholds for both long and short trades.
• Reversal Entries: Optional signals that trigger after a stop-loss, capturing potential price reversals.
2. Strategy Order Management
The strategy executes entries and exits based on confirmed breakout and reversal signals:
• Entries:
o Long on confirmed bullish breakout.
o Short on confirmed bearish breakout.
• Stops:
o Automatic closure of open positions when stop-loss conditions are hit.
• Reversals:
o Transition directly from long to short or vice versa when reversal conditions are met.
3. Auto Fibonacci Retracement
A ZigZag-based system automatically plots Fibonacci retracement levels on the chart:
• Swing Context: Derived dynamically from pivots with adjustable depth and deviation settings.
• Fib Levels: Standard retracement and extension levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.618, 2.618, 3.618, 4.236, etc.) are supported.
• Custom Options:
o Extend lines left or right.
o Show/hide level prices and percentage values.
o Control label positions (left or right).
o Adjustable transparency for background fills between levels.
• Crossing Alerts: Alerts are fired when the price crosses specific Fibonacci levels, enhancing confluence with breakout signals.
5. Key Benefits
• Comprehensive Trading Framework: Combines breakout confirmation, risk management, and Fibonacci context.
• Visual Clarity: Automatic plotting of breakout structures and Fib levels makes the chart intuitive.
• Flexible Controls: Full customization of pivots, thresholds, sessions, stop-loss %, and Fib settings.
• Automation Ready: Alerts and strategy orders allow seamless integration with brokers or external systems.
S2O Gold Ai (D1)### S2O Gold Ai (D1) — What’s Unique
**Regime-Aware TLX.** The TLX line uses an Adaptive Multiplier driven by a volatility/efficiency proxy (VR z-score). It tightens during quiet markets and relaxes during volatile regimes, reducing whipsaws without sacrificing major trend participation.
**HTF Confirmation (optional).** Signals can be confirmed by a higher timeframe to filter entries that run counter to the prevailing trend.
**BSZ Adaptive Threshold.** BSZ crosses are validated only when the signal strength (|lead − trail|) exceeds a user-defined z-score of its recent distribution, suppressing “weak taps” in borderline conditions.
**Cooldown & Session Control.** Entry frequency can be throttled (cooldown) and trading windows restricted to specific sessions to avoid low-liquidity periods or news spikes.
---
### How It Differs from Classic Implementations
* **Systematic input & entry framework.** Core logic is wrapped with regime, HTF, z-score, session, and cooldown filters, producing measurably different outcomes once activated.
* **Designed to be non-repainting for live use.** Signals are confirmed on closed bars via `barstate.isconfirmed` when “Enter on Bar Close” is selected.
### About the Inputs & Defaults (H4 preset)
The inputs ship with **pre-tuned starter presets** intended for H4 swing trading (tested primarily on XAUUSD and spot FX majors). These values were **numerically calibrated** to balance trend participation vs. whipsaw control under typical H4 volatility:
* **TLX ATR Window / Multiplier** – chosen to keep the directional band responsive to regime shifts while avoiding excessive flip-flops in low-noise segments.
* **BSZ Smooth Length** – set to stabilize the oscillator’s lead/trail pair so that crosses reflect meaningful momentum turns rather than minor jitters.
* **Adaptive Multiplier (optional)** – defaults off for full backward compatibility; when enabled, its lookback/floor/cap are configured to make adaptations gradual, not jumpy.
* **HTF Confirm (optional)** – default HTF = 4H so that confirmations reflect the dominant swing; the confirm length/multiplier mirror TLX’s base profile.
* **BSZ Adaptive Threshold (optional)** – z-score lookback/level are prefilled to filter only weak, borderline crosses while preserving strong impulses.
* **Cooldown / Session** – conservative defaults to reduce clustering of signals and avoid low-liquidity windows.
> **Important:** These numbers are **presets, not promises**. Markets evolve across symbols, brokers and sessions. For best results, treat them as a robust starting point and **validate or fine-tune per your instrument** (e.g., adjust TLX Multiplier ±11, BSZ length 8–14, z-score 0.25–0.50). Always forward-test and confirm on closed bars to avoid repaint-related bias.
## Order/Signal Execution Principles (D1)
**Signal Direction**
* **BUY** when:
1. The TLX directional state is **up** (price above the adaptive lower band); and
2. The BSZ oscillator’s **lead crosses above** the trail (valid cross).
* **SELL** when:
1. The TLX directional state is **down** (price below the adaptive upper band); and
2. The BSZ oscillator’s **lead crosses below** the trail.
**Optional Confirmations & Filters**
* **HTF Confirmation (optional):** The higher-timeframe (default 4H) TLX state must match the trade direction (up for BUY, down for SELL).
* **BSZ Adaptive Threshold (optional):** A cross is valid only if the absolute gap $|lead−trail|$ is statistically elevated (z-score ≥ user level).
* **Session Filter (optional):** Signals are allowed only during the user-defined trading session window.
* **Cooldown (optional):** After any signal, new signals are blocked for *N* bars to prevent clustering.
**Bar-Close Confirmation (non-repaint)**
* When **Confirm on Bar Close** is enabled, signals are accepted **only at bar close** (no intrabar repainting).
**One-at-a-time Logic (recommended for strategies)**
* Enter only when **flat**; ignore new signals until the open position is closed (either stop or target).
**Exit Logic (if used as a strategy)**
* **Stop-Loss:** Fixed distance in ticks from entry (user input).
* **Take-Profit:** Fixed distance in ticks from entry (user input, optional).
* If TP or SL is hit, the position closes and the cooldown timer (if enabled) starts.
**Sizing (strategy context)**
* Use fixed size or broker-style MT4 lots as per inputs. Buying-power checks and leverage are optional and user-controlled.
**Signal Generation vs. Execution**
* The published **indicator** generates **alerts only** (BUY/SELL) based on the rules above.
* Converting to a **strategy** applies the same entry conditions, with exits (SL/TP), position-sizing, and flat-only execution layered on top.
**Robustness Notes**
* Defaults are pre-tuned for D1 swing behavior; however, symbols differ. Validate and fine-tune (TLX Multiplier, BSZ length, z-score level, session window) to your instrument and broker conditions.
This strategy is a **process**, not a promise. It blends a directional band (TLX) with a momentum cross (BSZ) and optional regime/HTF/session filters to structure decisions on H4. The goal is consistency and clarity—**not** curve-fitted perfection. Markets evolve; so should your parameters, expectations, and risk controls.
Trading involves **substantial risk**. Backtests are simulations that can differ from live results due to spreads, commissions, slippage, data vendor differences, partial fills, and execution latency. Signals confirmed on bar close reduce repainting but do **not** eliminate market uncertainty. Past performance does **not** guarantee future results.
Use **position sizing, stop-losses, and realistic profit targets**. Start small, forward-test, and validate on your own symbols and broker conditions. Nothing herein is investment advice; you are responsible for your own decisions. Trade carefully—and let discipline be your edge.
For more information, please contact me **directly on TradingView**—send me a private message from my profile (click my username on this script’s page) or leave a comment under the script.
S2O Gold Ai (H4)### S2O Gold Ai (H4) — What’s Unique
**Regime-Aware TLX.** The TLX line uses an Adaptive Multiplier driven by a volatility/efficiency proxy (VR z-score). It tightens during quiet markets and relaxes during volatile regimes, reducing whipsaws without sacrificing major trend participation.
**HTF Confirmation (optional).** Signals can be confirmed by a higher timeframe (default: 4H) to filter entries that run counter to the prevailing trend.
**BSZ Adaptive Threshold.** BSZ crosses are validated only when the signal strength (|lead − trail|) exceeds a user-defined z-score of its recent distribution, suppressing “weak taps” in borderline conditions.
**Cooldown & Session Control.** Entry frequency can be throttled (cooldown) and trading windows restricted to specific sessions to avoid low-liquidity periods or news spikes.
---
### How It Differs from Classic Implementations
* **Systematic input & entry framework.** Core logic is wrapped with regime, HTF, z-score, session, and cooldown filters, producing measurably different outcomes once activated.
* **Designed to be non-repainting for live use.** Signals are confirmed on closed bars via `barstate.isconfirmed` when “Enter on Bar Close” is selected.
### About the Inputs & Defaults (H4 preset)
The inputs ship with **pre-tuned starter presets** intended for H4 swing trading (tested primarily on XAUUSD and spot FX majors). These values were **numerically calibrated** to balance trend participation vs. whipsaw control under typical H4 volatility:
* **TLX ATR Window / Multiplier** – chosen to keep the directional band responsive to regime shifts while avoiding excessive flip-flops in low-noise segments.
* **BSZ Smooth Length** – set to stabilize the oscillator’s lead/trail pair so that crosses reflect meaningful momentum turns rather than minor jitters.
* **Adaptive Multiplier (optional)** – defaults off for full backward compatibility; when enabled, its lookback/floor/cap are configured to make adaptations gradual, not jumpy.
* **HTF Confirm (optional)** – default HTF = 4H so that confirmations reflect the dominant swing; the confirm length/multiplier mirror TLX’s base profile.
* **BSZ Adaptive Threshold (optional)** – z-score lookback/level are prefilled to filter only weak, borderline crosses while preserving strong impulses.
* **Cooldown / Session** – conservative defaults to reduce clustering of signals and avoid low-liquidity windows.
> **Important:** These numbers are **presets, not promises**. Markets evolve across symbols, brokers and sessions. For best results, treat them as a robust starting point and **validate or fine-tune per your instrument** (e.g., adjust TLX Multiplier ±11, BSZ length 8–14, z-score 0.25–0.50). Always forward-test and confirm on closed bars to avoid repaint-related bias.
## Order/Signal Execution Principles (H4)
**Signal Direction**
* **BUY** when:
1. The TLX directional state is **up** (price above the adaptive lower band); and
2. The BSZ oscillator’s **lead crosses above** the trail (valid cross).
* **SELL** when:
1. The TLX directional state is **down** (price below the adaptive upper band); and
2. The BSZ oscillator’s **lead crosses below** the trail.
**Optional Confirmations & Filters**
* **HTF Confirmation (optional):** The higher-timeframe (default 4H) TLX state must match the trade direction (up for BUY, down for SELL).
* **BSZ Adaptive Threshold (optional):** A cross is valid only if the absolute gap $|lead−trail|$ is statistically elevated (z-score ≥ user level).
* **Session Filter (optional):** Signals are allowed only during the user-defined trading session window.
* **Cooldown (optional):** After any signal, new signals are blocked for *N* bars to prevent clustering.
**Bar-Close Confirmation (non-repaint)**
* When **Confirm on Bar Close** is enabled, signals are accepted **only at bar close** (no intrabar repainting).
**One-at-a-time Logic (recommended for strategies)**
* Enter only when **flat**; ignore new signals until the open position is closed (either stop or target).
**Exit Logic (if used as a strategy)**
* **Stop-Loss:** Fixed distance in ticks from entry (user input).
* **Take-Profit:** Fixed distance in ticks from entry (user input, optional).
* If TP or SL is hit, the position closes and the cooldown timer (if enabled) starts.
**Sizing (strategy context)**
* Use fixed size or broker-style MT4 lots as per inputs. Buying-power checks and leverage are optional and user-controlled.
**Signal Generation vs. Execution**
* The published **indicator** generates **alerts only** (BUY/SELL) based on the rules above.
* Converting to a **strategy** applies the same entry conditions, with exits (SL/TP), position-sizing, and flat-only execution layered on top.
**Robustness Notes**
* Defaults are pre-tuned for H4 swing behavior; however, symbols differ. Validate and fine-tune (TLX Multiplier, BSZ length, z-score level, session window) to your instrument and broker conditions.
This strategy is a **process**, not a promise. It blends a directional band (TLX) with a momentum cross (BSZ) and optional regime/HTF/session filters to structure decisions on H4. The goal is consistency and clarity—**not** curve-fitted perfection. Markets evolve; so should your parameters, expectations, and risk controls.
Trading involves **substantial risk**. Backtests are simulations that can differ from live results due to spreads, commissions, slippage, data vendor differences, partial fills, and execution latency. Signals confirmed on bar close reduce repainting but do **not** eliminate market uncertainty. Past performance does **not** guarantee future results.
Use **position sizing, stop-losses, and realistic profit targets**. Start small, forward-test, and validate on your own symbols and broker conditions. Nothing herein is investment advice; you are responsible for your own decisions. Trade carefully—and let discipline be your edge.
For more information, please contact me **directly on TradingView**—send me a private message from my profile (click my username on this script’s page) or leave a comment under the script.
Nifty Gann Pivot Strategy — SQRT LevelsNifty Gann Pivot Strategy — SQRT Levels, select the gann pivot, targets above and below the pivot are calculated using gann formula and plotted
回撤再入场引擎This is a long-only, counter-trend strategy that aims to buy dips in a medium-term downtrend. The entry logic is based on a confluence of four filters:
1. **Trend Filter:** The price must be trading below the 60-period Simple Moving Average (SMA).
2. **Oversold Condition:** The WaveTrend Oscillator must first dip below -60 and then recover above -55.
3. **Momentum Confirmation:** The MACD must show sustained bullish momentum for at least 2 bars.
4. **Re-entry Filter:** A new trade is only allowed if the price is at least a certain percentage lower than the last trade's exit price.
The exit is based on a fixed Take Profit target. This version does not include a stop-loss.
FxAST Lite Wave — Universal (Profiles: Intraday / Swing)FxAST-LW Universal (Profiles)
The FxAST Lite Wave – Universal strategy is designed for adaptability across markets and timeframes, with two ready-to-use profiles:
Intraday (5m–1H) → tuned for futures & FX scalps/day trades. Includes session filters, ATR volatility regimes, and impulse confirmation to reduce chop.
Swing (1D–3D) → tuned for swing positions. Uses relaxed impulse filters, slope + bias confirmation, and DI-spread to capture bigger moves.
Key features:
✅ Multi-EMA Lite Wave core (5/13/62/200)
✅ Regime filter via DI-spread (trend vs chop)
✅ EMA200 slope filter
✅ Optional HTF bias confirmation
✅ ATR-based stops, breakeven & trailing logic
✅ Time-stop exits to avoid capital stagnation
✅ Risk % position sizing
Usage:
Switch between Intraday and Swing modes via the Profile input. Adjust DI-spread, slope, and impulse thresholds per symbol. Sessions recommended ON for indices (NQ/ES/RTY) and OFF for FX.
⚠️ Disclaimer: This script is for research & educational purposes only. Not financial advice. Test extensively before applying live. Past performance does not guarantee future results.
© FxAST
LFT Foundation Main ReversionLFT Foundation Main Reversion
this script will tell exactly when to buy and sell with TP and SL, used the latest LLM to tone the model with a profit ratio of 1.82 in 6 years and profit ratio of 4.02 in past 6 month and have been back tested with Monte Carlo simulation, with profit ratio 1+ for 99% of the time with 1000 iterations with 500 steps, for 100 times
please contact LFT Foundation for access
Optimized ADX DI CCI Strategy### Key Features:
- Combines ADX, DI+/-, CCI, and RSI for signal generation.
- Supports customizable timeframes for indicators.
- Offers multiple exit conditions (Moving Average cross, ADX change, performance-based stop-loss).
- Tracks and displays trade statistics (e.g., win rate, capital growth, profit factor).
- Visualizes trades with labels and optional background coloring.
- Allows countertrading (opening an opposite trade after closing one).
1. **Indicator Calculation**:
- **ADX and DI+/-**: Calculated using the `ta.dmi` function with user-defined lengths for DI and ADX smoothing.
- **CCI**: Computed using the `ta.cci` function with a configurable source (default: `hlc3`) and length.
- **RSI (optional)**: Calculated using the `ta.rsi` function to filter overbought/oversold conditions.
- **Moving Averages**: Used for CCI signal smoothing and trade exits, with support for SMA, EMA, SMMA (RMA), WMA, and VWMA.
2. **Signal Generation**:
- **Buy Signal**: Triggered when DI+ > DI- (or DI+ crosses over DI-), CCI > MA (or CCI crosses over MA), and optional ADX/RSI filters are satisfied.
- **Sell Signal**: Triggered when DI+ < DI- (or DI- crosses over DI+), CCI < MA (or CCI crosses under MA), and optional ADX/RSI filters are satisfied.
3. **Trade Execution**:
- **Entry**: Long or short trades are opened using `strategy.entry` when signals are detected, provided trading is allowed (`allow_long`/`allow_short`) and equity is positive.
- **Exit**: Trades can be closed based on:
- Opposite signal (if no other exit conditions are used).
- MA cross (price crossing below/above the exit MA for long/short trades).
- ADX percentage change exceeding a threshold.
- Performance-based stop-loss (trade loss exceeding a percentage).
- **Countertrading**: If enabled, closing a trade triggers an opposite trade (e.g., closing a long opens a short).
4. **Visualization**:
- Labels are plotted at trade entries/exits (e.g., "BUY," "SELL," arrows).
- Optional background coloring highlights open trades (green for long, red for short).
- A statistics table displays real-time metrics (e.g., capital, win rates).
5. **Trade Tracking**:
- Tracks the number of long/short trades, wins, and overall performance.
- Monitors equity to prevent trading if it falls to zero.
### 2.3 Key Components
- **Indicator Calculations**: Uses `request.security` to fetch indicator data for the specified timeframe.
- **MA Function**: A custom `ma_func` handles different MA types for CCI and exit conditions.
- **Signal Logic**: Combines crossover/under checks with recent bar windows for flexibility.
- **Exit Conditions**: Multiple configurable exit strategies for risk management.
- **Statistics Table**: Updates dynamically with trade and capital metrics.
## 3. Configuration Options
The script provides extensive customization through input parameters, grouped for clarity in the TradingView settings panel. Below is a detailed breakdown of each setting and its impact.
### 3.1 Strategy Settings (Global)
- **Initial Capital**: Default `10000`. Sets the starting capital for backtesting.
- **Effect**: Determines the base equity for calculating position sizes and performance metrics.
- **Default Quantity Type**: `strategy.percent_of_equity` (50% of equity).
- **Effect**: Controls the size of each trade as a percentage of available equity.
- **Pyramiding**: Default `2`. Allows up to 2 simultaneous trades in the same direction.
- **Effect**: Enables multiple entries if conditions are met, increasing exposure.
- **Commission**: 0.2% per trade.
- **Effect**: Simulates trading fees, reducing net profit in backtesting.
- **Margin**: 100% for long and short trades.
- **Effect**: Assumes no leverage; adjust for margin trading simulations.
- **Calc on Every Tick**: `true`.
- **Effect**: Ensures real-time signal updates for precise execution.
### 3.2 Indicator Settings
- **Indicator Timeframe** (`indicator_timeframe`):
- **Options**: `""` (chart timeframe), `1`, `5`, `15`, `30`, `60`, `240`, `D`, `W`.
- **Default**: `""` (uses chart timeframe).
- **Effect**: Determines the timeframe for ADX, DI, CCI, and RSI calculations. A higher timeframe reduces noise but may delay signals.
### 3.3 ADX & DI Settings
- **DI Length** (`adx_di_len`):
- **Default**: `30`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for calculating DI+ and DI-. Longer periods smooth trends but reduce sensitivity.
- **ADX Smoothing Length** (`adx_smooth_len`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Smooths the ADX calculation. Longer periods produce smoother ADX values.
- **Use ADX Filter** (`use_adx_filter`):
- **Default**: `false`.
- **Effect**: If `true`, requires ADX to exceed the threshold for signals to be valid, filtering out weak trends.
- **ADX Threshold** (`adx_threshold`):
- **Default**: `25`.
- **Range**: Minimum `0`.
- **Effect**: Sets the minimum ADX value for valid signals when the filter is enabled. Higher values restrict trades to stronger trends.
### 3.4 CCI Settings
- **CCI Length** (`cci_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for CCI calculation. Longer periods reduce noise but may lag.
- **CCI Source** (`cci_src`):
- **Default**: `hlc3` (average of high, low, close).
- **Effect**: Defines the price data for CCI. `hlc3` is standard, but users can choose other sources (e.g., `close`).
- **CCI MA Type** (`ma_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the moving average type for CCI signal smoothing. EMA is more responsive; VWMA weights by volume.
- **CCI MA Length** (`ma_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the CCI MA. Longer periods smooth the MA but may delay signals.
### 3.5 RSI Filter Settings
- **Use RSI Filter** (`use_rsi_filter`):
- **Default**: `false`.
- **Effect**: If `true`, applies RSI-based overbought/oversold filters to signals.
- **RSI Length** (`rsi_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for RSI calculation. Longer periods reduce sensitivity.
- **RSI Lower Limit** (`rsi_lower_limit`):
- **Default**: `30`.
- **Range**: `0` to `100`.
- **Effect**: Defines the oversold threshold for buy signals. Lower values allow trades in more extreme conditions.
- **RSI Upper Limit** (`rsi_upper_limit`):
- **Default**: `70`.
- **Range**: `0` to `100`.
- **Effect**: Defines the overbought threshold for sell signals. Higher values allow trades in more extreme conditions.
### 3.6 Signal Settings
- **Cross Window** (`cross_window`):
- **Default**: `0`.
- **Range**: `0` to `5` bars.
- **Effect**: Specifies the lookback period for detecting DI+/- or CCI crosses. `0` requires crosses on the current bar; higher values allow recent crosses, increasing signal frequency.
- **Allow Long Trades** (`allow_long`):
- **Default**: `true`.
- **Effect**: Enables/disables new long trades. If `false`, only closing existing longs is allowed.
- **Allow Short Trades** (`allow_short`):
- **Default**: `true`.
- **Effect**: Enables/disables new short trades. If `false`, only closing existing shorts is allowed.
- **Require DI+/DI- Cross for Buy** (`buy_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI+ crossover DI- for buy signals; if `false`, DI+ > DI- is sufficient.
- **Require CCI Cross for Buy** (`buy_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossover MA for buy signals; if `false`, CCI > MA is sufficient.
- **Require DI+/DI- Cross for Sell** (`sell_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI- crossover DI+ for sell signals; if `false`, DI+ < DI- is sufficient.
- **Require CCI Cross for Sell** (`sell_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossunder MA for sell signals; if `false`, CCI < MA is sufficient.
- **Countertrade** (`countertrade`):
- **Default**: `true`.
- **Effect**: If `true`, closing a trade triggers an opposite trade (e.g., close long, open short) if allowed.
- **Color Background for Open Trades** (`color_background`):
- **Default**: `true`.
- **Effect**: If `true`, colors the chart background green for long trades and red for short trades.
### 3.7 Exit Settings
- **Use MA Cross for Exit** (`use_ma_exit`):
- **Default**: `true`.
- **Effect**: If `true`, closes trades when the price crosses the exit MA (below for long, above for short).
- **MA Length for Exit** (`ma_exit_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the exit MA. Longer periods delay exits.
- **MA Type for Exit** (`ma_exit_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the MA type for exit signals. EMA is more responsive; VWMA weights by volume.
- **Use ADX Change Stop-Loss** (`use_adx_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the ADX changes by a specified percentage.
- **ADX % Change for Stop-Loss** (`adx_change_percent`):
- **Default**: `5.0`.
- **Range**: Minimum `0.0`, step `0.1`.
- **Effect**: Specifies the percentage change in ADX (vs. previous bar) that triggers a stop-loss. Higher values reduce premature exits.
- **Use Performance Stop-Loss** (`use_perf_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the loss exceeds a percentage threshold.
- **Performance Stop-Loss (%)** (`perf_stop_percent`):
- **Default**: `-10.0`.
- **Range**: `-100.0` to `0.0`, step `0.1`.
- **Effect**: Specifies the loss percentage that triggers a stop-loss. More negative values allow larger losses before exiting.
## 4. Visual and Statistical Output
- **Labels**: Displayed at trade entries/exits with arrows (↑ for buy, ↓ for sell) and text ("BUY," "SELL"). A "No Equity" label appears if equity is zero.
- **Background Coloring**: Optionally colors the chart background (green for long, red for short) to indicate open trades.
- **Statistics Table**: Displayed at the top center of the chart, updated on timeframe changes or trade events. Includes:
- **Capital Metrics**: Initial capital, current capital, capital growth (%).
- **Trade Metrics**: Total trades, long/short trades, win rate, long/short win rates, profit factor.
- **Open Trade Status**: Indicates if a long, short, or no trade is open.
## 5. Alerts
- **Buy Signal Alert**: Triggered when `buy_signal` is true ("Cross Buy Signal").
- **Sell Signal Alert**: Triggered when `sell_signal` is true ("Cross Sell Signal").
- **Usage**: Users can set up TradingView alerts to receive notifications for trade signals.
The DTC fix7 Best Combined (New York Time Sessions)The DTC Bot – Weekly Results Recap 🚀
This week the bot came back with serious momentum! Here’s the breakdown of performance across pairs:
✅ AUDCHF: +$6,018.14
✅ NZDCHF: +$4,965.29
✅ AUDUSD: +$2,867.04
✅ NZDJPY: +$1,063.22
❌ NZDCAD: -$5,138.61
📊 Net Result: + $9,775.08
💡 Key Insight: Trading isn’t about one single trade or even one single week — it’s about probabilities over time. After a tough performance last week, this bounce shows how quickly the tide can turn in our favor.
The DTC Bot is designed to adapt across pairs, balance outcomes, and keep probabilities working for you.
⚡ Ready to get access?
The DTC Bot is now available as an invite-only strategy on TradingView:
$59/month subscription
$499/year (save big with the yearly plan!)
SuperPower_369The supertrend is a trend-following overlay placed directly on price charts as a single line that shifts color and position according to trend direction. This indicator was developed by Olivier Seban, primarily to simplify trend detection for traders. Its value is calculated using the Average True Range (ATR) and a multiplier to adjust for market volatility.
SMT Strategy TestingTesting strategy to find optimal settings. Uses SMT divergences to give signals.
MACDEMAAutomatic Strategy for Litecoin on 5-Minute Chart in BingX Perpetual Futures. Combines MACD and 10- & 55-Period EMA. ✅
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.
光速量化-头皮策略v1.1Version: Unlimited trial version.
Principle: RSI and moving average complement each other, taking a bite of both oscillation and trend.
Disadvantage: High drawdown.
Disclaimer: The scalp strategy v1.1 of Lightspeed Quantification is designed for trial users. Those who use this strategy are responsible for their own assets, and any losses incurred are not the responsibility of the author.
版本:无期限试用版。
原理:RSI与均线配合,震荡与趋势都吃一口。
缺点:回撤高。
声明:光速量化的头皮策略v1.1是面向试用者体验的,使用该策略的人请为自己的资产负责,产生任何损失与作者无关。
SuperPower_369Superpower_369
Select a highly liquid crypto pair (e.g., BTC/USDT, ETH/USDT) with tight spreads for lower slippage.
Use Supertrend (10,3) to define the primary market trend — green for bullish, red for bearish.
Apply Bollinger Bands (20,2) to identify volatility and potential breakout or mean-reversion zones.
Enter long positions when Supertrend turns bullish and price bounces from the lower Bollinger Band.
Enter short positions when Supertrend turns bearish and price rejects from the upper Bollinger Band.
Filter trades using RSI (14) — only buy when RSI is above 40 and sell when RSI is below 60, avoiding overbought/oversold traps.
Set a stop-loss just below the recent swing low (for longs) or above the swing high (for shorts).
Use a take profit at 1.5–2× the stop-loss distance or when RSI reaches extreme zones (above 75 or below 25).
Avoid trading during very low volatility periods when Bollinger Bands are too narrow.
Manage risk by risking only 1–2% of capital per trade and adjusting position size based on volatility.
Sniper Algo TradingTurn hesitation into precision. This tool locks onto clean entries and exits on the 1H timeframe for crypto, commodities, and select stocks, cutting through noise and emotion. While others chase pumps, Sniper Algo is already in position.
Gold Multi TP Strategy📘 Strategy Description: Gold Multi Take-Profit Strategy (XAUUSD)
This strategy is designed for Gold (XAUUSD) and works on any timeframe (recommended: 15-min or higher). It executes trades based on a simple EMA crossover logic with optional higher-timeframe and ATR-based filters to confirm trend direction and volatility.
🔑 Core Features
✅ Directional control: Trade only long, short, or both directions (Strategy Direction)
✅ Multi-level Take Profit: Scale out at up to 4 configurable profit targets
✅ Fixed Stop Loss: Set custom SL distance for risk control
✅ Position Sizing: Allocate different percentages to each TP level
✅ HTF Trend Filter (optional): Align trades with weekly candle trend
✅ ATR Filter (optional): Improve entries with volatility-based filter
⚙️ Inputs Explained
Input Name Function
Strategy Direction Choose to trade all, long, or short only
Length of Filter Length of the moving average used for HTF trend filter
Candle Time Reference candle timeframe in minutes (e.g., 1440 for daily)
Length of ATR Period for ATR calculation (volatility)
HTF Higher timeframe for filter (e.g., 1 week)
Filter Checkbox Enable/disable trend filter
Stop Loss Fixed SL distance in price units
Qty_percent1-3 % of position allocated to TP1–TP3 (rest goes to TP4)
Take profit1–4 TP levels (in price units) from entry price
🧠 Logic Overview
Entry triggered on EMA 20/50 crossover
Optional filter: entry allowed only if current price is above its HTF MA (bullish) or below (bearish)
Position is scaled out at up to 4 profit levels using different qty_percent
SL remains fixed throughout the trade
📊 Best Use
Intraday trading on XAUUSD, ideally during London/NY sessions
Trending or breakout conditions
Works best with additional confluence (price action, S/R, news)
EUR/USD Multi-Layer Statistical Regression StrategyStrategy Overview
This advanced EUR/USD trading system employs a triple-layer linear regression framework with statistical validation and ensemble weighting. It combines short, medium, and long-term regression analyses to generate high-confidence directional signals while enforcing strict risk controls.
Core Components
Multi-Layer Regression Engine:
Parallel regression analysis across 3 customizable timeframes (short/medium/long)
Projects future price values using prediction horizons
Statistical significance filters (R-squared, correlation, slope thresholds)
Signal Validation System:
Lookback validation tests historical prediction accuracy
Ensemble weighting of layer signals (adjustable influence per timeframe)
Confidence scoring combining statistical strength, layer agreement, and validation accuracy
Risk Management:
Position sizing scaled by signal confidence (1%-100% of equity)
Daily loss circuit breaker (halts trading at user-defined threshold)
Forex-tailored execution (pip slippage, percentage-based commissions)
Visual Intelligence:
Real-time regression line plots (3 layered colors)
Projection markers for short-term forecasts
Background coloring for market bias indication
Comprehensive statistics dashboard (R-squared metrics, validation scores, P&L)
Key Parameters
Category Settings
Regression Short/Med/Long lengths (20/50/100 bars)
Statistics Min R² (0.65), Correlation (0.7), Slope (0.0001)
Validation 30-bar lookback, 10-bar projection
Risk Controls 50% position size, 12% daily loss limit, 75% confidence threshold
Trading Logic
Entries require:
Ensemble score > |0.5|
Confidence > threshold
Short & medium-term significance
Active daily loss limit not breached
Exits triggered by:
Opposite high-confidence signals
Daily loss limit violation (emergency exit)
The strategy blends quantitative finance techniques with practical trading safeguards, featuring a self-optimizing design where signal quality directly impacts position sizing. The visual dashboard provides real-time feedback on model performance and market conditions.
Long and Short Strategy with Multi Indicators [B1P5]Long and Short Strategy with RSI, ROC, MA Selection, Exit Visualization, and Strength Indicator