GStrategy1️⃣ Long entry based on RSI divergences.
2️⃣ Exit based on RSI filter (RSI> 40 after at least N bars).
3️⃣ Exit if the price has fallen more than 10% from the entry point.
4️⃣ Visualization of % difference for monitoring.
5️⃣ Flexibility: all parameters are configurable in the arguments window.
指標和策略
Pin Bar Reversal StrategyStrategy: Pin Bar Reversal with Trend Filter
One effective high-probability setup is a Pin Bar reversal in the direction of the larger trend. A pin bar is a candlestick with a tiny body and a long wick, signaling a sharp rejection of price
By itself, a pin bar often marks a potential reversal, but not all pin bars lead to profitable moves. To boost reliability, this strategy trades pin bars only when they align with the prevailing trend – for example, taking a bullish pin bar while the market is in an uptrend, or a bearish pin bar in a downtrend. The trend bias can be determined by a long-term moving average or higher timeframe analysis.
Why it works: In an uptrend, a bullish pin bar after a pullback often indicates that sellers tried to push price down but failed, and buyers are resuming control. Filtering for pin bars near key support or moving averages further improves odds of success. This aligns the entry with both a strong price pattern and the dominant market direction, yielding a higher win rate. The pin bar’s own structure provides natural levels for stop and target placement, keeping risk management straightforward.
Example Setup:
USDCHF - 4 Hour Chart
Trend SMA 12
Max Body - 34
Min Wick - 66
ATR -15
ATR Stop Loss Multiplier - 2.3
ATR Take Profit Multiplier - 2.9
Minimum ATR to Enter - 0.0025
EMA Trend Cross Signal
LOGIC :
This strategy opens position if shorter period Exponential Moving Average (EMA) crosses over or crosses under the longer period EMA and exits position if any of the 3 exit conditions mentioned below is fulfilled
ENTRY CONDITIONS :
LONG ENTRY -
shorter period EMA crosses over longer period EMA
SHORT ENTRY -
shorter period EMA crosses under longer period EMA
EXIT CONDITIONS :
BOTH EMA CROSSED -
LONG EXIT - If price closes below both the shorter period EMA & longer period EMA
SHORT EXIT - If price closes above both the shorter period EMA & longer period EMA
STOP-LOSS HIT -
LONG EXIT - If price closes below the LOW created at the time of ema crossover
SHORT EXIT - If price closes above the HIGH created at the time of ema crossover
EMA CROSS -
LONG EXIT - If shorter period EMA crosses under longer period EMA
SHORT EXIT - If shorter period EMA crosses above longer period EMA
EXAMPLES :
1. TESLA (1-DAY) -
2. APPLE (1-WEEK) -
PYRAMID CLOSING -
Positions will be closed pyramidically in 5 levels and price of each level will be calculated by multiplying current market price with the percentage of each pyramid level's value user has entered
SETTINGS OPTIONS -
MA TYPE -
There is option to choose the type of moving average among SMA, EMA, RMA, WMA, VWMA on chart
MA LENGTH -
There is option to change the length of short period MA & large period MA
FIELD TYPE -
There is also option to choose the price field among open, close, low, high etc. for the selected MA
HISTORICAL BACKTEST -
We can also backtest the strategy for a certain duration of time using this option by changing the start time and end time
SHOW BACKGROUND COLORS FOR EVERY POSITION -
There is option to show background color as green whenever a bullish position is opened and as red whenever a bearish position is opened
SHOW BACKGROUND COLORS FOR EVERY PROFIT & LOSS -
There is option to show green circle in background whenever profit is made and red circle whenever loss is made
SHOW TABLE -
If selected then it will show a table at the top-right corner with all the pyramid levels at which position will be closed for the current scrip
PAUSE TRADING -
If this option is selected then no position will opened on the chart
FXPRO OCC Strategy R5.41"Unlock the power of market precision with this elite indicator — expertly engineered to pinpoint robust support and resistance zones, elevating your trading edge to a new level of mastery." j
AutoFib Breakout Strategy for Uptrend AssetsThis trading strategy is designed to help you catch powerful upward moves on assets that are in a long-term uptrend, such as Gold (XAUUSD). It uses a popular technical tool called the Fibonacci Extension, combined with a trend filter and a risk-managed exit system.
✅ When to Use This Strategy
• Works best on higher timeframes: Daily (1D), 3-Day (3D), or Weekly (W).
• Best used on uptrending assets like Gold.
• Designed for swing trading – holding trades from a few days to weeks.
📊 How It Works
1. Find the Trend
We only want to trade in the direction of the trend.
• The strategy uses the 200-period EMA (Exponential Moving Average) to identify if the market is in an uptrend.
• If the price is above the 200 EMA, we consider it an uptrend and allow long trades.
2. Identify Breakout Levels
• The strategy detects recent high and low pivot points to draw Fibonacci extension levels.
• It focuses on the 1.618 Fibonacci level, which is often a target in strong trends.
• When the price breaks above this level in an uptrend, it signals a potential momentum breakout – a good time to buy.
3. Enter a Trade
• The strategy enters a long (buy) position when the price closes above the 1.618 Fibonacci level and the market is in an uptrend (above the 200 EMA).
4. Manage Risk Automatically
• The trade includes a stop-loss set to 1x the ATR (Average True Range) below the entry price – this protects against sudden drops.
• It sets a take-profit at 3x the ATR above the entry – aiming for higher rewards than risks.
⚠️ Important Notes
• 📈 Higher Timeframes Preferred: This strategy works best on Daily (D), 3-Day (3D), and Weekly (W) charts, especially on Gold (XAUUSD).
• 🧪 Not for Deep Backtesting: Due to the nature of how pivot points and Fib levels are calculated, this strategy may not perform well in backtesting simulations (because the historical calculations can shift). It is better used for live analysis and forward testing.
PRO Trading Averaging Beta(v1)Adaptive Position Scaling
Automatically increases position size during pullbacks using exponential volume scaling (1x, 2x, 4x, etc.). This reduces average entry cost and accelerates breakeven when price reverses.
Multi-Timeframe Confirmation
All indicators operate on a higher timeframe (120 minutes), providing:
Noise-filtered signals
Stronger trend alignment
Reduced false entries
Triple-Layer Entry Logic
Requires simultaneous confluence of:
Custom Bollinger Band penetration
RSI oversold filter (above critical threshold)
Golden cross confirmation (fast MA > slow MA)
Volatility assessment via ATR
Intelligent Exit System
Position closure triggers when either:
Fixed profit target (% of account) is reached
Technical boundary (upper Bollinger Band) is touched
⚙️ Core Mechanics:
graph LR
A --> B
B --> C{Initial Entry: 1% capital}
C --> D
D -->|Yes| E
D -->|No| F
E --> G{Max Averaging Levels?}
G -->|No| D
G -->|Yes| H
F --> I
📊 Implementation Guide:
Capital Configuration
Set initial_capital to your actual account size
Calculate base contract size:
(Account Size × 0.01) / (Instrument Price × Point Value)
Example: $10,000 account → 0.01 BTC futures contracts
Pyramiding Structure
Volume progression per averaging level:
Level 1: 1× (Base volume)
Level 2: 2×
Level 3: 4×
Level 4: 8×
Level 5: 16×
Level 6: 32×
(Max 6 levels configurable in strategy settings)
Custom Entry Variations
Alternative approach for swing captures:
// Enter only at 3rd averaging with 5% capital
if averaging_condition and strategy.opentrades == 2
strategy.entry("SwingEntry", strategy.long, qty=base_order_size*5)
Risk Management Protocol
No traditional stop-loss (replaced by averaging)
Break-even trigger: Manually move to breakeven at +0.5% profit
Max exposure: Capped at 6 averaging levels
Commissions: Pre-configured at 0.1% per trade
⚠️ Critical Risk Disclosures:
"Past Performance ≠ Future Results"
Historical optimization requires continuous forward testing ("Walk Forward" in TV).
Pyramiding Hazards
Exponential volume growth demands:
Minimum 20% free margin buffer
High liquidity instruments (spread < 0.5% of ATR)
Strict per-level risk calculation
Market Regime Dependence
Peak efficiency during:
Strong trends with 2-4% retracements
Assets with ATR > 1.5% of daily range
Avoid ranging/low-volatility conditions
💡 Pro Usage Recommendations:
Position Sizing Formula
For futures: Contracts = (Capital × Risk %) / (Entry Price × Point Value × Stop Distance)
Profit Protection
Close 50% position at 50% profit target, trail remainder
Event Safety
Disable averaging during:
High-impact news events
Exchange outages
Abnormal volume spikes
pie
title Risk Allocation per Level
“First Entry” : 12
“Level 2” : 18
“Level 3” : 25
“Level 4” : 45
ESSENTIAL: This strategy demands strict discipline. Terminate averaging when price action deviates from expected patterns. Always maintain reserve capital exceeding maximum drawdown requirements. Regularly validate strategy performance against current market dynamics.
🔥 Уникальные особенности и ценность:
Адаптивное усреднение
Стратегия автоматически увеличивает позицию при движении против вас, используя экспоненциальное наращивание объема (1x, 2x, 4x и т.д.). Это снижает среднюю цену входа и ускоряет выход в прибыль при развороте.
Мультитаймфреймная фильтрация
Все индикаторы работают на старшем таймфрейме (120 минут), что:
Фильтрует рыночный шум
Обеспечивает более надежные сигналы
Синхронизируется с глобальным трендом
Комбинированный триггер входа
Для активации требуется одновременное выполнение 4 условий:
Пробитие кастомной полосы Боллинджера
Подтверждение тренда (быстрая MA > медленной MA)
Контроль перепроданности (RSI выше критического уровня)
Фильтр волатильности (ATR)
Двойной механизм выхода
Закрытие позиций происходит при:
Достижении целевого уровня прибыли (% от депозита)
Техническом сигнале (касание верхней полосы Боллинджера)
⚙️ Как работает стратегия:
graph TD
A --> B
B --> C{Первый вход: 1% депозита}
C --> D
D -->|Да| E
D -->|Нет| F
E --> G{Достигнут лимит усреднений?}
G -->|Нет| D
G -->|Да| H
F --> I
📊 Как пользоваться:
Стартовые настройки
Base Order Size: Стартовый объем = 1% депозита
(Пример: при $10 000 депозита = 0.01 контракта)
initial_capital: Укажите ваш реальный депозит
Правила пирамидинга
Объем наращивается по схеме:
Уровень 1: 1x (базовый объем)
Уровень 2: 2x
Уровень 3: 4x
Уровень 4: 8x
Уровень 5: 16x
Уровень 6: 32x
РЕКОМЕНДУЕТСЯ Максимум 6 уровней усреднения (настраивается в pyramiding)
Кастомизация входов
Пример модификации для агрессивной тактики:
// Вход только на 3-м усреднении с 5% депозита
if averaging_condition and strategy.opentrades == 2
strategy.entry("BuyAggressive", strategy.long, qty=base_order_size*5)
Можно поставить параметр пираммидинг 1 и получать больше сигналов на младших тайм фреймах
Управление рисками
Стоп-лосс: Не используется (заменен усреднением)
Перевод в безубыток: Активируйте вручную при +0.5%
Максимальная просадка: Рекомендуется Ограничивать 6 уровнями усреднения
Комиссии: Учтены (0.1% от объема сделки)
Критические предупреждения:
"Вчера ≠ Сегодня"
Стратегия оптимизирована под историческую волатильность. Регулярно тестируйте на новых данных (режим "Перед тест" в TV).
Опасность усреднения
Экспоненциальный рост объема требует:
Глубокого расчета риска на уровень
Минимум 20% свободного маржи
Ликвидный инструмент (спред < 0.5% от ATR)
Рыночные условия
Максимальная эффективность в:
Трендовых рынках с коррекциями 2-4%
Инструментах с ATR > дневного диапазона 1.5%
💡 Рекомендации по использованию:
Для фьючерсов: Рассчитайте контракты через (капитал * 0.01) / (цена * пункт_стоимости)
При 50% достижении цели прибыли - закройте 50% позиции
Отключайте усреднение при выходе макро-новостей
pie
title Распределение риска
"Первый вход" : 10
"Уровень 2" : 20
"Уровень 3" : 30
"Уровень 4" : 40
ВАЖНО: Эта стратегия требует дисциплины! Прекращайте усреднение при отклонении рынка от исторических паттернов. Всегда имейте резервный капитал для экстренных случаев.
Grid TLong V1The “Grid TLong V1” strategy is based on the classic Grid strategy, but in the mode of buying and selling in favor of the trend and only on Long. This allows to take advantage of large uptrend movements to maximize profits in bull markets. For this reason, excessively sideways or bearish markets may not be very conducive to this strategy.
Like our Grid strategies in favor of the trend, you can enter and exit with the balance with controlled risk, as the distance between each grid functions as a natural and adaptable stop loss and take profit. What differentiates it from bidirectional strategies is that Short uses a minimum amount of follow-through, so that the percentage distance between the grids is maintained.
In this version of the script the entries and exits can be chosen at market or limit , and are based on the profit or loss of the current position, not on the percentage change in price.
The user may also notice that the strategy setup is risk-controlled, because it risks 5% on each trade, has a fairly standard commission and modest initial capital, all in order to protect the strategy user from unrealistic results.
As with all strategies, it is strongly recommended to optimize the parameters for the strategy to be effective for each asset and for each time frame.
Random State Machine Strategy📌 Random State Machine Strategy (Educational)
This strategy showcases a randomized entry model driven by a finite state machine, integrated with user-defined exit controls and a full-featured moving average filter.
🧠 Trade Entry Logic
Entries occur only when:
A random trigger occurs (~5% probability per bar)
The state machine accepts a new transition (sm.step())
Price is:
Above the selected MA for long entries
Below the selected MA for short entries
This ensures that entries are both stochastically driven and trend-aligned, avoiding frequent or arbitrary trades.
⚙️ How It Works
Randomized Triggers
A pseudo-random generator (seeded with time and volume) attempts to trigger state transitions.
Finite State Machine
Transitions are managed using the StateMachine from robbatt/lib_statemachine — credit to @robbatt for the modular FSM design.
Controlled Reset
The state machine resets every N bars (default: 100) if at least two transitions have occurred. This prevents stale or locked states.
Backtest Range
Define a specific test window using Start and End Date inputs.
Risk & Exits
Specify risk in points and a target risk/reward ratio. TP is auto-computed. Timed and MA-based exits can be toggled.
🧪 How to Use
Enable Long or Short trades
Choose your Moving Average type and length
Set Risk per trade and R/R ratio
Toggle TP/SL, timed exit, or MA cross exit
Adjust the State Reset Interval to suit your signal frequency
📘 Notes
Educational use only — not financial advice
Random logic is used to model structure, not predict movement
Thanks to @robbatt for the lib_statemachine integration
Strategy Builder With IndicatorsThis strategy script is designed for traders who enjoy building systems using multiple indicators.
Please note: This script does not include any built-in indicators. Instead, it works by referencing the plot outputs of the indicators you’ve already added to your chart.
For example, if you add a MACD and an ATR indicator to your chart, you can assign their plot values as inputs in the settings panel of this strategy.
• MACD as a trigger
• ATR as a filter
How Filters Work
Filters check whether certain conditions are met before a trade can be opened. For instance, if you set a filter like ATR > 30, then no trade will be executed unless that condition is true — even if the trigger fires.
All filters are linked, meaning every active filter must be satisfied for a trade to occur.
How Triggers Work
Triggers are what actually fire a trade signal — such as a moving average crossover or RSI breaking above a specific level. Unlike filters, triggers are independent. Only one active trigger needs to be true for the trade to execute.
Thanks to its modular structure, this strategy can be used with any indicator of your choice.
⸻
Risk Management Features
In the settings, you’ll find flexible options for:
• Stop Loss (SL)
• Trailing Stop Loss (TSL)
• Multi Take-Profit (TP)
These features enhance trade safety and let you tailor your risk management.
SL types available:
• Tick-based SL
• Percent-based SL
• ATR-based SL
Once you select your preferred SL type, you can fine-tune its distance using the offset field.
Trailing SL allows your stop to follow price as it moves in your favor — helping to lock in profits.
Multi-TP lets you take profits at two different levels, helping you secure gains while leaving room for extended moves.
Breakeven option is also available to automatically move your SL to entry after reaching a profit threshold.
⸻
How to Build a Solid Strategy
Let’s break down a good setup into three key components:
1. Trend Filter
Avoid trading against the trend — that’s like swimming against the current.
Use a filter like:
• Supertrend
• Momentum indicators
• Candlestick bias, etc.
Example: In this case, I used Supertrend and filtered for trades only if the price is above the uptrend line.
2. Trigger Condition
Once we confirm the trend is on our side, we need a trigger to execute at the right moment. This can be:
• RSI cross
• Candlestick patterns
• Trendline breaks
• Moving average crossovers, etc.
Example: I used RSI crossing above 50 as the entry trigger.
3. Risk Management
Even in the right trend at the right time — anything can happen. That’s why you should always define Stop Loss and Take Profit levels.
⸻
And there you have it! Your strategy is ready to backtest, refine, and deploy with alerts for live trading.
Questions or suggestions? Feel free to reach out
Volatility Bias ModelVolatility Bias Model
Overview
Volatility Bias Model is a purely mathematical, non-indicator-based trading system that detects directional probability shifts during high volatility market phases. Rather than relying on classic tools like RSI or moving averages, this strategy uses raw price behavior and clustering logic to determine potential breakout direction based on recent market bias.
How It Works
Over a defined lookback window (default 10 bars), the strategy counts how many candles closed in the same direction (i.e., bullish or bearish).
Simultaneously, it calculates the price range during that window.
If volatility is above a minimum threshold and a clear directional bias is detected (e.g., >60% of closes are bullish), a trade is opened in the direction of that bias.
This approach assumes that when high volatility is coupled with directional closing consistency, the market is probabilistically more likely to continue in that direction.
ATR-based stop-loss and take-profit levels are applied, and trades auto-exit after 20 bars if targets are not hit.
Key Features
- 100% non-indicator-based logic
- Statistically-driven directional bias detection
- Works across all timeframes (1H, 4H, 1D)
- ATR-based risk management
- No pyramiding, slippage and commissions included
- Compatible with real-world backtesting conditions
Realism & Assumptions
To make this strategy more aligned with actual trading environments, it includes 0.05% commission per trade and a 1-point slippage on every entry and exit.
Additionally, position sizing is set at 10% of a $10,000 starting capital, and no pyramiding is allowed.
These assumptions help avoid unrealistic backtest results and make the performance metrics more representative of live conditions.
Parameter Explanation
Bias Window (10 bars): Number of past candles used to evaluate directional closings
Bias Threshold (0.60): Required ratio of same-direction candles to consider a bias valid
Minimum Range (1.5%): Ensures the market is volatile enough to avoid noise
ATR Length (14): Used to dynamically define stop-loss and target zones
Risk-Reward Ratio (2.0): Take-profit is set at twice the stop-loss distance
Max Holding Bars (20): Trades are closed automatically after 20 bars to prevent stagnation
Originality Note
Unlike common strategies based on oscillators or moving averages, this script is built on pure statistical inference. It models the market as a probabilistic process and identifies directional intent based on historical closing behavior, filtered by volatility. This makes it a non-linear, adaptive model grounded in real-world price structure — not traditional technical indicators.
Disclaimer
This strategy is for educational and experimental purposes only. It does not constitute financial advice. Always perform your own analysis and test thoroughly before applying with real capital.
Algoway V4.2📌 Algoway V4.2 — Multi-layered Strategy Powered by ADX, MACD & PSO
Overview
Algoway V4.2 is a layered algorithmic strategy designed for volatility-rich assets like cryptocurrencies. While some core components (such as PSO, MACD, and ADX oscillators) are adapted from known indicator models, the original logic, state tracking, and Candle Strength Oscillator (CSO) are fully custom-developed.
This strategy is not a simple combination of tools — it implements a conditional entry-exit logic system based on ADX zone transitions, momentum structure, and MACD/PSO signal synchronization, enhanced by custom-built CSO filtering.
🧠 Key Modules and How They Work Together
PSO (Premium Stochastic Oscillator)
Used to confirm local oversold/overbought pressure. Acts as a directional filter.
MACD (Normalized)
Volatility-normalized MACD values allow consistent signal detection even on volatile pairs. It triggers entries when momentum begins shifting.
ADX Zonal Logic
Divides the market into Range / MidRange / Trend Peak zones. Entries are allowed only under specific transitions — e.g., long entries only in yellow (low volatility) zones or in trend climax zones under certain pullbacks.
CSO (Candle Strength Oscillator) — Custom Module
Designed to measure real candle momentum and price structure consistency. It avoids false breakouts and filters trend fatigue.
🔁 How Logic Works
Strategy maintains state variables to track entry type and zone.
Exit conditions depend on the entry origin: entries from "Range" exit in "Peak", while "Peak" entries exit during pullbacks or mid-strength trend reversals.
Additional logic prevents entries when signals are not aligned across modules, minimizing noise.
Optional CSO module acts as a final microstructure confirmation before executing MACD-based midpoint entries.
📊 Example Parameters (for 5M crypto scalping)
Each module is tuned to respond to 5-minute crypto volatility:
Stochastic: fast response, tight thresholds
MACD: shortened EMAs, normalized
ADX: traditional smoothing, custom thresholds for zone switching
CSO: candle-based dynamic filter with visual zone mapping
🧪 Conclusion
Algoway V4.2 is not a script merger — it is a custom logic engine using familiar technical components but governed by a proprietary decision model, with additional filters and dynamic variable tracking.
It’s suitable for scalping or swing setups, and the internal logic is optimized for real trading conditions, not just visual backtests.
Three Inside Breakout (With 2:1 TP/SL + VWAP Filter)Buy only when the 3-candle breakout pattern is above VWAP.
Sell only when the pattern is below VWAP.
Auto-calculated TP and SL lines drawn on the chart.
VWAP plotted clearly for visual confirmation.
Antony.N4A -NQ ORB Quartile Str v6.3Antony.N4A – NQ ORB Quartile Strategy v6.3
A precision-engineered intraday breakout system built for the Nasdaq futures market, combining the Opening Range Breakout (ORB) logic with dynamic standard deviation targets, structural filters, and multi-layer risk management.
🧠 Key Features
Opening Range Breakout (ORB):
Automatically defines a breakout window (default: 09:30–09:45) and triggers entries when price breaks the high or low of that range.
Standard Deviation Profit Targets:
Supports SD0.5, SD1.0, SD1.5, and SD2.0 targets relative to the ORB range.
EMA Filtering (200-period):
Filters trades based on EMA direction and price position to validate breakout direction and avoid false entries.
Range Filtering:
Detects directional bias and volatility trends using smoothed range logic.
Momentum Triggering:
Validates breakout momentum and allows entries when directional momentum is positive and increasing.
⚙️ User Inputs
ORB Settings: Timeframe, session, and timezone customization
Entry Window: Define when trades are allowed to trigger
Day Filters: Enable/disable trading by weekday
SD Targets: Configure exit % and active levels (SD0.5 – SD2.0)
EMA Filter & Sensitivity
Cross Filter (Anti-chop logic)
Range Filter Parameters
Visual Toggles: ORB range, SD levels, EMA clouds
🎯 Trade Management Rules
Entry:
Triggered at the close of a 5-minute candle confirming a breakout of the ORB range.
Stop Loss:
Defined by structural invalidation (quartile boundaries & mid-range buffers).
Take Profit Strategy:
75% closed at SD1.0 level
Remaining 25% trailed to further SD2 target
SL is moved to breakeven after partial exit
Execution Controls:
No pyramiding
No re-entries (cooldown enforced)
🔧 Trading Modes
✅ Safe Mode
EMA Filter: Enabled
EMA Sensitivity: 19
Range Filter: Disabled
Ideal for conservative setups and reduced noise environments
🔥 Aggressive Mode
EMA Filter: Enabled
EMA Sensitivity: 5
Range Filter: Disabled
Suited for high-frequency setups and faster breakouts
📊 Backtest Performance (7-Month Sample)
Safe Mode:
Win Rate: 66%
Total Trades: 29
Net PnL: +21.79R (~$4,357 with R = $200)
Max Red Days: 3
Max Drawdown: -$663
Best Month: +9R, Worst Month: -2R
Aggressive Mode:
Win Rate: 63%
Total Trades: 52
Net PnL: +30R (~$6,080)
Max Red Days: 6
Max Drawdown: -$1,357
Best Month: +12R, Worst Month: -3.2R
👨💻 Developed by Antony.N4A
This tool is crafted for strategic intraday traders, system developers, and backtesters.
For access, customization, or licensing options, contact the developer directly.
Protected script. Redistribution or reuse without permission is prohibited.
Price Statistical Strategy-Z Score V 1.01
Price Statistical Strategy – Z Score V 1.01
Overview
A technical breakdown of the logic and components of the “Price Statistical Strategy – Z Score V 1.01”.
This script implements a smoothed Z-Score crossover mechanism applied to the closing price to detect potential statistical deviations from local price mean. The strategy operates solely on price data (close) and includes signal spacing control and momentum-based candle filters. No volume-based or trend-detection components are included.
Core Methodology
The strategy is built on the statistical concept of Z-Score, which quantifies how far a value (closing price) is from its recent average, normalized by standard deviation. Two moving averages of the raw Z-Score are calculated: a short-term and a long-term smoothed version. The crossover between them generates long entries and exits.
Signal Conditions
Entry Condition:
A long position is opened when the short-term smoothed Z-Score crosses above the long-term smoothed Z-Score, and additional entry conditions are met.
Exit Condition:
The position is closed when the short-term Z-Score crosses below the long-term Z-Score, provided the exit conditions allow.
Signal Gapping:
A minimum number of bars (Bars gap between identical signals) must pass between repeated entry or exit signals to reduce noise.
Momentum Filter:
Entries are prevented during sequences of three or more consecutively bullish candles, and exits are prevented during three or more consecutively bearish candles.
Z-Score Function
The Z-Score is calculated as:
Z = (Close - SMA(Close, N)) / STDEV(Close, N)
Where N is the base period selected by the user.
Input Parameters
Enable Smoothed Z-Score Strategy
Enables or disables the Z-Score strategy logic. When disabled, no trades are executed.
Z-Score Base Period
Defines the number of bars used to calculate the simple moving average and standard deviation for the Z-Score. This value affects how responsive the raw Z-Score is to price changes.
Short-Term Smoothing
Sets the smoothing window for the short-term Z-Score. Higher values produce smoother short-term signals, reducing sensitivity to short-term volatility.
Long-Term Smoothing
Sets the smoothing window for the long-term Z-Score, which acts as the reference line in the crossover logic.
Bars gap between identical signals
Minimum number of bars that must pass before another signal of the same type (entry or exit) is allowed. This helps reduce redundant or overly frequent signals.
Trade Visualization Table
A table positioned at the bottom-right displays live PnL for open trades:
Entry Price
Unrealized PnL %
Text colors adapt based on whether unrealized profit is positive, negative, or neutral.
Technical Notes
This strategy uses only close prices — no trend indicators or volume components are applied.
All calculations are based on simple moving averages and standard deviation over user-defined windows.
Designed as a minimal, isolated Z-Score engine without confirmation filters or multi-factor triggers.
QQQ Strategy v2 ESL | easy-peasy-x This is a strategy optimized for QQQ (and SPY) for the 1H timeframe. It significantly outperforms passive buy-and-hold approach. With settings adjustments, it can be used on various assets like stocks and cryptos and various timeframes, although the default out of the box settings favor QQQ 1H.
The strategy uses various triggers to take both long and short trades. These can be adjusted in settings. If you try a different asset, see what combination of triggers works best for you.
Some of the triggers employ LuxAlgo's Ultimate RSI - shoutout to him for great script, check it out here .
Other triggers are based on custom signed standard deviation - basically the idea is to trade Bollinger Bands expansions (long to the upside, short to the downside) and fade or stay out of contractions.
There are three key moving averages in the strategy - LONG MA, SHORT MA, BASIC MA. Long and Short MAs are guides to eyes on the chart and also act as possible trend filters (adjustable in settings). Basic MA acts as guide to eye and a possible trade trigger (adjustable in settings).
There are a few trend filters the strategy can use - moving average, signed standard deviation, ultimate RSI or none. The filters act as an additional condition on triggers, making the strategy take trades only if both triggers and trend filter allows. That way one can filter out trades with unfavorable risk/reward (for instance, don't long if price is under the MA200). Different trade filters can be used for long and short trades.
The strategy employs various stop loss types, the default of which is a trailing %-based stop loss type. ATR-based stop loss is also available. The default 1.5% trailing stop loss is suitable for leveraged trading.
Lastly, the strategy can trigger take profit orders if certain conditions are met, adjustable in settings. Also, it can hold onto winning trades and exit only after stop out (in which case, consecutive triggers to take other positions will be ignored until stop out).
Let me know if you like it and if you use it, what kind of tweaks would you like to see.
With kind regards,
easy-peasy-x
Three Candle Bullish Engulfing StrategyThe Three Candle Bullish Engulfing Strategy is a versatile, multi-mode trading system designed for TradingView, combining classic candlestick patterns with momentum confirmation and dynamic risk management. This script supports both swing trading and intraday approaches, as well as an optional RSI-based breakout mode for additional signal filtering.
Key Features:
Three Candle Pattern Detection:
The strategy identifies potential trend reversal points using a three-candle pattern:
The first candle is a strong bullish (or bearish) move.
The second candle is a doji or small-bodied candle, indicating indecision.
The third candle is a bullish (or bearish) engulfing candle that closes above (or below) the previous high (or low), confirming the reversal.
Flexible Trading Modes:
Swing Long Only: Enter long trades on bullish three-candle setups.
Intraday Long & Short: Trade both long and short based on bullish and bearish three-candle patterns, with automatic session-end exits.
RSI Breakout Mode: Enter long trades when the 1-hour RSI exceeds a user-defined threshold (default 80) and a bullish candle forms, with breakout confirmation and a fixed-percentage stop loss.
Visual Aids:
Plots the RSI breakout trigger price and stop loss on the chart for easy monitoring.
How It Works:
Three Candle Pattern Entries:
Long Entry: Triggered when a bullish candle is followed by a doji, then a bullish engulfing candle closes above the previous high.
Short Entry (Intraday only): Triggered by the inverse pattern—bearish candle, doji, then bearish engulfing candle closing below the previous low.
RSI Breakout Entries:
When the RSI on a higher timeframe (default 1 hour) exceeds the set threshold and a bullish candle forms, the script records a trigger price.
A long trade is entered if the price breaks above this trigger, with a stop loss set a fixed percentage below.
Exits:
Positions are closed if the trailing stop is hit, the session ends (for intraday mode), or the stop loss is triggered in RSI breakout mode.
In RSI breakout mode, positions are also closed if a new breakout trigger forms while in position.
MACD + RSI + EMA + BB + ATR Day Trading StrategyEntry Conditions and Signals
The strategy implements a multi-layered filtering approach to entry conditions, requiring alignment across technical indicators, timeframes, and market conditions .
Long Entry Requirements
Trend Filter: Fast EMA (9) must be above Slow EMA (21), price must be above Fast EMA, and higher timeframe must confirm uptrend
MACD Signal: MACD line crosses above signal line, indicating increasing bullish momentum
RSI Condition: RSI below 70 (not overbought) but above 40 (showing momentum)
Volume & Volatility: Current volume exceeds 1.2x 20-period average and ATR shows sufficient market movement
Time Filter: Trading occurs during optimal hours (9:30-11:30 AM ET) when market volatility is typically highest
Exit Strategies
The strategy employs multiple exit mechanisms to adapt to changing market conditions and protect profits :
Stop Loss Management
Initial Stop: Placed at 2.0x ATR from entry price, adapting to current market volatility
Trailing Stop: 1.5x ATR trailing stop that moves up (for longs) or down (for shorts) as price moves favorably
Time-Based Exits: All positions closed by end of trading day (4:00 PM ET) to avoid overnight risk
Best Practices for Implementation
Settings
Chart Setup: 5-minute timeframe for execution with 15-minute chart for trend confirmation
Session Times: Focus on 9:30-11:30 AM ET trading for highest volatility and opportunity
Multi-Indicator Trend-Following Strategy v6Multi-Indicator Trend-Following Strategy v6
This strategy uses a combination of technical indicators to identify potential trend-following trade entries and exits. It is intended for educational and research purposes.
How it works:
Moving Averages (EMA): Entry signals are generated on crossovers between a fast and slow exponential moving average.
RSI Filter: Confirms momentum with a threshold above/below 50 for long/short entries.
Volume Confirmation: Requires volume to exceed a moving average multiplied by a user-defined factor.
ATR-Based Risk Management: Stop loss and take profit levels are calculated using the Average True Range (ATR), allowing for dynamic risk control based on market volatility.
Customizable Inputs:
Fast/Slow MA lengths
RSI length and levels
MACD settings (used in calculation, not directly in signal)
Volume MA and multiplier
ATR period and multipliers for stop loss and take profit
Notes:
This strategy does not guarantee future results.
It is provided for analysis and backtesting only.
Alerts are available for buy/sell conditions.
Feel free to adjust parameters to explore different market conditions and asset classes.
Long Explosive V1The “Long Explosive V1” strategy calculates the percentage change in price from the last closing price of the candlestick, so that if it increases by a certain percentage it goes long, but if it decreases by another percentage it sends an exit order, so that the percentage limits above and below the current price function as inherent stop loss and take profit, with the benefit of taking advantage of the volatility of the bull market.
Entries and exits are always at the market and based on percentage changes in the price. Of course, the default configuration of the strategy considers a position with a 5% risk control, modest initial capital and standard commissions, which helps to obtain realistic results and protect the user from unexpectedly controlled potential losses.
It is again emphasized that it is always advisable to adjust the parameters of the strategy well, so that the risk-reward is well controlled.
Reversal Trap Sniper – Verified VersionReversal Trap Sniper
Overview
Reversal Trap Sniper is a counterintuitive momentum-following strategy that identifies "reversal traps"—situations where traders expect a market reversal based on RSI, but the price continues trending. By detecting these failed reversal signals, the strategy enters trades in the trend direction, often catching strong follow-through moves.
How It Works
The system monitors the Relative Strength Index (RSI). When RSI moves above the overbought level (e.g., 70) and then drops back below it, many traders interpret this as a sell signal.
However, this strategy treats such moves with caution. If the RSI pulls back below the overbought threshold but the price continues to rise, the system considers it a "reversal trap"—a fakeout.
In such cases, instead of going short, the strategy enters a long position, assuming that the trend is still valid and those betting on a reversal may fuel a breakout.
Similarly, if RSI rises above the oversold level from below, but price continues falling, a short trade is triggered.
Entries are followed by ATR-based stop-loss and dynamic take-profit (2× risk), with a fallback time-based exit after 30 bars.
Key Features
- Detects failed RSI-based reversals ("traps")
- Follows momentum after the trap is triggered
- Uses ATR for dynamic stop-loss and take-profit
- Auto-exit after a fixed bar count (30 bars)
- Visual markers on chart for transparency
- Realistic trading assumptions: 0.05% commission, slippage, and capped pyramiding
Parameter Explanation
RSI Length (14): Standard RSI calculation period
Overbought/Oversold Levels (70/30): Common thresholds used by many traders
ATR Length (14): Used to define stop-loss and target dynamically
Risk-Reward Ratio (2.0): Take-profit is set at 2× the stop-loss distance
Max Holding Bars (30): Ensures trades don’t remain open indefinitely
Pyramiding (10): Allows scaling into trades, simulating real-world strategy stacking
Originality Note
This strategy inverts traditional RSI logic. Instead of treating overbought/oversold conditions as signals for reversal, it waits for those signals to fail. Only after such failures, confirmed by continued price action in the same direction, does the system enter trades. This logic is based on the behavioral observation that failed reversal signals often trigger stronger trend continuation—making this strategy uniquely positioned to exploit trap scenarios.
Disclaimer
This script is for educational and research purposes only. Trading involves risk, and past performance does not guarantee future results. Always test thoroughly before applying with live capital.
Dual MACD Strategy [Js.k]Strategy Overview
The Dual MACD Strategy leverages two MACD indicators with different parameters to generate buy and sell signals. By combining the trend-following properties of MACD with specific entry/exit criteria, this strategy aims to capture significant price movements while effectively managing risk.
Entry and Exit Conditions
Long Entry: A buy signal is triggered when:
The histogram of MACD1 crosses above zero.
The histogram of MACD2 is positive and rising.
Short Entry: A sell signal is triggered when:
The histogram of MACD1 crosses below zero.
The histogram of MACD2 is negative and declining.
Risk Management
Stop Loss and Take Profit:
Stop Loss is set at 1% below the entry price for long positions and 1% above the entry price for short positions.
Take Profit is set at 1.5% above the entry price for long positions and 1.5% below the entry price for short positions.
Position Sizing: Each trade risks a maximum of 10% of account equity, keeping potential losses manageable and in line with standard trading practices.
Backtesting Results
The strategy is tested on BTCUSDT with a time frame of 1 hour, resulting in 200+ trades.
The initial capital for backtesting is set to $10,000, with a realistic commission of 0.04% and a slippage of 2 ticks.
Conclusion
This strategy is inspired by Dreadblitz's Double MACD Buy and Sell, as well as some YouTube videos. My purpose in redeveloping them into this strategy is to validate the practicality of the Double MACD. After multiple modifications, this is the final version. I believe its profitability is limited and may lead to losses; please do not use this strategy for live trading.
LANZ Strategy 4.0 [Backtest]🔷 LANZ Strategy 4.0 — Strategy Execution Based on Confirmed Structure + Risk-Based SL/TP
LANZ Strategy 4.0 is the official backtesting engine for the LANZ Strategy 4.0 trading logic. It simulates real-time executions based on breakout of Strong/Weak Highs or Lows, using a consistent structural system with SL/TP dynamically calculated per trade. With integrated risk management and lot size logic, this script allows traders to validate LANZ Strategy 4.0 performance with real strategy metrics.
🧠 Core Components:
Confirmed Breakout Entries: Trades are executed only when price breaks the most recent structural level (Strong High or Strong Low), detected using swing pivots.
Dynamic SL and TP Logic: SL is placed below/above the breakout point with a customizable buffer. TP is defined using a fixed Risk-Reward (RR) ratio.
Capital-Based Risk Management: Lot size is calculated based on account equity, SL distance, and pip value (e.g. $10 per pip on XAUUSD).
Clean and Controlled Executions: Only one trade is active at a time. No new entries are allowed until the current position is closed.
📊 Visual Features:
Automatic plotting of Entry, SL, and TP levels.
Full control of swing sensitivity (swingLength) and SL buffer.
SL and TP lines extend visually for clarity of trade risk and reward zones.
⚙️ How It Works:
Detects pivots and classifies trend direction.
Waits for breakout above Strong High (BUY) or below Strong Low (SELL).
Calculates dynamic SL and TP based on buffer and RR.
Computes trade size automatically based on risk per trade %.
Executes entry and manages exits via strategy engine.
📝 Notes:
Ideal for evaluating the LANZ Strategy 4.0 logic over historical data.
Must be paired with the original indicator (LANZ Strategy 4.0) for live trading.
Best used on assets with clear structural behavior (gold, indices, FX).
📌 Credits:
Backtest engine developed by LANZ based on the official rules of LANZ Strategy 4.0. This script ensures visual and logical consistency between live charting and backtesting simulations.