MomentumScriptThis is Momentum Tracker based on Richard Driehaus' research:
1) 12–1 momentum (return from t-12 months to t-1 month
2) FIP / path efficiency (many small up days > one big gap)
3) Proximity to 52-week high/low
Strategy!
Quantura - Quantitative AlgorythmIntroduction
“Quantura – Quantitative Algorithm” is an invite-only Pine Script strategy designed for multi-timeframe analysis, combining technical filters with user-adjustable fundamental sentiment. It was primarily developed for cryptocurrency markets but can also be applied across other assets such as Forex, stocks, and indices. The goal is to generate structured trade signals through a confluence of techniques rather than relying on a single indicator.
Originality & Value
Quantura is not a simple mashup of indicators. Its originality comes from how multiple layers of analysis are integrated into a single decision framework . Instead of showing indicators separately, the strategy only issues trades when several conditions align simultaneously:
RSI entry triggers confirm overbought/oversold reversals.
Market structure on a higher timeframe confirms trend direction.
Order block detection highlights zones of concentrated supply and demand.
Premium/Discount zones identify potential over- and undervaluation.
HTF EMA provides trend confirmation.
Optional candlestick patterns strengthen reversal or continuation signals.
An optional correlation filter compares the main asset to a reference instrument.
This design forces agreement between different methodologies (momentum, structure, value, volume, sentiment), which reduces noise compared to using them in isolation.
Functionality & Indicators
Entry trigger: RSI exits from extreme zones.
Filters: Only valid when all selected filters (HTF structure, EMA, order blocks, premium/discount, candlesticks, correlation, volume) confirm the direction.
Fundamental bias: User-defined sentiment and analysis settings (bullish, bearish, neutral) influence whether long or short trades are permitted.
Exits: ATR-based take profit and stop loss, with optional breakeven, opposite-signal exit, and session-end exit.
Visualization: Buy/Sell markers, trend-colored candles, and an optional dashboard summarizing indicator status.
Parameters & Customization
Timeframes: Independent HTF and LTF selection.
Trading direction: Long / Short / Both.
Session and weekday filters.
RSI length and thresholds.
Filters: HTF structure, order blocks, premium/discount, EMA, candlestick, ATR volatility, volume zones, correlation.
Exit rules: ATR multipliers for TP/SL, breakeven logic, session-end exit, opposite-signal exit.
Visuals: Toggle signals, candles, dashboard, custom colors.
Default Properties (Strategy Settings)
Initial Capital: 200,000 USD
Position Size: 1 BTC
Commission: 0.25%
Slippage: enabled (1 tick)
Pyramiding: 0 (one position at a time)
Note: The position sizing of 1 BTC per trade is intentionally set for backtesting demonstration. Most traders prefer to risk 1-5% of equity.
Backtesting & Performance
Backtests on BTCUSD (2 years) with the above defaults showed:
103 trades
Win rate: 42%
Profit factor: 1.3
Maximum drawdown: 10%
These results illustrate how the confluence model behaves, but they are not predictive of future performance . Users should re-test with their own preferred symbols, settings, and timeframes.
Risk Management
ATR-based stops and targets scale with volatility.
Commission and slippage are included by default for realistic modeling.
Opposite-signal exit helps capture trend reversals.
Session-end exit can close intraday positions before illiquid hours.
Breakeven option protects profits when available.
Although the default allocation uses 1 BTC per trade for demonstration, this is not a recommendation. Users are encouraged to adjust risk sizing downwards to sustainable levels (commonly 1-5%).
Limitations & Market Conditions
Performs best in volatile, liquid markets (e.g., crypto).
May struggle in prolonged sideways markets with low volatility.
News events and fundamentals outside user inputs can override signals.
Usage Guide
Add “Quantura – Quantitative Algorithm” to your chart in strategy mode.
Select HTF and LTF timeframes, trading direction, and session filters.
Configure confluence filters (structure, EMA, order blocks, premium/discount, candlestick, correlation, volume).
Set sentiment and analysis bias in fundamental settings.
Adjust ATR multipliers and exits.
Review buy/sell signals and analyze performance in the Strategy Tester.
Author & Access
Developed 100% by Quantura . Distributed as an Invite-Only script . Access is granted upon request. Details are provided in the Author’s Instructions field.
Important: This description complies with TradingView’s Script Publishing Rules and House Rules. It does not guarantee profitability, avoids unrealistic claims, and explains how the strategy integrates multiple methods into a coherent decision framework.
ORB FVG Strategy with telegram V6.1Summary
Intraday NY-session strategy with Opening-Range bias (09:30–10:00 NY), FVG entries (incl. optional HTF FVGs), momentum filters (LinReg slope & Williams %R), limit entries inside the zone, SL from FVG anchors, and TP via risk-reward. Includes session/trade caps, pending-order handling, auto-cancel at NY time, and optional Telegram webhook alerts.
Feature Overview
Opening Range & Bias: OR high/low built until 10:00 NY, then frozen. Bias from confirmed 5-minute candles (modes: Body Close, Complete Candle, Wick Only).
FVG Scanner: Bull/bear FVGs (choose wick or body gaps), min size, auto-extend, mitigation cleanup (touch or 50%).
HTF FVG (10 min): Optional – displayed after ≥ 2 consecutive FVGs; cleans up on touch/50%.
Entry/SL/TP: Entry at X% fill (+extra %) within the FVG; SL from FVG candle / FVG-1 / FVG-2 (smart) + buffer; TP via risk-reward.
Momentum Filters: LinReg slope (MLL) + Williams %R with threshold/slope filters (individually switchable).
Intrabar Mode (optional): Immediate Open/intrabar entry on touch (calc_on_every_tick=true) or classic bar-close confirmation (toggle).
Trade Management: Max trades/day, pending cap, auto-cancel at defined NY time, pause after first winner (optional).
Telegram: Programmatic alerts via alert() with Telegram-ready JSON payload.
Parameters (compact)
Group Parameter Purpose
Sessions Trading session, Opening range Trading/OR window (internal NY TZ)
Bias Body Close / Complete Candle / Wick Only Bias confirmation relative to OR
Liquidity LQ session, lookback days, cleanup points, show lines Intraday liquidity marks & cleanup
FVG Min size, wick/body, colors, extend, cleanup Detection/visualization & validity
HTF FVG (10 m) Toggle/Display/Colors Conservative HTF filter/POI
Entry Fill %, extra %, max pending, validity (bars), cancel time, intrabar switch Execution timing, order caps, auto-cancel
Stop Loss Source: Candle / -1 / -2 (smart), buffer (points) SL anchor from FVG history + safety offset
Take Profit Risk-Reward (R:R) Target calculation
Momentum LinReg length/min slope, W%R length/min slope, HUD Trend/momentum filters
Trade Mgmt Max trades/day, pause after win Daily cap / risk cooldown
Telegram Enabled, tester, interval, channel id Webhook output & test signals
Debug & Info Debug panel, rejection reasons On-chart status/diagnostics
Alerts / Telegram Webhook (Quick Setup)
Create an alert with Condition: “Any alert() function call”.
Webhook URL: api.telegram.org
Message: leave empty (the strategy provides JSON via alert() – includes chat_id, parse_mode, text).
Ensure your bot can post to the channel and the chat_id is valid.
Repainting & Backtesting
HTF series via lookahead_off on closed higher-TF candles; FVG detection on confirmed bars (barstate.isconfirmed).
Intrabar/Open entries allow earlier fills but typically cause differences between backtest and live (tick granularity/slippage, limit touch on bar OHLC).
For reproducibility, trade without intrabar (bar-close only).
Limitations
No full tick simulation; limit fills rely on bar OHLC.
Liquidity “cleanup” is rule-based (not an orderbook).
Telegram depends on correct webhook configuration.
Tips
Timeframes: M5 (intrabar)
Start with modest R:R (e.g., 1.5–2.0) and tune filters carefully.
Disclaimer
No financial advice. Past results do not guarantee future performance. Use responsibly and follow Public Library rules.
License / Credits
© 2025 Lean Trading (Lennart Pomreinke). License: MPL-2.0.
Changelog
V06.1: Intrabar switch (Open/intrabar vs bar-close), Telegram sanitizer & tester, HTF-FVG cleanup, refined pending/cancel logic, debug panel (status & rejections).
Neural Fusion Pro v2 — Adaptive Trend Strategy🔥 Neural Fusion Pro v2 — Adaptive Trend Strategy
This strategy fuses trend, momentum, volatility, and multi-timeframe analysis into one powerful trading system.
It adapts dynamically to market conditions with risk-based position sizing, ATR stop losses, and reward-target exits.
✅ Features:
📈 EMA + RSI Fusion → core entries with adaptive crossover filters.
⏱️ Multi-Timeframe Confirmation → confirm trades with higher timeframe EMA.
📊 ADX Trend Strength Filter → avoids chop, trades only strong trends.
⏰ Session Filter → restricts trading to your chosen market session.
🛡️ ATR-based Stop Loss + Risk/Reward TP.
⚖️ Dynamic Position Sizing → risk % per trade with max position cap.
💡 Equity Curve Display + Alerts → track performance and automate signals.
💡 Best Use Cases:
Works across crypto, forex, indices, and stocks.
Ideal for trend-followers who want risk-managed signals.
Can be combined with manual confirmation for swing or intraday trading.
FVG Ultra Assertive - Individual Filters (mtbr)FVG Ultra Assertive - Individual Filters (mtbr)
What this script offers:
This strategy detects and highlights FVGs (Fair Value Gaps) on the chart, providing traders with a visual and systematic approach to identify potential price inefficiencies. The script plots bullish and bearish FVG zones using customizable boxes and labels, allowing users to easily spot high-probability trading areas. In addition, it opens and closes simulated trades based on the detected FVGs, enabling full backtesting and strategy performance evaluation. It integrates multiple independent filters to validate the strength of each FVG signal before entering a trade.
How it works:
The script identifies:
Bullish FVGs when the current low is higher than the high of two bars ago.
Bearish FVGs when the current high is lower than the low of two bars ago.
Once an FVG is detected, it applies three optional independent filters:
GAP/ATR Filter:
Measures the FVG size relative to the Average True Range (ATR). Only gaps exceeding a user-defined multiple of ATR are considered valid.
Support/Resistance (S/R) Filter:
Uses pivot points to check if the FVG overlaps with recent high/low pivot levels within a tolerance percentage. This ensures the gap aligns with meaningful market levels.
Stochastic Filter:
Applies a stochastic oscillator to confirm momentum. Bullish FVGs are validated when stochastic values are oversold, and bearish FVGs when overbought.
After passing the selected filters, the strategy opens trades:
LONG FVG for bullish signals (buy)
SHORT FVG for bearish signals (sell)
The strategy automatically closes positions when an opposite signal appears, generating a backtest report with trades, profits, and statistics. The final bullish or bearish FVG signals are plotted as colored boxes on the chart with labels “BULL FVG” or “BEAR FVG” for immediate visual reference.
How to configure it for use:
Use GAP/ATR Filter: Enable or disable the ATR-based filter and adjust the ATR period (ATR Length) and minimum gap multiplier (Minimum Gap x ATR).
Use S/R Filter: Enable or disable the pivot-based S/R filter. Configure the pivot lookback periods (Pivot Left and Pivot Right) and the tolerance percentage (Gap Tolerance %).
Use Stochastic Filter: Enable or disable stochastic confirmation. Adjust the K and D lengths (Stoch K Length and Stoch D Length) and the overbought/oversold thresholds (Stoch Overbought and Stoch Oversold).
Colors: Customize the colors for bullish and bearish FVGs (FVG Bull and FVG Bear) to match your chart preferences.
Usage Tips:
Apply this strategy to any timeframe; shorter timeframes generate more frequent FVGs, while higher timeframes highlight stronger gaps.
Combine FVG signals with other technical analysis tools for better trade confirmation.
Use the box and label visualization to quickly scan charts for trade opportunities without cluttering the chart.
The strategy’s trades (LONG and SHORT) provide backtesting results and performance statistics for each signal.
Cnagda Liquidit Trading SystemCnagda Liquidit Trading System helps spot where price is likely to trap traders and reverse, then gives simple, actionable Level to entry, place SL, and take profits with confidence. It blends imbalance zones, trend bias, order blocks, liquidity pools, high-probability fake Signal, and context-aware candle patterns into one clean workflow.
🟩🟥 Imbalance boxes: “Crowd rushed, gaps left”
What it is: Green/red boxes mark fast, one-sided moves where price “skipped” orders—think FVG-like zones that often get revisited.
Why it helps: Price frequently pulls back to “fill” these zones, creating clean retest entries with logical stops.
⏩How to use:
Green box = potential demand retest; Red box = potential supply retest. Enter on pullback into box, not on first impulse. Put stop on far side of box and aim first targets at recent swing points.
↕️ Swing bias (HH/HL vs LH/LL): “Which way is the road?”
What it is: Higher-highs/higher-lows = up-bias; Lower-highs/lower-lows = down-bias. system plots Buy/Sell OB levels aligned with that bias.
Why it helps: Trading with the broader flow reduces “hero trades” against institutions. Bias gives clearer entries and cleaner drawdowns.
⏩How to use:
Up-bias: look for long on Buy OB retests. Down-bias: look for short on Sell OB retests. Wait for a small rejection/engulfing to confirm before triggering.
🧱Order blocks: “Where big players remember”
What it is: last opposite-colored candle before an impulsive move—these zones often hold memory and reaction. system plots these as Buy/Sell OB lines.
Why it helps: Many breakouts pull back to the origin. Good entries often happen on retest, not on the breakout chase.
⏩ How to use:
Let price return into the OB, show wick rejection, and decent volume. Enter with stop beyond OB; define risk-reward before entry.
📊Volume coloring: “How Volume is move?”
What it is: Bar color reflects relative volume; inside bars are black. The dashboard also shows Volume and “Volume vs Prev.”
Why it helps: Patterns without volume often fade; volume validates strength and intent of moves.
⏩ How to use:
Favor entries where imbalance/OB/liquidity-grab coincide with higher volume. If volume is weak, reduce size or skip.
🧲 BSL/SSL liquidity pools: “Fishing for stops”
What it is: Equal highs cluster stops above (BSL); equal lows cluster stops below (SSL). system plots these and highlights the nearest one (“magnet”).
Why it helps: Price often sweeps these pools to trigger stops before reversing. This is a prime trap-reversal location.
⏩ How to use:
Watch nearest BSL/SSL. If price wicks through and closes back inside, anticipate a reversal. Trade reaction, not first poke. When price closes beyond, consider that pool mitigated and move on.
🟢🔴 Advanced liquidity grab: “Catch fakeout”
What it is: Bullish grab = makes a new low beyond a prior low but closes back above it, with a long lower wick, small body, and higher volume. Bearish is mirror. Labeled automatically.
Why it helps: It exposes trap moves (stop hunts) and often precedes true direction.
⏩ How to use:
Best when it aligns with a nearby imbalance/OB and supportive volume. Enter on reversal candle break or on retest. Stop goes beyond sweep wick.
🧠 Smart candlestick patterns (only in right place)
What it is: Engulfing, Hammer, Shooting Star, Hanging Man, Doji (with high volume), Morning/Evening Star, Piercing—but marked “effective” only if context (swing/trend/location) agrees.
Why it helps: same pattern in the wrong place is noise; in the right place, it’s signal.
⏩ How to use:
Location first (BSL/SSL/OB/imbalance), then pattern. Treat pattern as trigger/confirmation—one fresh label shows to keep chart clean.
🧭 Dashboard: “Context in a glance”
⏩ Reversal Level: current swing anchor—expect turns or reactions nearby; great for alerts and planning.
⏩ Volume vs Prev + Volume: Strength meter for signal candle—higher adds conviction.
⏩ Nearest Pool: next “magnet” area—look for sweeps/rejections there.
🧩Step-by-step trading flow (with mindset)
⏩ Set bias: HH/HL = long bias, LH/LL = short bias. Counter-trend only on clean sweeps with strong confirmation.
⏩ Find magnet: Check Nearest Pool (BSL/SSL). Focus attention there; it saves screen time.
⏩ Wait for event: Look for a sweep/grab label, or sharp rejection at pool/OB/imbalance. Avoid FOMO.
⏩ Add confluence: Stack 2–3 of these—imbalance box, OB, contextual pattern, supportive volume.
⏩Plan entry: Bullish: trigger above reversal candle high or take retest of FVG/OB. Stop below sweep wick/zone. Target at least 1:1.5–1:2.
Bearish: mirror above.
⏩Manage smartly: Take partials, move to breakeven or trail thoughtfully. Don’t drag stops inside zone out of emotion.
🎛️ Parameter tuning (to reduce human error)
⏩ swingLen: Smaller = faster but noisier; larger = cleaner but slower. Backtest first, then go live.
⏩ Tolerance (ATR or percent): ATR tolerance adapts to volatility (good for fast markets and lower TFs). Start around 0.15–0.30. In calm markets, try percent 0.05–0.15%.
⏩ minBarsGap: Start with 3–5 so equal highs/lows are truly equal—reduces false pools.
❌Common mistakes → ✅ Better habits
⏩Chasing every breakout → Wait for sweep/rejection, then confirm.
⏩Ignoring volume → Validate strength; cut size or skip on weak volume.
⏩Losing history of pools → If reviewing/backtesting, keep mitigated pools visible (dashed/faded).
⏩Over-tight tolerance/too small swingLen → Increases false signals; backtest to find balance.
📝 checklist (before entry)
⏩ Is there a nearby BSL/SSL and did a sweep/grab happen there?
⏩ Is there a close imbalance/OB that price can retest?
⏩ Do we have an effective pattern plus supportive volume?
⏩Is the stop beyond the wick/zone and RR ≥ 1:1.5?
•?((¯°·._.• 🎀 𝐻𝒶𝓅𝓅𝓎 𝒯𝓇𝒶𝒹𝒾𝓃𝑔 🎀 •._.·°¯((?•
Advanced Supertrend ADX Strategy with Highest ReturnOverview
This sophisticated trading strategy combines the proven Supertrend indicator with advanced momentum filters and trend strength analysis to identify high-probability long entries in trending markets.
Key Features
✅ Supertrend-Based Signals: Uses optimized ATR calculations for reliable trend detection
✅ Advanced Momentum Filtering: Multiple proprietary momentum filters ensure entry quality
✅ Trend Strength Validation: ADX-based confirmation prevents false signals in weak trends
✅ Intelligent Risk Management: Dynamic stop-loss system based on price action
✅ Visual Stop Loss Indicators: Clear visual representation of risk levels
How It Works
The strategy enters long positions when:
Supertrend indicator confirms bullish trend reversal
Proprietary momentum conditions align for optimal entry timing
Trend strength exceeds minimum threshold (ADX > 20)
Multiple timeframe momentum filters confirm signal quality
Ideal For
Trending markets (stocks, forex, crypto, indices)
Swing trading timeframes (15m to 4H work best)
Traders seeking systematic, rule-based entries
Risk-conscious traders wanting clear stop levels
Settings
ATR Period: Adjustable for different volatility environments (default: 10)
Supertrend Factor: Fine-tune sensitivity (default: 3.0)
ADX Parameters: Customize trend strength requirements
Performance Notes
Long-only strategy optimized for uptrending markets
Works best in trending conditions, may underperform in choppy markets
Designed for systematic execution with clear entry/exit rules
Disclaimer
Past performance does not guarantee future results. Always use proper risk management and position sizing appropriate for your account size. This is just for education purpose only and not recomanded for trading in s
Signalgo Strategy ISignalgo Strategy I: Technical Overview
Signalgo Strategy I is a systematically engineered TradingView strategy script designed to automate, test, and manage trend-following trades using multi-timeframe price/volume logic, volatility-based targets, and multi-layered exit management. This summary covers its operational structure, user inputs, entry and exit methodology, unique technical features, and practical application.
Core Logic and Workflow
Multi-Timeframe Data Synthesis
User-Defined Timeframe: The user chooses a timeframe (e.g., 1H, 4H, 1D, etc.), on which all strategy signals are based.
Cross-Timeframe Inputs: The strategy imports closing price, volume, and Average True Range (ATR) for the selected interval, independently from the chart’s native timeframe, enabling robust multi-timeframe analysis.
Price Change & Volume Ratio: It calculates the percent change of price per bar and computes a volume ratio by comparing current volume to its 20-bar moving average—enabling detection of true “event” moves vs. normal market noise.
Hype Filtering
Anti-Hype Mechanism: An entry is automatically filtered out if abnormal high volume occurs without corresponding price movement, commonly observed during manipulation or announcement periods. This helps isolate genuine market-driven momentum.
User Inputs
Select Timeframe: Choose which interval drives signal generation.
Backtest Start Date: Specify from which date historical signals are included in the strategy (for precise backtests).
Take-Profit/Stop-Loss Configuration: Internally, risk levels are set as multiples of ATR and allow for three discrete profit targets.
Entry Logic
Trade Signal Criteria:
Price change magnitude in the current bar must exceed a fixed sensitivity threshold.
Volume for the bar must be significantly elevated compared to average, indicating meaningful participation.
Anti-hype check must not be triggered.
Bullish/Bearish Determination: If all conditions are met and price change direction is positive, a long signal triggers. If negative, a short signal triggers.
Signal Debouncing: Ensures a signal triggers only when a new condition emerges, avoiding duplicate entries on flat or choppy bars.
State Management: The script tracks whether an active long or short is open to avoid overlapping entries and to facilitate clean reversals.
Exit Strategy
Take-Profits: Three distinct profit targets (TP1, TP2, TP3) are calculated as fixed multiples of the ATR-based stop loss, adapting dynamically to volatility.
Reversals: If a buy signal appears while a short is open (or vice versa), the existing trade is closed and reversed in a single step.
Time-Based Exit: If, 49 bars after entry, the trade is in-profit but hasn’t reached TP1, it exits to avoid stagnation risk.
Adverse Move Exit: The position is force-closed if it suffers a 10% reversal from entry, acting as a catastrophic stop.
Visual Feedback: Each TP/SL/exit is plotted as a clear, color-coded line on the chart; no hidden logic is used.
Alerts: Built-in TradingView alert conditions allow automated notification for both entries and strategic exits.
Distinguishing Features vs. Traditional MA Strategies
Event-Based, Not Just Slope-Based: While classic moving average strategies enter trades on MA crossovers or slope changes, Signalgo Strategy I demands high-magnitude price and volume confirmation on the chosen timeframe.
Volume Filtering: Very few MA strategies independently filter for meaningful volume spikes.
Real Market Event Focus: The anti-hype filter differentiates organic market trends from manipulated “high-volume, no-move” sessions.
Three-Layer Exit Logic: Instead of a single trailing stop or fixed RR, this script manages three profit targets, time-based closures, and hard adverse thresholds.
Multi-Timeframe, Not Chart-Dependent: The “main” analytical interval can be set independently from the current chart, allowing for in-depth cross-timeframe backtests and system runs.
Reversal Handling: Automatic handling of signal reversals closes and flips positions precisely, reducing slippage and manual error.
Persistent State Tracking: Maintains variables tracking entry price, trade status, and target/stop levels independently of chart context.
Trading Application
Strategy Sandbox: Designed for robust backtesting, allowing users to simulate performance across historical data for any major asset or interval.
Active Risk Management: Trades are consistently managed for both fixed interval “stall” and significant loss, not just via trailing stops or fixed-day closes.
Alert Driven: Can power algorithmic trading bots or notify discretionary traders the moment a qualifying market event occurs.
Script_Algo - ORB Strategy with Filters🔍 Core Concept: This strategy combines three powerful technical analysis tools: Range Breakout, the SuperTrend indicator, and a volume filter. Additionally, it features precise customization of the number of candles used to construct the breakout range, enabling optimized performance for specific assets.
🎯 How It Works:
The strategy defines a trading range at the beginning of the trading session based on a selected number of candles.
It waits for a breakout above the upper or below the lower boundary of this range, requiring a candle close.
It filters signals using the SuperTrend indicator for trend confirmation.
It utilizes trading volume to filter out false breakouts.
⚡ Strategy Features
📈 Entry Points:
Long: Candle close above the upper range boundary + SuperTrend confirmation
Short: Candle close below the lower range boundary + SuperTrend confirmation
🛡️ Risk Management:
Stop-Loss: Set at the opposite range boundary.
Take-Profit: Calculated based on a risk/reward ratio (3:1 by default).
Position Size: 10 contracts (configurable).
⚠️ IMPORTANT SETTINGS
🕐 Time Parameters:
Set the correct time and time zone!
❕ATTENTION: The strategy works ONLY with correct time settings! Set the time corresponding to your location and trading session.
📊 This strategy is optimized for trading TESLA stock!
Parameters are tailored to TESLA's volatility, and trading volumes are adequate for signal filtering. Trading time corresponds to the American session.
📈 If you look at the backtesting results, you can see that the strategy could potentially have generated about 70 percent profit on Tesla stock over six months on 5m timeframe. However, this does not guarantee that results will be repeated in the future; remain vigilant.
⚠️ For other assets, the following is required:
Testing and parameter optimization
Adjustment of time intervals and the number of candles forming the range
Calibration of stop-loss and take-profit levels
⚠️ Limitations and Drawbacks
🔗 Automation Constraints:
❌ Cannot be directly connected via Webhook to CFD brokers!
Additional IT solutions are required for automation, thus only manual trading based on signals is possible.
📉 Risk Management:
Do not risk more than 2-3% of your account per trade.
Test on historical data before live use.
Start with a demo account.
💪 Strategy Advantages
✅ Combined approach – multiple signal filters
✅ Clear entry and exit rules
✅ Visual signals on the chart
✅ Volume-based false breakout filtering
✅ Automatic position management
🎯 Usage Recommendations
Always test the strategy on historical data.
Start with small trading volumes.
Ensure time settings are correct.
Adapt parameters to current market volatility.
Use only for stocks – futures and Forex require adaptation.
📚 Suitable Timeframes - M1-M15
Only highly liquid stocks
🍀 I wish all subscribers good luck in trading and steady profits!
📈 May your charts move in the right direction!
⚠️ Remember: Trading involves risk. Do not invest money you cannot afford to lose!
Script_Algo - High Low Range MA Crossover Strategy🎯 Core Concept
This strategy uses modified moving averages crossover, built on maximum and minimum prices, to determine entry and exit points in the market. A key advantage of this strategy is that it avoids most false signals in trendless conditions, which is characteristic of traditional moving average crossover strategies. This makes it possible to improve the risk/reward ratio and, consequently, the strategy's profitability.
📊 How the Strategy Works
Main Mechanism
The strategy builds 4 moving averages:
Two senior MAs (on high and low) with a longer period
Two junior MAs (on high and low) with a shorter period
Buy signal 🟢: when the junior MA of lows crosses above the senior MA of highs
Sell signal 🔴: when the junior MA of highs crosses below the senior MA of lows
As seen on the chart, it was potentially possible to make 9X on the WIFUSDT cryptocurrency pair in just a year and a half. However, be careful—such results may not necessarily be repeated in the future.
Special Feature
Position closing priority ❗: if an opposite signal arrives while a position is open, the strategy first closes the current position and only then opens a new one
⚙️ Indicator Settings
Available Moving Average Types
EMA - Exponential MA
SMA - Simple MA
SSMA - Smoothed MA
WMA - Weighted MA
VWMA - Volume Weighted MA
RMA - Adaptive MA
DEMA - Double EMA
TEMA - Triple EMA
Adjustable Parameters
Senior MA Length - period for long-term moving averages
Junior MA Length - period for short-term moving averages
✅ Advantages of the Strategy
🛡️ False Signal Protection - using two pairs of modified MAs reduces the number of false entries
🔄 Configuration Flexibility - ability to choose MA type and calculation periods
⚡ Automatic Switching - the strategy automatically closes the current position when receiving an opposite signal
📈 Visual Clarity - all MAs are displayed on the chart in different colors
⚠️ Disadvantages and Risks
📉 Signal Lag - like all MA-based strategies, it may provide delayed signals during sharp movements
🔁 Frequent Switching - in sideways markets, it may lead to multiple consecutive position openings/closings
📊 Requires Optimization - optimal parameters need to be selected for different instruments and timeframes
💡 Usage Recommendations
Backtest - test the strategy's performance on historical data
Optimize Parameters - select MA periods suitable for the specific trading instrument
Use Filters - add additional filters to confirm signals
Manage Risks - always use stop-loss and take-profit orders.
You can safely connect to the exchange via webhook and enjoy trading.
Good luck and profits to everyone!!
Script_Algo - Fibo Correction Strategy🔹 Core Concept
The strategy is built on combining Fibonacci retracement levels, candlestick pattern confirmation, and trend filtering for trade selection. It performs well on the 1-hour timeframe across many cryptocurrency pairs. Particularly on LINKUSDT over the past year and a half, despite the not very optimal 1:1 risk/reward ratio.
The logic is simple: after a strong impulse move, the price often retraces to key Fibonacci levels (specifically, the 61.8% level). If a confirming candlestick (pattern) appears at this moment, the strategy looks for an entry in the direction of the main trend.
🔹 Indicators Used in the Strategy
ATR (Average True Range) — Used to calculate the stop-loss and take-profit levels.
EMA (9 and 21) — Additional moving averages for assessing the direction of movement (not directly used in entry conditions, but the logic can be expanded to include them).
SMA (Trend Filter, 20 by default) — The trend direction filter. Trades are only opened in its direction.
Fibonacci Levels — The 61.8% retracement level is calculated based on the high and low of the previous candle.
🔹 Entry Conditions
🟢 Long (Buy):
Previous Candle:
Must be green (close higher than open).
Must have a body not smaller than a specified minimum.
The upper wick must not exceed 30% of the body size.
→ This filters out "weak" or "indecisive" candles.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes above this level.
Closes above the Trend Filter (SMA) line.
A position is opened only if there are no other open trades at the moment.
🔴 Short (Sell):
Previous Candle:
Must be red (close lower than open).
Must have a body not smaller than a specified minimum.
The lower wick must not exceed 30% of the body size.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes below this level.
Closes below the Trend Filter (SMA) line.
A trade is opened only if there are no other open positions.
🔹 Risk Management
Stop-Loss = ATR × multiplier (default is 5).
Take-Profit = ATR × the same multiplier.
Thus, the default risk/reward ratio is 1:1, but it can be easily adjusted by changing the coefficient. Although, strangely enough, this ratio has shown the best results on some assets on the 1-hour timeframe.
🔹 Chart Visualization
Fibonacci level for Long — Green line with circles.
Fibonacci level for Short — Red line with circles.
Trend Filter line (SMA) — Blue.
🔹 Strengths of the Strategy
✅ Utilizes a proven market pattern — retracement to the 61.8% level.
✅ Further filters entries using trend and candlestick patterns.
✅ Simple, transparent logic that is easy to expand (e.g., adding other Fib levels, an EMA filter, etc.).
🔹 Limitations
⚠️ Performs better in trending markets; can generate false signals during ranging (sideways) conditions.
⚠️ The fixed 1:1 risk/reward ratio is not always optimal and could be refined.
⚠️ Performance depends on the selected timeframe and ATR parameters.
📌 Summary:
The strategy seeks corrective entries in the direction of the trend, confirmed by candlestick patterns. It is versatile and can be applied to forex pairs, cryptocurrencies, and stocks.
⚠️ Not financial advice. Pay close attention to risk management to avoid blowing your account. The strategy is not repainting — I have personally verified it through real testing — but it may not necessarily replicate the same results in the future, as the market is constantly changing. Test it, profit, and good luck to everyone!
OrderVibe indicator (Invite-Only)What it is
OrderVibe is a closed-source tool that visualizes market structure and volatility. It does not generate trade calls or manage orders. It draws zones/levels and optional alerts so traders can build their own process.
How it works - technical overview (conceptual)
* Trend regime filter (optional). Uses a sloped moving-average baseline to qualify trend and can require higher-timeframe (HTF) agreement.
* Momentum gate. A smoothed, rate-of-change–style momentum must align with the trend and exceed a configurable strength threshold.
* Volatility filter. ATR-based bounds suppress setups when volatility is unusually low or high for the instrument.
* Order-block zones (SMC element). Marks candidate OB zones derived from pre-break structure and uses them for confluence; zones invalidate on decisive closes.
* Support/Resistance. Clusters recent pivots into zones using ATR-relative distance, keeping the most relevant areas by recency/proximity.
* Informational entry label. Prints on controlled retests of active zones when trend/momentum/volatility conditions are met. Labels are informational only.
* Baseline stop suggestion. Suggests a protective distance based on ATR or recent swing, whichever is more conservative.
* ATR TP ladder (TP1-TP10). Optional multi-level targets built from ATR multiples; per-level toggles and alerts.
* Cooldown. After a label, a short cooldown prevents duplicates; invalid zones are removed automatically.
* Alerts (optional). New S/R zone, new OB zone, TP reached, and related events.
Why it’s not a simple mashup
* Dual qualification (trend + momentum) with optional HTF agreement.
* Volatility-aware suppression and ATR-normalized zone clustering.
* Integrated ATR TP ladder with per-level controls and cooldown in one workflow.
* Provides clear value beyond classic MA/ATR combinations by combining HTF-aware gating, ATR-relative zone clustering, and structured multi-target management.
How to use
* Works on any symbol; defaults are calibrated for intraday XAUUSD.
* Adjust ATR lengths/ranges and TP multipliers to your instrument.
* Hide unused TP levels; forward-test before using live.
* Educational analytics only; no signals or advice.
Disclaimer
Analytical tool only. This is not financial advice and outcomes are not guaranteed. Use independent judgment and risk management.
Access
Access is invite-only and granted manually on TradingView. For contact details, see my Signature.
PowerTrend Pro Strategy – Gold OptimizedTired of false signals on Gold?
PowerTrend Pro combines VWAP, Supertrend, RSI, and smart MA filters with trailing stops & break-even logic to deliver high-probability trades on XAUUSD.
PowerTrend Pro Strategy is a professional-grade trading system designed to capture high-probability swing and intraday opportunities on XAUUSD (Gold) and other volatile markets.
🔑 Core Features
VWAP Anchoring – institutional fair value reference to filter trades.
Supertrend (ATR-based) – adaptive trend filter tuned for Gold’s volatility.
Multi-Timeframe RSI – confirms momentum alignment across intraday and higher timeframe.
EMA + SMA Combo – ensures trades follow strong directional bias, reducing false signals.
Dynamic Risk Management
Adjustable Take Profit / Stop Loss (%)
Trailing Stop that locks in profits on extended moves
Break-Even Logic (stop loss moves to entry once price is in profit)
⚡ Gold-Tuned Presets
XAUUSD 1H → tighter TP/SL & faster entries for active intraday trading.
XAUUSD 4H → wider ATR filter & trailing stops to capture bigger swings.
Generic Mode → works on Forex, Indices, and Crypto (fully customizable).
🎯 Why It Works
Gold is notoriously volatile — quick spikes wipe out weak strategies. PowerTrend Pro solves this by combining:
✅ Institutional bias (VWAP)
✅ Adaptive trend filter (Supertrend)
✅ Momentum confirmation (RSI MTF)
✅ Robust trend structure (EMA + SMA)
✅ Smart exits (TP, SL, trailing & breakeven)
This multi-layer confirmation makes entries stronger and keeps risk under control.
🛠️ Usage
Add the strategy to your chart.
Choose a preset (XAUUSD 1H, 4H, or Generic).
Run Strategy Tester for performance metrics.
Optimize TP/SL and ATR values for your broker & market conditions.
🔥 Pro Tip: Combine this strategy with a session filter (London/NY overlap) or volume confirmation to boost accuracy in Gold.
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.
Vesperis v8.1 by JaeheeVesperis v8.1 by Jaehee
Overview
This script is a short-side trading strategy designed for trend-following conditions where bearish momentum aligns across multiple independent filters. It does not aim to predict tops or bottoms. Instead, it waits for confirmation that the market has entered a strong downtrend and then manages trades with structured risk controls.
Core Components
The strategy combines several classical concepts but applies them in a multi-filter consensus framework to reduce false signals:
• SSL Hybrid Filter → Defines directional bias using an EMA-based signal line
• MOBO Bands (modified Bollinger framework) → Measures volatility compression and breakout expansion
• EMA 20/50/100 Alignment → Confirms bearish structure when shorter averages remain under longer ones
• ADX Strength Gate → Trades are permitted only when trend strength (Wilder’s ADX) is above a chosen threshold
• Heikin Ashi Smoothing → Provides visual clarity and reduces noise in trend recognition
• Cooldown Rule → After a losing trade, the system waits a configurable number of bars before re-entry to enforce discipline
Risk Management
• Take-Profit (TP) and Stop-Loss (SL) are dynamically attached to each entry
• TP and SL are ratio-based relative to the entry price
• Cooldown logic prevents immediate re-entries after losses
• Position sizing is based on percentage of equity, with commissions factored in for realistic simulation
Visualization
• EMA 20/50/100 ribbon with soft gradient colors
• MOBO band plotted with contrasting tones for clarity
• SSL baseline overlay
• ADX values displayed every 10 bars for contextual strength
• Background shading highlights bullish vs bearish trend regimes
• Heikin Ashi candle coloring for directional bias emphasis
Why This Combination?
Each component addresses a different market dimension:
• Direction (SSL, EMA alignment)
• Volatility & Breakout Context (MOBO Bands)
• Strength (ADX filter)
• Trade Discipline (Cooldown rule)
When layered together, they reduce the chance of acting on a single misleading condition. For example, a close under MOBO support is acted upon only if ADX confirms strong momentum and EMA structure validates a broader bearish regime. This multi-gate approach balances selectivity with responsiveness, aiming for consistent entries during trending phases rather than over-trading in sideways conditions.
Important Notes
• This script is a strategy, not just an indicator. It performs backtestable entries and exits within TradingView’s framework
• Default properties include realistic assumptions: commission, slippage approximation, and percentage-based position sizing
• Results will vary by market and timeframe; this tool does not guarantee outcomes and should be combined with independent risk management
• Invite-only access ensures controlled distribution
Compliance with TradingView House Rules
• No external links, promotions, or contact information
• Clear explanation of what, how, and why without revealing full code logic
• Highlights originality: consensus-based filter design with combined ADX, SSL, MOBO, EMA gating
• Provides conceptual and educational value to traders while remaining distinct from classic single-element scripts
TrendBreaks & MA Divergence v1.3 — couleurs perso (panel)clean and easy predictive mouvements and swing stratagy
Marcius Studio® - DCA Grid Bot Backtesting™DCA Grid Bot Backtesting™ — is a flexible backtesting strategy for DCA grid trading. It allows you to define a price range and split it into multiple grid levels. The bot opens positions when price touches new levels and closes them at the Take Profit target, simulating real grid trading conditions.
The main purpose of this tool is to test and optimize grid-based strategies with customizable parameters, capital allocation, and automatic visualization directly on the TradingView chart.
Important! This strategy is intended for backtesting and educational purposes . Historical results do not guarantee future performance.
How to Use
Automatic: When adding the script to a chart, you can select Lower/Upper Limit and Start/End Time directly on the chart. Limits can be adjusted by dragging.
Manual: Set the Lower/Upper Limit and Start/End Time directly in the script settings.
Recommendations
The script works best on LOW-LIQUIDITY assets when used to simulate concentrated liquidity within a VRVP-defined range.
The script is designed for a LONG trend , so it performs best when opening LONG positions .
The script is NOT WELL-SUITED for situations with a significant market downturn, just like any other grid bots.
Strategy Settings
Lower/Upper Limit: Defines the trading range for the grid.
Start/End Time: Defines the backtesting period.
Grid Levels: Number of price steps within the range.
Take Profit (%): Auto = Grid Step Percent.
Example Settings
Applicable for example OKX:PUMPUSDT.P etc.
Timeframe: 1H
Lower Limit: 0.0023759
Upper Limit: 0.0042996
Start Time: 2025-07-25
End Time: 2025-08-16
Grid Levels: 10
Take Profit (%): Auto = Grid Step Percent.
Disclaimer
Trading and investing involve risk — always do your own research (DYOR) and seek professional advice. We are not responsible for any financial losses.
FREEDOM - TJR Model\ FREEDOM – TJR Model\ 🚀
\ Automates TJR’s well-known NQ playbook with clean visuals, filters, and alerts—so you can focus on execution.\
\ Core idea\
1. Trade \ NQ\ in the \ New York session\ 🗽
2. Wait for a \ liquidity sweep\ of a \ prior session\ High/Low (Asia or London) ✂️
3. Confirm with \ SMT (NQ vs ES) divergence\ 🔀
4. Act on a \ proprietary entry signal\ 🔒
5. Risk at the swing 🛡️, target \ untapped internal/session liquidity\ 🎯
This indicator draws those session levels for you, tracks sweeps, detects SMT, applies higher-timeframe confluence, and fires alerts that respect your time window and filters.
---
\ What it draws & detects\
\ • Sessions & Liquidity Sweeps\ 🕒
* Plots \ Asia / London / New York\ session bands.
* On session close, it freezes the session’s \ High/Low\ as dotted “previous-session levels” and \ extends them forward\ until price \ crosses\ (choose \ Wicks\ or \ Close\ ).
* When price takes a previous-session \ High\ → \ Buyside sweep\ ; takes a \ Low\ → \ Sellside sweep\ .
* Optional \ Sweep Zones\ expand around the swept level using an \ ATR(21)\ margin; can auto-fade “fake” sweeps.
\ Tip: Keep “Extend previous session High/Low until cross” ON to maintain a clean roadmap into NY open.\
\ • SMT Divergence (NQ vs ES)\ 🔀
* Classic pivot-to-pivot SMT:
* \ Bearish SMT\ = NQ makes a \ higher high\ while ES does \ not\ .
* \ Bullish SMT\ = NQ makes a \ lower low\ while ES does \ not\ .
* Draws \ lines\ from pivot to pivot (no chart spam), with optional inline “SMT” label and optional confidence \ score\ (0–100) based on strength + recency.
* Context aware:
* Only shows \ Bearish SMT\ after a \ buy-side sweep\ (previous-session High taken).
* Only shows \ Bullish SMT\ after a \ sell-side sweep\ (previous-session Low taken).
* Respects your \ NY time window\ if enabled.
\ • Proprietary Entry Signals\ 🔒
* Prints entry lines + arrows only when your rules align (proprietary detection under the hood).
* Respects:
* \ Session-sweep bias\ (optional): Sells only after buy-side sweep; Buys only after sell-side sweep.
* \ Monotonic filter\ : new Sell must be \ higher\ than last Sell; new Buy must be \ lower\ than last Buy (resets each session).
* \ Minimum distance\ to nearest previous-session dotted level (in ticks).
* \ NY time filter\ window.
* \ HTF confluence\ (see below).
---
\ HTF Confluence (optional)\ 📈
* Choose \ MA slope\ (\ EMA/SMA/RMA/WMA\ ) or \ HH/HL structure\ on a higher timeframe (e.g., 60m/240m).
* Entry arrows and alerts can be gated so they only print when HTF bias agrees with the setup.
\ Tip: Start with EMA 50 on 60m for a smooth directional filter; add HH/HL only if you want stricter structure confirmation.\
---
\ Dashboard (bottom-right)\ 🧩
* \ VWAP state\ :
* \ Overbought\ (🔴) if close > VWAP + (mult × stdev)
* \ Oversold\ (🟢) if close < VWAP − (mult × stdev)
* Otherwise \ Neutral\ (⚪️)
* \ Premium / Discount\ vs previous-session 50% midline: Premium = above (red bias), Discount = below (green bias).
* \ SMT row\ : Bullish / Bearish / Neutral with optional score.
---
\ How to use the settings (quick tour)\
\ ENTRY\
* \ Entry Swing Length\ : lower = more signals.
* \ Confirmation\ : \ Candle Close\ or \ Wicks\ for breakout.
* \ Filter entry by session sweeps\ : enforces “sell after buy-side sweep, buy after sell-side sweep.”
* \ Minimum distance (ticks)\ : blocks entries too close to previous-session dotted levels.
* \ Replay mode\ : keeps entries visible in Bar Replay.
* \ NY Time filter\ : default \ 08:00–14:00 NY\ ; arrows/alerts respect the window.
* \ Arrow offset (ticks)\ : how far above/below the candle to plot the arrow.
\ SESSION SWEEPS\
* Toggle \ Buyside/Sellside zones\ , adjust \ ATR(21)\ margin & length.
* \ Hide Fake Sweep Zones\ (default ON).
* \ Extend H/L until cross\ (Wicks/Close).
* Optional \ daily reset\ for unswept dotted lines.
\ SESSIONS\
* Enable/disable \ Asia, London, NY AM, NY PM\ ; set start/end; choose color; extend midline if desired.
* DST toggles for NY/London.
\ HTF Confluence\
* Turn it ON/OFF; pick timeframe & method (MA slope or HH/HL); set MA type/length or swing length.
\ Dashboard\
* Show/hide table; set VWAP stdev length/multiplier.
* SMT settings: comparison symbol (\ default ES1!\ ), pivot length, show score/labels, recency window, etc.
\ Alerts\ (always last) 🔔
* \ Session line cross\ : choose Highs/Lows and crossing mode (\ Same as extension / Wicks / Close\ ).
* \ Entry alerts\ : \ Filtered / Unfiltered / Both\ .
* \ Filtered\ = respects sweep bias, HTF confluence, minimum distance, monotonic rule, and time window.
* \ Unfiltered\ = ignores sweep bias/HTF/monotonic (still respects minimum distance + time window).
* All entry alerts also respect the \ NY time window\ when enabled.
---
\ Suggested workflow\
* Open NQ on a 1–5m chart.
* Let the dotted \ previous-session H/L\ extend into NY; wait for a \ sweep\ .
* Check \ SMT\ : after buy-side sweep → look for \ bearish SMT\ ; after sell-side sweep → look for \ bullish SMT\ .
* Take the \ proprietary entry\ when filters agree.
* Stop at the swing; aim for \ untapped internal/session liquidity\ .
* Let \ alerts\ handle the monitoring.
---
\ Why traders like it\
* It mirrors the model popularized by \ TJR\ while removing the chart admin: sessions, sweeps, SMT, HTF gating, distances, monotonic sequencing, time windows, and ready-to-use alerts—so your execution stays consistent. ✨
---
\ Disclaimer\ ⚠️
\ This tool is for educational purposes only and does not constitute financial advice. Markets involve risk; always do your own research and test in replay/paper before trading live. FREEDOM – TJR Model is inspired by TJR’s publicly known framework but is not affiliated with, endorsed by, or sponsored by TJR. You are solely responsible for your trading decisions and outcomes.\
Straddle Charts - Live (Enhanced)Track options straddles with ease using the Straddle Charts - Live (Enhanced) indicator! Originally inspired by @mudraminer, this Pine Script v5 tool visualizes live call, put, and straddle prices for instruments like BANKNIFTY. Plotting call (green), put (red), and straddle (black) prices in a separate pane, it offers real-time insights for straddle strategy traders.
Key Features:
Live Data: Fetches 1-minute (customizable) option prices with error handling for invalid symbols.
Price Table: Displays call, put, straddle prices, and percentage change in a top-left table.
Volatility Alerts: Highlights bars with straddle price changes above a user-defined threshold (default 5%) with a yellow background and concise % labels.
Robust Design: Prevents plot errors with na checks and provides clear error messages.
How to Use: Input your call/put option symbols (e.g., NSE:NIFTY250814C24700), set the timeframe, and adjust the volatility threshold. Monitor straddle costs and volatility for informed trading decisions.
Perfect for options traders seeking a simple, reliable tool to track straddle performance. Check it out and share your feedback!
Open Range Breakout Strategy With Multi TakeProfitHello everyone,
For a while, I’ve been wanting to develop new scripts, but I couldn’t decide what to create. Eventually, I came up with the idea of coding traditional and well-known trading strategies—while adding modern features such as multi–take profit options. For the first strategy in this series, I chose the Open Range Strategy .
For those unfamiliar with it, the Open Range Strategy is a trading approach where you define a specific time period at the beginning of a trading session—such as the first 15 minutes, 30 minutes, or 1 hour—and mark the highest and lowest prices within that range. These levels then act as reference points for potential breakouts: if the price breaks above the range, it may signal a long entry; if it breaks below, it may indicate a short entry. This method is popular among day traders for capturing early momentum in the market.
Since this strategy is generally used as an intraday strategy , I added a Trade Session feature. This allows you to define the exact time window during which trades can be opened. Once the session ends, all positions are automatically closed, ensuring trades remain within your chosen intraday period.
Even though it’s a relatively simple concept, I’ve come across many different variations of it. That’s why I created a highly customizable project. Under the Session Settings, you can select the time window you want to define as your range. Whether it’s the first 15-minute candle or the entire first hour, the choice is entirely yours.
For stop-loss placement, there are two different options:
Middle of the Range – The stop loss is placed at the midpoint between the high and low of the defined range, offering a balanced buffer for both bullish and bearish setups.
Top/Bottom of the Range – The stop loss is placed just beyond the range’s high for short trades or just below the range’s low for long trades, providing a more conservative risk approach.
I’ve always been a big fan of the multi take-profit feature, so I added two different take-profit targets to this project. Take profits are calculated based on a Risk-to-Reward Ratio, which you can adjust in the settings. You can also set different position sizes for each target, allowing you to scale out of trades in a way that suits your strategy.
The result is a flexible, user-friendly strategy script that brings together a classic approach with modern risk management tools—ready to be tailored to your trading style
Backtest - Strategy Builder [AlgoAlpha]🟠 OVERVIEW
This script by AlgoAlpha is a modular Strategy Builder designed to let traders test custom trade entry and exit logic on TradingView without writing their own Pine code. It acts as a framework where users can connect multiple external signals, chain them in sequences, and run backtests with built-in leverage, margin, and risk controls. Its main strength is flexibility—you can define up to five sequential steps for entry and exit conditions on both long and short sides, with logic connectors (AND/OR) controlling how conditions combine. This lets you test complex multi-step confirmation workflows in a controlled, visual backtesting environment.
🟠 CONCEPTS
The system works by linking external signals —these can be values from other indicators, and/or custom sources—to conditional checks like “greater than,” “less than,” or “crossover.” You can stack these checks into steps , where all conditions in a step must pass before the sequence moves to the next. This creates a chain of logic that must be completed before a trade triggers. On execution, the strategy sizes positions according to your chosen leverage mode ( Cross or Isolated ) and allocation method ( Percent of equity or absolute USD value]). Liquidation prices are simulated for both modes, allowing realistic margin behaviour in testing. The script also tracks performance metrics like Sharpe, Sortino, profit factor, drawdown, and win rate in real time.
🟠 FEATURES
Up to 5 sequential steps for both long and short entries, each with multiple conditions linked by AND/OR logic.
Two leverage modes ( Cross and Isolated ) with independent long/short leverage multipliers.
Separate multi-step exit triggers for longs and shorts, with optional TP/SL levels or opposite-side triggers for flipping positions.
Position sizing by equity percent or fixed USD amount, applied before leverage.
Realistic liquidation price simulation for margin testing.
Built-in trade gating and validation—prevents trades if configuration rules aren’t met (e.g., no exit defined for an active side).
Full performance dashboard table showing live strategy status, warnings, and metrics.
Configurable bar coloring based on position side and TP/SL level drawing on chart.
Integration with TradingView's strategy backtester, allowing users to view more detailed metrics and test the strategy over custom time horizons.
🟠 USAGE
Add the strategy to your chart. In the settings, under Master Settings , enable longs/shorts, select leverage mode, set leverage multipliers, and define position sizing. Then, configure your Long Trigger and Short Trigger groups: turn on conditions, pick which external signal they reference, choose the comparison type, and assign them to a sequence step. For exits, use the corresponding Exit Long Trigger and Exit Short Trigger groups, with the option to link exits to opposite-side entries for auto-flips. You can also enable TP and/or SL exits with custom sources for the TP/SL levels. Once set, the strategy will simulate trades, show performance stats in the on-chart table, and highlight any configuration issues before execution. This makes it suitable for testing both simple single-signal systems and complex, multi-filtered strategies under realistic leverage and margin constraints.
🟠 EXAMPLE
The backtester on its own does not contain any indicator calculation; it requires input from external indicators to function. In this example, we'll be using AlgoAlpha's Smart Signals Assistant indicator to demonstrate how to build a strategy using this script.
We first define the conditions beforehand:
Entry :
Longs – SSA Bullish signal (strong OR weak)
Shorts – SSA Bearish signal (strong OR weak)
Exit
Longs/Shorts: (TP/SL hit OR opposing signal fires)
Other Parameters (⚠️Example only, tune this based on proper risk management and settings)
Long Leverage: default (3x)
Short Leverage: default (3x)
Position Size: default (10% of equity)
Steps
Load up the required indicators (in this example, the Smart Signals Assistant).
Ensure the required plots are being output by the indicator properly (signals and TP/SL levels are being plotted).
Open the Strategy Builder settings and scroll down to "CONDITION SETUP"; input the signals from the external indicator.
Configure the exit conditions, add in the TP/SL levels from the external indicator, and add an additional exit condition → {{Opposite Direction}} Entry Trigger.
After configuring the entry and exit conditions, the strategy should now be running. You can view information on the strategy in TradingView's backtesting report and also in the Strategy Builder's information table (default top right corner).
It is important to note that the strategy provided above is just an example, and the complexity of possible strategies stretches beyond what was shown in this short demonstration. Always incorporate proper risk management and ensure thorough testing before trading with live capital.
EMA Deviation Strategy📌 Strategy: EMA Deviation Strategy
The EMA Deviation Strategy identifies potential reversal points by measuring how far the current price deviates from its Exponential Moving Average (EMA). It dynamically tracks the minimum and maximum deviation levels over a user-defined lookback period, and enters trades when price reaches extreme zones.
🔍 Core Logic:
• Buy Entry: When price deviates significantly below the EMA, approaching the historical minimum deviation — signaling a potential rebound.
• Sell Entry: When price deviates significantly above the EMA, nearing the historical maximum deviation — signaling a possible pullback.
• Optional Take Profit / Stop Loss: Manage risk with customizable exit levels.
⚙️ Customizable Inputs:
• EMA length and lookback period
• Threshold sensitivity for entry signals
• Take profit and stop loss percentages
📈 Best Used For:
• Mean reversion setups
• Assets with cyclical or range-bound behavior
• Identifying short-term overbought/oversold conditions
Mutanabby_AI | Algo Pro Strategy# Mutanabby_AI | Algo Pro Strategy: Advanced Candlestick Pattern Trading System
## Strategy Overview
The Mutanabby_AI Algo Pro Strategy represents a systematic approach to automated trading based on advanced candlestick pattern recognition and multi-layered technical filtering. This strategy transforms traditional engulfing pattern analysis into a comprehensive trading system with sophisticated risk management and flexible position sizing capabilities.
The strategy operates on a long-only basis, entering positions when bullish engulfing patterns meet specific technical criteria and exiting when bearish engulfing patterns indicate potential trend reversals. The system incorporates multiple confirmation layers to enhance signal reliability while providing comprehensive customization options for different trading approaches and risk management preferences.
## Core Algorithm Architecture
The strategy foundation relies on bullish and bearish engulfing candlestick pattern recognition enhanced through technical analysis filtering mechanisms. Entry signals require simultaneous satisfaction of four distinct criteria: confirmed bullish engulfing pattern formation, candle stability analysis indicating decisive price action, RSI momentum confirmation below specified thresholds, and price decline verification over adjustable lookback periods.
The candle stability index measures the ratio between candlestick body size and total range including wicks, ensuring only well-formed patterns with clear directional conviction generate trading signals. This filtering mechanism eliminates indecisive market conditions where pattern reliability diminishes significantly.
RSI integration provides momentum confirmation by requiring oversold conditions before entry signal generation, ensuring alignment between pattern formation and underlying momentum characteristics. The RSI threshold remains fully adjustable to accommodate different market conditions and volatility environments.
Price decline verification examines whether current prices have decreased over a specified period, confirming that bullish engulfing patterns occur after meaningful downward movement rather than during sideways consolidation phases. This requirement enhances the probability of successful reversal pattern completion.
## Advanced Position Management System
The strategy incorporates dual position sizing methodologies to accommodate different account sizes and risk management approaches. Percentage-based position sizing calculates trade quantities as equity percentages, enabling consistent risk exposure across varying account balances and market conditions. This approach proves particularly valuable for systematic trading approaches and portfolio management applications.
Fixed quantity sizing provides precise control over trade sizes independent of account equity fluctuations, offering predictable position management for specific trading strategies or when implementing precise risk allocation models. The system enables seamless switching between sizing methods through simple configuration adjustments.
Position quantity calculations integrate seamlessly with TradingView's strategy testing framework, ensuring accurate backtesting results and realistic performance evaluation across different market conditions and time periods. The implementation maintains consistency between historical testing and live trading applications.
## Comprehensive Risk Management Framework
The strategy features dual stop loss methodologies addressing different risk management philosophies and market analysis approaches. Entry price-based stop losses calculate stop levels as fixed percentages below entry prices, providing predictable risk exposure and consistent risk-reward ratio maintenance across all trades.
The percentage-based stop loss system enables precise risk control by limiting maximum loss per trade to predetermined levels regardless of market volatility or entry timing. This approach proves essential for systematic trading strategies requiring consistent risk parameters and capital preservation during adverse market conditions.
Lowest low-based stop losses identify recent price support levels by analyzing minimum prices over adjustable lookback periods, placing stops below these technical levels with additional buffer percentages. This methodology aligns stop placement with market structure rather than arbitrary percentage calculations, potentially improving stop loss effectiveness during normal market fluctuations.
The lookback period adjustment enables optimization for different timeframes and market characteristics, with shorter periods providing tighter stops for active trading and longer periods offering broader stops suitable for position trading approaches. Buffer percentage additions ensure stops remain below obvious support levels where other market participants might place similar orders.
## Visual Customization and Interface Design
The strategy provides comprehensive visual customization through eight predefined color schemes designed for different chart backgrounds and personal preferences. Color scheme options include Classic bright green and red combinations, Ocean themes featuring blue and orange contrasts, Sunset combinations using gold and crimson, and Neon schemes providing high visibility through bright color selections.
Professional color schemes such as Forest, Royal, and Fire themes offer sophisticated alternatives suitable for business presentations and professional trading environments. The Custom color scheme enables precise color selection through individual color picker controls, maintaining maximum flexibility for specific visual requirements.
Label styling options accommodate different chart analysis preferences through text bubble, triangle, and arrow display formats. Size adjustments range from tiny through huge settings, ensuring appropriate visual scaling across different screen resolutions and chart configurations. Text color customization maintains readability across various chart themes and background selections.
## Signal Quality Enhancement Features
The strategy incorporates signal filtering mechanisms designed to eliminate repetitive signal generation during choppy market conditions. The disable repeating signals option prevents consecutive identical signals until opposing conditions occur, reducing overtrading during consolidation phases and improving overall signal quality.
Signal confirmation requirements ensure all technical criteria align before trade execution, reducing false signal occurrence while maintaining reasonable trading frequency for active strategies. The multi-layered approach balances signal quality against opportunity frequency through adjustable parameter optimization.
Entry and exit visualization provides clear trade identification through customizable labels positioned at relevant price levels. Stop loss visualization displays active risk levels through colored line plots, ensuring complete transparency regarding current risk management parameters during live trading operations.
## Implementation Guidelines and Optimization
The strategy performs effectively across multiple timeframes with optimal results typically occurring on intermediate timeframes ranging from fifteen minutes through four hours. Higher timeframes provide more reliable pattern formation and reduced false signal occurrence, while lower timeframes increase trading frequency at the expense of some signal reliability.
Parameter optimization should focus on RSI threshold adjustments based on market volatility characteristics and candlestick pattern timeframe analysis. Higher RSI thresholds generate fewer but potentially higher quality signals, while lower thresholds increase signal frequency with corresponding reliability considerations.
Stop loss method selection depends on trading style preferences and market analysis philosophy. Entry price-based stops suit systematic approaches requiring consistent risk parameters, while lowest low-based stops align with technical analysis methodologies emphasizing market structure recognition.
## Performance Considerations and Risk Disclosure
The strategy operates exclusively on long positions, making it unsuitable for bear market conditions or extended downtrend periods. Users should consider market environment analysis and broader trend assessment before implementing the strategy during adverse market conditions.
Candlestick pattern reliability varies significantly across different market conditions, with higher reliability typically occurring during trending markets compared to ranging or volatile conditions. Strategy performance may deteriorate during periods of reduced pattern effectiveness or increased market noise.
Risk management through stop loss implementation remains essential for capital preservation during adverse market movements. The strategy does not guarantee profitable outcomes and requires proper position sizing and risk management to prevent significant capital loss during unfavorable trading periods.
## Technical Specifications
The strategy utilizes standard TradingView Pine Script functions ensuring compatibility across all supported instruments and timeframes. Default configuration employs 14-period RSI calculations, adjustable candle stability thresholds, and customizable price decline verification periods optimized for general market conditions.
Initial capital settings default to $10,000 with percentage-based equity allocation, though users can adjust these parameters based on account size and risk tolerance requirements. The strategy maintains detailed trade logs and performance metrics through TradingView's integrated backtesting framework.
Alert integration enables real-time notification of entry and exit signals, stop loss executions, and other significant trading events. The comprehensive alert system supports automated trading applications and manual trade management approaches through detailed signal information provision.
## Conclusion
The Mutanabby_AI Algo Pro Strategy provides a systematic framework for candlestick pattern trading with comprehensive risk management and position sizing flexibility. The strategy's strength lies in its multi-layered confirmation approach and sophisticated customization options, enabling adaptation to various trading styles and market conditions.
Successful implementation requires understanding of candlestick pattern analysis principles and appropriate parameter optimization for specific market characteristics. The strategy serves traders seeking automated execution of proven technical analysis techniques while maintaining comprehensive control over risk management and position sizing methodologies.