Strategy: HMA 50 + Supertrend SniperHMA 50 + Supertrend Confluence Strategy (Trend Following with Noise Filtering)
Description:
Introduction and Concept This strategy is designed to solve a common problem in trend-following trading: Lag vs. False Signals. Standard Moving Averages often lag too much, while price action indicators can generate false signals during choppy markets. This script combines the speed of the Hull Moving Average (HMA) with the volatility-based filtering of the Supertrend indicator to create a robust "Confluence System."
The primary goal of this script is not just to overlay two indicators, but to enforce a strict rule where a trade is only taken when Momentum (HMA) and Volatility Direction (Supertrend) are in perfect agreement.
Why this combination? (The Logic Behind the Mashup)
Hull Moving Average (HMA 50): We use the HMA because it significantly reduces lag compared to SMA or EMA by using weighted calculations. It acts as our primary Trend Direction detector. However, HMA can be too sensitive and "whipsaw" during sideways markets.
Supertrend (ATR-based): We use the Supertrend (Factor 3.0, Period 10) as our Volatility Filter. It uses Average True Range (ATR) to determine the significant trend boundary.
How it Works (Methodology) The strategy uses a boolean logic system to filter out low-quality trades:
Bullish Confluence: The HMA must be rising (Slope > 0) AND the Close Price must be above the Supertrend line (Uptrend).
Bearish Confluence: The HMA must be falling (Slope < 0) AND the Close Price must be below the Supertrend line (Downtrend).
The "Choppy Zone" (Noise Filter): This is a unique feature of this script. If the HMA indicates one direction (e.g., Rising) but the Supertrend indicates the opposite (e.g., Downtrend), the market is considered "Choppy" or indecisive. In this state, the script paints the candles or HMA line Gray and exits all positions (optional setting) to preserve capital.
Visual Guide & Signals To make the script easy to interpret for traders who do not read Pine Script, I have implemented specific visual cues:
Green Cross (+): Indicates a LONG entry signal. Both HMA and Supertrend align bullishly.
Red Cross (X): Indicates a SHORT entry signal. Both HMA and Supertrend align bearishly.
Thick Line (HMA): The main line changes color based on the trend.
Green: Bullish Confluence.
Red: Bearish Confluence.
Gray: Divergence/Choppy (No Trade Zone).
Thin Step Line: This is the Supertrend line, serving as your dynamic Trailing Stop Loss.
Strategy Settings
HMA Length: Default is 50 (Mid-term trend).
ATR Factor/Period: Default is 3.0/10 (Standard for trend catching).
Exit on Choppy: A toggle switch allowing users to decide whether to hold through noise or exit immediately when indicators disagree.
Risk Warning This strategy performs best in trending markets (Forex, Crypto, Indices). Like all trend-following systems, it may experience drawdown during prolonged accumulation/distribution phases. Please backtest with your specific asset before using it with real capital.
التقلب
Oleg_Aryukov_StrategyTrader Oleg Aryukov's strategy, based on a variety of oscillators, allows him to try to catch reversals in cryptocurrencies.
AliceTears GridAliceTears Grid is a customizable Mean Reversion system designed to capitalize on market volatility during specific trading sessions. Unlike standard grid bots that place blind limit orders, this strategy establishes a daily or session-based "Baseline" and looks for price over-extensions to fade the move back to the mean.
This strategy is best suited for ranging markets (sideways accumulation) or specific forex sessions (e.g., Asian Session or NY/London overlap) where price tends to revert to the opening price.
🛠 How It Works
1. The Baseline & Grid Generation At the start of every session (or the daily open), the script records the Open price. It then projects visual grid lines above and below this price based on your Step % input.
Example: If the Open is $100 and Step is 1%, lines are drawn at $101, $102, $99, $98, etc.
2. Entry Logic: Reversal Mode This script features a "Reversal Mode" (enabled by default) to filter out "falling knives."
Standard Grid: Buys immediately when price touches the line.
AliceTears Logic: Waits for the price to breach a grid level and then close back inside towards the mean. This confirms a potential rejection of that level before entering.
3. Exit Logic
Target Profit: The primary target is the previous grid level (Mean Reversion).
Trailing Stop: If the price continues moving in your favor, a trailing stop activates to maximize the run.
Stop Loss: A manual percentage-based stop loss is available to prevent deep drawdowns in trending markets.
⚙️ Key Features
Visual Grid: Automatically draws entry levels on the chart for the current session, helping you visualize where the "math" is waiting for price.
Timezone & Session Control: Includes a custom Timezone Offset tool. You can trade specific hours (e.g., 09:30–16:00) regardless of your chart's UTC setting.
Grid Management: Independent logic for Long and Short grids with pyramiding capabilities.
Safety Filters: Options to force-close trades at the end of the session to avoid overnight gaps.
⚠️ Risk Warning
Please Read Before Using: This is a Counter-Trend / Grid Strategy.
Pros: High win rate in sideways/ranging markets.
Cons: In strong trending markets (parabolic pumps or crashes), this strategy will add to losing positions ("catch a falling knife").
Recommendation: Always use the Stop Loss and Date Filter inputs. Do not run this on highly volatile assets without strict risk management parameters.
Settings Guide
Entry Reversal Mode: Keep checked for safer entries. Uncheck for aggressive limit-order style execution.
Grid Step (%): The distance between lines. For Forex, use lower values (0.1% - 0.5%). For Crypto, use higher values (1.0% - 3.0%).
UTC Offset: Adjust this to align the Session Hours with your target market (e.g., -5 for New York).
This script is open source. Feel free to use it for educational purposes or modify it to fit your trading style.
Stack8 ORB [Real Edge] - Institutional Breakout SystemStop trading false breakouts and getting chopped up in low-volume markets.
The Stack8 ORB is a professional-grade execution strategy designed specifically for futures traders (MNQ, MES, NQ, ES) and Prop Firm evaluations. Unlike standard Opening Range Breakout (ORB) scripts that blindly buy every high or sell every low, Stack8 utilizes a proprietary Volatility Gate to filter out noise and only execute when institutional momentum is present.
🚀 Key Features
1. Smart Volatility Gating Most breakouts fail because the market lacks energy. This system includes a built-in Volatility Filter that detects "Choppy" market regimes. If the market is ranging or volume is low, the strategy forces itself to stay flat—saving your capital for high-probability moves.
2. The "Prop Firm Projector" (HUD) Designed for traders aiming to get funded. The on-screen Heads Up Display (HUD) includes a custom Risk Calculator that:
Auto-Calculates Drawdown: Tracks your current drawdown relative to your account tier (25k, 50k, 100k, etc.).
Safe Contract Sizing: Tells you exactly how many contracts you can trade based on your risk buffer.
Funding Estimation: Projects how many days until you hit your profit target based on current performance.
3. Zero-Repaint Logic We have strictly removed all "lookahead" bias. The Daily Trend filters and Signal logic rely purely on confirmed, closed data. What you see on the backtest is exactly how the strategy behaves in live conditions.
4. Multi-Timeframe Trend Bias The strategy aligns intraday setups with the higher-timeframe Daily Trend. It automatically detects if the Daily Regime is Bullish or Bearish and filters out counter-trend trades, increasing your win rate probability.
⚙️ Customizable Settings
Session Control: Fully adjustable AM and PM sessions.
Risk Management: Built-in hard Stop Loss, Take Profit, and Trailing Stop logic.
Account Tiers: Select your specific Prop Firm account size (50k, 100k, 150k) to calibrate the risk manager.
⚠️ Disclaimer
This script is for educational and data analysis purposes only. Past performance is not indicative of future results. Trading futures involves substantial risk of loss.
51 By GoldmanMrBaNNa✅ Indicator Description
This indicator checks the Higher Timeframe (HTF) trend and only allows trades in that direction on the Lower Timeframe (LTF).
Example:
If 15-minute timeframe gives a BUY signal, then on the 1-minute timeframe the indicator will only show BUY signals.
If 15-minute timeframe gives a SELL signal, then on the 1-minute timeframe the indicator will only show SELL signals.
It filters small-timeframe trades and keeps entries aligned with major market direction.
Built for clean, directional scalping such as 1:3 / 1:4 risk-reward setups.
Ghost Robo Plus [Bit2Billions]Ghost Robo Plus — Rule-Based Trade Management System
*An advanced, rule-based trading strategy for structured entries, exits, and complete trade management using Heikin-Ashi logic.*
Ghost Robo Plus simplifies trade execution by automating entry, stop-loss, and multiple take-profit levels, all visualized cleanly on your chart. It supports position sizing, backtesting, alerts, and real-time trade tracking, making it easy for traders to test strategies, validate ideas, and follow trades without chart clutter.
Key Features
1. Heikin-Ashi Entry System
* Generates clear long/short signals based on Heikin-Ashi candle crossovers.
* Structured entry logic ensures precise timing aligned with trend direction.
2. Multiple Exit Modes (Switch Anytime)
* ATR Mode: TP1/TP2/TP3 and SL based on ATR distance calculations.
* Trailing Mode: Dynamic trailing logic for trend-following continuation.
* Options Mode: Original options-style behavior preserved for flexible testing.
3. Multi–Take-Profit Structure
* Three configurable take-profit levels (TP1, TP2, TP3) with adjustable percentage splits.
* Enables partial profit-taking with structured scaling.
4. ATR-Based Calculations
* All TP and SL levels are derived from ATR length, profit factors, and stop factors.
* Volatility-adjusted trade placement ensures adaptive risk/reward.
5. Visual Trade Manager
* Automatically draws Entry, Stop Loss, and TP lines directly on chart.
* Includes on-chart labels for Entry, SL, TP, and mini entry/exit markers.
* Visuals update automatically per trade, removing clutter or leftover objects.
6. Alerts
* Built-in alerts for:
* Long entry
* Short entry
* TP/SL exits
* Any trade event (unified alert option)
7. Position Sizing & Commission Support
* Percent-of-equity sizing (10% default, fully adjustable).
* Supports TradingView strategy commission settings for realistic backtesting.
What Ghost Robo Plus Solves
* Automates TP/SL drawings and scaling for faster analysis.
* Lets traders test multiple exit styles without rewriting logic.
* Ensures clear, consistent on-chart visualization for every trade.
* Provides a structured workflow for backtesting and strategy validation.
* Eliminates chart clutter with synchronized, auto-updating visual elements.
Inputs & High-Level Settings
* TPS Mode: ATR / Trailing / Options
* Risk Settings: ATR length, profit factor, stop factor
* TP Splits: Adjustable TP1/TP2/TP3 percentages
* Position Sizing: Percent of equity (default 10%)
* Visual Controls: Auto-managed lines & labels
* Alerts: Entry/exit event triggers
Recommended Timeframes & Markets
* Recommended starting timeframes: 15m and higher (15m, 1H, 4H, Daily). Works on intraday but benefits from cleaner HTF structure.
* Suitable for liquid FX pairs, major crypto, indices and liquid equities.
* On illiquid or low-volume instruments, the volume-split and total-volume filters should be tightened, or higher timeframes should be used.
What Ghost Suite Solves
* Helps reduce manual charting work
* Speeds up analysis with automated visual tools
* Cuts through chart noise for improved clarity
* Provides consistent, rule-based visualization for workflows
Inputs & Settings
* Default settings pre-configured
* Simple Show/Hide toggles for modules
* Minimal exposed fields for ease of use
Recommended Timeframes & Markets
* Works best on 15M, 1H, 4H, Daily, and higher
* Suitable across forex, crypto, indices, and liquid equities
* Pivot-based modules may show noise on illiquid assets
Performance & Limitations
* May draw many objects → disable unused modules for speed
* Refresh the chart if historical buffer issues occur
* TradingView platform limitations handled internally
License & Legal
* Proprietary © 2025
* Redistribution, resale, or disclosure prohibited
* Independently developed with proprietary extensions
* Any resemblance to other tools may result from public-domain concepts
Respect & Transparency
* Built on widely recognized public trading concepts.
* Developed with respect for the TradingView community.
* Any overlaps or similarities can be addressed constructively.
Disclaimer
* Educational purposes only
* Not financial advice
* Trading carries risk — always use paper testing and proper risk management
FAQs
* Source code is not public
* Works best on 15m, 1H, 4H, Daily, Weekly charts
* Modules can be hidden/shown with toggles
* Alerts can be set up manually by users
* Supports multiple markets: forex, crypto, indices, and equities
About Ghost Trading Suite
Author: BIT2BILLIONS
Project: Ghost Trading Suite © 2025
Indicators: Ghost Matrix, Ghost Protocol, Ghost Cipher, Ghost Shadow
Strategies: Ghost Robo, Ghost Robo Plus
Pine Version: V6
The Ghost Trading Suite is designed to simplify and automate many aspects of chart analysis. It helps traders identify market structure, divergences, support and resistance levels, and momentum efficiently, reducing manual charting time.
The suite includes several integrated tools — such as Ghost Matrix, Ghost Protocol, Ghost Cipher, Ghost Shadow, Ghost Robo, and Ghost Robo Plus — each combining analytical modules for enhanced clarity in trend direction, volatility, pivot detection, and momentum tracking.
Together, these tools form a cohesive framework that assists in visualizing market behavior, measuring momentum, detecting pivots, and analyzing price structure effectively.
This project focuses on providing adaptable and professional-grade tools that turn complex market data into clear, actionable insights for technical analysis.
Crafted with 💖 by BIT2BILLIONS for Traders. That's All Folks!
Changelog
v1.0 — Initial Release
* Added Heikin-Ashi–based long/short entry system.
* Introduced three exit modes: ATR, Trailing, and Options.
* Added full multi-TP support with configurable TP1/TP2/TP3 quantities.
* Implemented ATR-based TP/SL calculations for ATR mode.
* Added on-chart visuals for Entry, SL, and TP levels with dynamic cleanup.
* Introduced queue-safe line/label manager to avoid object clutter.
* Added alerts for entries, exits, and general signals.
* Enabled position sizing, backtesting, and commission settings.
* Polished internal logic with a clean, auditable structure for reliability.
Trend Flow & Volatility Guard Strategy [ROSTOK V5]Description:
This strategy is a comprehensive trend-following system designed to identify high-probability entries by aligning long-term market direction with short-term momentum, while strictly filtering out low-quality "choppy" market conditions.
How it Works:
The strategy operates on a multi-stage logic system:
Trend Identification: The core direction is determined by a customizable Main Trend Line (selectable between a long-period EMA or Supertrend). Trades are only taken in the direction of the dominant trend.
Signal Generation: Entries are triggered when a fast-moving Signal Line crosses the Main Trend Line, confirmed by specific candlestick price action (Close > Open).
Advanced Filtering (Confluence): To avoid false signals, the strategy employs a robust set of filters. A trade is only valid if:
Momentum: RSI is within safe operating zones (avoiding extreme overbought/oversold unless a strong trend override is active).
Cycle: CCI and MACD histograms align with the trade direction.
Volatility: The ADX is analyzed to ensure sufficient trend strength, while a Choppiness Index filter blocks trades during sideways/ranging markets.
Risk Management & Recovery: The strategy features built-in money management tools, including:
ADR (Average Daily Range) Filter: Prevents entering trades when the asset has already moved its expected daily distance.
Daily Limits: Hard stops for Max Daily Loss and Target Daily Profit to preserve capital.
Recovery Logic: An optional mechanism to manage drawdowns on difficult days using calculated recovery targets.
Settings & Customization: Users can toggle individual filters (Volume, Choppiness, ADX) and adjust the sensitivity of the trend lines to fit different assets and timeframes (e.g., EURAUD 15m).
Disclaimer: Past performance is not indicative of future results. This script is for educational purposes and backtesting analysis.
Trendforduló Radar STRAT v4.1.3Trend Reversal Radar is a proprietary indicator that examines potential turning points in market trends. It combines data from multiple time frames, support and resistance levels, and volume movements to provide visual signals to traders. Its purpose is not to provide trading advice, but to complement technical analysis and provide more confident decision support.- A Trendforduló Radar egy saját fejlesztésű indikátor, amely a piaci trendek lehetséges fordulópontjait vizsgálja. Több idősík adatait, támasz–ellenállás szinteket és volumenmozgásokat kombinálva ad vizuális jelzést a kereskedőnek. A célja nem a kereskedési tanácsadás, hanem hogy kiegészítse a technikai elemzést és magabiztosabb döntéstámogatást adjon.
Dynamic Ratchet Trend Strategy [VIX Filter]Overview This strategy is a long-only trend-following system designed to capture major market moves while strictly managing downside risk through a state-machine based "Ratchet" exit logic. It incorporates a volatility filter using the CBOE VIX index to stay out of (or exit) the market during high-stress environments.
Key Features
1. Multi-Condition Entries The strategy looks for momentum shifts and trend breakouts using four Simple Moving Averages (25, 50, 100, 200).
Momentum Cross: SMA 25 crossover above SMA 50.
Trend Breakouts: A specific "3-Bar Breakout" logic above the SMA 50, 100, or 200. This requires the price to hold above the SMA for 3 consecutive bars after being below it, reducing false signals compared to simple closes.
2. VIX Volatility Filter Before entering any trade, the script checks the CBOE:VIX.
Filter: If VIX is above the threshold (default 32), new entries are blocked.
Panic Exit: If you are in a position and the VIX spikes above the threshold, the strategy executes an immediate "Panic Exit" to preserve capital during market crashes.
3. The "Ratchet" Exit System (3 Stages) Unlike a standard trailing stop, this strategy uses a 3-stage dynamic exit mechanism that tightens as profits grow:
Stage 0 (Initial Risk): Standard percentage-based Stop Loss from the entry price.
Stage 1 (The Lock-In): Triggered when profit hits 10% (configurable).
Unique Logic: Instead of trailing from the highest high, the stop is calculated based on the price at the exact moment this stage was triggered. It "steps up" once and holds, securing the initial move without being prematurely stopped out by normal volatility.
Stage 2 (Trailing Mode): Triggered when profit hits 15% (configurable).
The strategy switches to a classic Trailing Stop, following the percentage distance from the Highest High.
4. Emergency Backup A "Dead Cross" (SMA 25 crossing under SMA 50) acts as a final fail-safe to close positions if the trend reverses completely before hitting a stop.
Settings & Inputs
SMAs: Customize the lengths for all four moving averages.
VIX Filter: Toggle the filter on/off and set the panic threshold.
Exit Logic: Fully customizable percentages for Initial SL, Stage 1 Trigger/Distance, and Stage 2 Trigger/Trailing Distance.
Disclaimer This script is for educational purposes only. Past performance is not indicative of future results. Always manage your risk appropriately.
Ratchet Exit Trend Strategy with VIX FilterThis strategy is a trend-following system designed specifically for volatile markets. Instead of focusing solely on the "perfect entry," this script emphasizes intelligent trade management using a custom **"Ratchet Exit System."**
Additionally, it integrates a volatility filter based on the CBOE Volatility Index (VIX) to minimize risk during extreme market phases.
### 🎯 The Concept: Ratchet Exit
The "Ratchet" system operates like a mechanical ratchet tool: the Stop Loss can only move in one direction (up, for long trades) and "locks" into specific stages. The goal is to give the trade "room to breathe" initially to avoid being stopped out by noise, then aggressively reduce risk as the trade moves into profit.
The exit logic moves through 3 distinct phases:
1. **Phase 0 (Initial Risk):** At the start of the trade, a wide Stop Loss is set (Default: 10%) to tolerate normal market volatility.
2. **Phase 1 (Risk Reduction):** Once the trade reaches a specific floating profit (Default: +10%), the Stop Loss is raised and "pinned" to a fixed value (Default: -8% from entry). This drastically reduces risk while keeping the trade alive.
3. **Phase 2 (Trailing Mode):** If the trend extends to a higher profit zone (Default: +15%), the Stop switches to a dynamic Trailing Mode. It follows the **Highest High** at a fixed percentage distance (Default: 8%).
### 🛡️ VIX Filter & Panic Exit
High volatility is often the enemy of trend-following strategies.
* **Entry Filter:** The system will not enter new positions if the VIX is above a user-defined threshold (Default: 32). This helps avoid entering "falling knife" markets.
* **Panic Exit:** If the VIX spikes above the threshold (32) while a trade is open, the position is closed immediately to protect capital (Emergency Exit).
### 📈 Entry Signals
The strategy trades **LONG only** and uses Simple Moving Averages (SMAs) to identify trends:
* **Golden Cross:** SMA 25 crosses over SMA 50.
* **3-Bar Breakouts:** A confirmation logic where the price must close above the SMA 50, 100, or 200 for 3 consecutive bars.
### ⚙️ Settings (Inputs)
All parameters are fully customizable via the settings menu:
* **SMAs:** Lengths for the trend indicators (Default: 25, 50, 100, 200).
* **VIX Filter:** Toggle the filter on/off and adjust the panic threshold.
* **Ratchet Settings:** Percentages for Initial Stop, Trigger Levels for Stages 1 & 2, and the Trailing Distance.
### ⚠️ Technical Note & Risk Warning
This script uses `request.security` to fetch VIX data. Please ensure you understand the risks associated with trading leveraged or volatile assets. Past performance is not indicative of future results.
Multi-Mode Grid StrategyGrid Strategy (SIMPLE)
█ Overview
This script is a system trading tool designed to generate cash flow from market volatility without relying on short-term directional predictions. It operates on the principle of Grid Trading , creating a mesh of buy and sell orders within a user-defined price range.
The strategy automates the process of "buying the dip" and "selling the bounce" repeatedly. It is most effective in sideways markets or during accumulation phases where the price oscillates within a specific channel.
█ TRADING MINDSET & SETUP GUIDE
To use this tool effectively, you must shift your perspective from "Sniper" (trying to hit the perfect entry) to "Manager" (managing a zone). Here is the required mindset for setting up this strategy:
Shift from Prediction to Range Definition
Don't ask: "Will the price go up or down tomorrow?"
Ask instead: "What is the price range the asset is unlikely to break out of in the coming weeks?"
Your primary job is to define the Grid Top Price (Ceiling) and Grid Bottom Price (Floor). As long as the price stays within this "Arena," the strategy will continue to execute trades.
Embrace Volatility as Fuel
For a trend follower, chop/sideways action is a nightmare. For a Grid Trader, it is fuel. Every time the price crosses a grid line down, it builds inventory. Every time it crosses back up, it realizes profit. You want the price to wiggle as much as possible within your defined boundaries.
Capital Allocation & Survivability
The biggest risk in grid trading is the price crashing below your Grid Bottom Price .
Mindset Check: Before launching, assume the price WILL drop to your bottom price immediately. Can your account handle that drawdown?
The script includes leverage and capital percentage inputs to help you size your position correctly. Never allocate 100% of your capital to a tight range without understanding the liquidation risk.
█ HOW IT WORKS
Grid Construction:
The script divides the space between your Upper Border and Lower Border into specific levels based on the Grid Quantity .
- Arithmetic: Equal spacing between lines (Standard).
- Geometric: Spacing based on mathematical ratios (useful for wider ranges).
Execution Logic:
- Entry: When price crosses below a grid line, a Long position is opened.
- Exit: When price bounces back up by a specific number of grid levels (defined by "Distance of TP"), the specific position is closed for a profit.
Time & Backtesting:
You can set specific Start and End Times . This allows you to backtest how the grid would have performed during specific historical volatility events before deploying it on live markets.
█ VISUALIZATION DASHBOARD
To keep you informed without cluttering the chart, the script features an information table at the bottom right:
Cash Out: Total realized profit booked into the account.
Open Position: How many grid levels are currently active (holding bags) vs. total levels.
Open Trade: The current floating P/L of held positions (Unrealized).
Max Drawdown: The deepest drawdown the strategy experienced during the test period.
RISK DISCLAIMER
Grid trading involves significant risk, particularly in strong trending markets that break out of your range against your position. This strategy does not use a stop-loss per trade; it relies on the user defining a safe "Bottom Price" and allocating capital accordingly. Past performance in backtesting does not guarantee future results. This script is a tool for execution and analysis, not financial advice.
Breakout with Alma & Slope - for high volatility playSometimes best not to overthink,
buy at line crosses ;)
NFA, DYOR
best for 15m-1Hr, high volatility FX,Gold etc
Long only when 3 conditions met:-
- Fast Alma crosses Slow Alma
-Angle Pointing UP
-ADX above 20
Short when
- aqua line below navy line
- navy line pointing down
- adx >20
EXIT
- Trailing Stop: The trade closes automatically if price hits the **Red Stepped Line** (this is your safety net that follows the price).
- Emergency Exit:** The trade closes immediately if the ALMA lines cross back in the opposite direction (Reversal).
RC - Crypto Scalper v3Cryptocurrency scalping strategy for perpetual futures with risk management and automation capabilities.
## Strategy Overview
This strategy identifies high-probability scalping opportunities in cryptocurrency perpetual futures markets using adaptive position sizing, dynamic stop losses, and intelligent exit management to maintain consistent risk-adjusted returns across varying market conditions.
## Technical Foundation
The strategy employs exponential moving averages for trend detection, Bollinger Bands for volatility measurement and mean reversion signals, RSI for momentum confirmation and overbought/oversold conditions, ATR for dynamic volatility-based stop placement, and VWAP for institutional price level identification. These technical indicators are combined with volume analysis and optional multi-timeframe confirmation to filter low-probability setups.
## Entry Methodology
The strategy identifies trading opportunities using three complementary approaches that can be enabled individually or in combination:
Momentum-Based Entries: Detects directional price movements aligned with short-term and intermediate-term trend indicators, with momentum oscillator confirmation to avoid entries at exhaustion points. Volume analysis provides additional confirmation of institutional participation.
Mean Reversion Entries: Identifies price extremes using statistical volatility bands combined with momentum divergence, targeting high-probability reversal zones in ranging market conditions. Entries require initial price structure confirmation to reduce false signals.
Institutional Flow Entries: Monitors volume-weighted price levels to identify areas where institutional orders are likely concentrated, entering on confirmed breaks of these key levels with supporting directional bias from trend indicators.
Each methodology uses distinct combinations of the technical indicators mentioned above, with specific parameter relationships and confirmation requirements that can be customized based on trader preference and market conditions.
## Exit Framework
Adaptive Stop Loss: Uses ATR-based stops (default 0.7x multiplier on 14-period ATR) that automatically adjust to current market volatility. Stop distance expands during volatile periods to avoid premature stops while tightening during consolidation to protect capital. Alternative percentage-based stops available for traders preferring fixed-distance risk management.
Trailing Profit System: Employs a dual-target exit approach combining fixed limit orders with dynamic trailing stops. The system activates trailing stops when positions reach profitable thresholds, allowing winning trades to capture extended moves while protecting accumulated gains. The high fixed limit (6R default) serves as a ceiling for exceptional moves while the trailing mechanism handles the majority of exits at optimal profit levels.
Time-Based Management: Implements maximum holding period constraints (50 bars default) to prevent capital from being trapped in directionless price action. This ensures consistent capital turnover and prevents the strategy from holding through extended consolidation periods.
Breakeven Protection: Automatically adjusts stop loss to entry price plus commission costs once trades reach predefined profit thresholds (0.7R default), eliminating downside risk on positions that have demonstrated directional follow-through.
## Risk Management
Position Sizing: Dynamic position sizing based on account equity percentage risk model (2% default). Calculates optimal position size based on entry price, stop distance, and account risk tolerance. Includes maximum position exposure caps and minimum position size thresholds to ensure practical trade execution.
Daily Loss Limits: Automatic trading suspension when intraday losses exceed configured threshold (5% of equity default). Prevents catastrophic drawdown days and removes emotional decision-making during adverse market conditions. Resets automatically at the start of each new trading day.
Leverage Controls: Comprehensive leverage monitoring with built-in liquidation protection for margined positions. Strategy calculates liquidation prices based on leverage settings and automatically closes positions approaching critical margin levels, preventing forced liquidations.
Exposure Management: Multiple layers of position size controls including maximum position value as percentage of equity (50% default), leverage-adjusted margin requirements, and minimum capital availability thresholds before opening new positions.
## Market Filters
Session-Based Filtering: Configurable trading windows for Asian (00:00-08:00 UTC), London (08:00-16:00 UTC), and New York (13:00-21:00 UTC) sessions. Allows traders to focus on specific market hours or avoid illiquid periods based on their asset and trading style.
Volatility Requirements: Minimum and maximum ATR percentage thresholds ensure strategy only operates within optimal volatility ranges. Prevents trading during both insufficient movement periods and extreme volatility events where execution quality deteriorates.
Trend Alignment: Optional higher timeframe trend filter ensures directional bias aligns with broader market structure, reducing counter-trend entries during strong directional moves.
Volume Confirmation: Configurable volume requirements for entry validation, ensuring sufficient market participation and reducing false signals during low-liquidity periods.
## Automation Support
Built-in webhook integration generates JSON payloads compatible with popular broker automation platforms. Alert system provides comprehensive notifications for all entry signals, exit executions, risk limit breaches, and daily trading status updates. Supports both automated and manual execution workflows.
## Settings Explanation
Initial Capital: $5,000
Selected as realistic starting point for retail traders entering crypto futures markets. Strategy scales proportionally - larger accounts show similar percentage returns with proportionally larger absolute gains and position sizes.
Risk Per Trade: 2%
Conservative default providing significant drawdown tolerance. With 51% historical win rate and positive expectancy, risking 2% per trade allows for extended losing streaks without account impairment. Adjustable from 0.5% (very conservative) to 5% (aggressive, experienced traders only).
Leverage: 10x
Standard cross-margin leverage for cryptocurrency perpetual futures. Combined with 2% risk setting and maximum 50% equity position size caps, actual exposure remains controlled despite leverage. Built-in liquidation protection provides additional safety layer.
Commission: 0.055%
Modeled on major exchange maker fee structures (Bybit, Binance Futures).
**Slippage: 50 ticks**
Ultra-conservative slippage assumption representing extreme worst-case execution scenarios. ETH perpetual tick size is $0.01, therefore 50 ticks equals $0.50 per side or $1.00 round trip slippage per trade.
Real-world slippage on 30-minute timeframe typically ranges from 2-5 ticks ($0.02-0.05 round trip) under normal conditions, with 10-20 ticks during highly volatile periods. The 50-tick setting assumes every single trade executes during extreme market stress conditions.
This ultra-conservative modeling approach means real-world trading performance under typical market conditions may exceed backtest results, as the strategy has been tested under punishing execution cost assumptions that represent worst-case scenarios rather than expected outcomes.
Stop Loss: ATR-based (0.7x multiplier)
Volatility-adaptive stops optimized for 30-minute cryptocurrency perpetuals. The 0.7x multiplier balances protection against premature stops due to normal market noise. Lower multipliers (0.5-0.6x) suitable for lower timeframes, higher multipliers (0.8-1.2x) for higher timeframes.
Take Profit: 6R (Risk:Reward)
High target designed to work in conjunction with trailing stop system rather than as primary exit mechanism. Historical analysis shows most profitable trades exit via trailing stops at lower multiples, with the 6R limit capturing occasional extended moves. This configuration allows the trailing stop system to operate optimally while providing upside capture on exceptional price runs.
Trailing Stop: Activates at 1R | Offset 0.5R
Trailing mechanism engages when position reaches 1:1 risk-reward, then maintains 0.5R distance from peak favourable price. This configuration allows profitable trades room to develop while protecting accumulated gains from reversals.
Maximum Holding Period: 50 bars
Automatic exit trigger after 50 bars (25 hours on 30-minute timeframe) prevents capital commitment to non-trending price action. Adjustable based on timeframe and trading style preferences.
## Backtest Performance
Test Period: November 2023 - November 2025 (2 years)
Asset: ETH/USDT Perpetual Futures
Timeframe: 30 minutes
Initial Capital: $5,000
Performance Metrics:
- Final Equity: $25,353.99
- Net Profit: $20,353.99
- Total Return: 407.08%
- Annualized Return: ~204%
- Total Trades: 2,549
- Winning Trades: 1,308 (51.28%)
- Losing Trades: 1,241 (48.72%)
- Profit Factor: 1.215
- Sharpe Ratio: 0.813
- Sortino Ratio: 6.428
- Maximum Drawdown: 11.53%
- Average Drawdown: <2%
Trade Statistics:
- Average Win: 1.15% per trade
- Average Loss: -0.98% per trade
- Win/Loss Ratio: 1.17:1
- Largest Win: 7.14%
- Largest Loss: -2.31%
- Average Trade Duration: ~8 hours
- Trades Per Month: ~106
Cost Analysis:
- Total Commission Paid: $21,277.06
- Commission as % of Gross Profit: 18.5%
- Modeled Slippage Impact: $2,549.00 (50 ticks per trade)
- Total Trading Costs: $23,826.06
- Net Profit After All Costs: $20,353.99
Risk-Adjusted Performance:
- Return/Max DD Ratio: 35.3
- Profit Per Trade: $7.98 average
- Risk of Ruin: <0.001% (with 2% risk, 51% win rate, 1.17 R:R)
## Bear Market Validation
To validate robustness across different market conditions, the strategy was additionally tested during the 2022 cryptocurrency bear market:
Test Period: May 2022 - November 2022 (7 months)
Market Conditions: ETH declined 57% (from ~$2,900 to ~$1,200)
Bear Market Results:
- Net Profit: $4,959.69
- Return: 99.19%
- Total Trades: 845
- Win Rate: 51.72%
- Maximum Drawdown: 18.54%
- Profit Factor: 1.235
- Outperformance vs Buy & Hold: +156.3%
The strategy demonstrated profitable performance during severe market decline, with short positions showing particular strength (54.1% win rate on shorts vs 49.4% on longs). This validates that the edge is not dependent on bullish market conditions and the multiple entry methodologies adapt naturally to different market environments.
## Recommended Usage
Optimal Timeframes:
- Primary: 30-minute (tested and optimized)
- Alternative: 1-hour (more selective, fewer trades)
- Not recommended: <15-minute (execution quality deteriorates)
Suitable Assets:
High-liquidity cryptocurrency perpetual futures recommended:
- BTC/USDT (>$2B daily volume)
- ETH/USDT (>$1B daily volume)
- SOL/USDT, AVAX/USDT (>$100M daily volume)
- Avoid low-liquidity pairs (<$50M daily volume)
Risk Configuration:
- Conservative: 1-1.5% per trade
- Moderate: 2-3% per trade (default: 2%)
- Aggressive: 3-5% per trade (requires discipline)
## Important Considerations
Backtesting vs Live Trading: Always paper trade first. Real-world results vary based on execution quality, broker-specific factors, network latency, and individual trade management decisions. Backtest performance represents historical simulation with ultra-conservative cost assumptions, not guaranteed future results.
Market Conditions: Strategy designed for liquid, actively-traded markets. Performance characteristics:
- Strong trends: Optimal (trailing stops capture extended moves)
- Ranging markets: Moderate (mean reversion component provides edge)
- Low volatility: Reduced (ATR filter prevents most entries)
- Extreme volatility: Protected (maximum volatility filter prevents entries)
Cost Impact: Commission represents approximately 18.5% of gross profit in backtests. The 50-tick slippage assumption is deliberately punitive - typical execution will likely be 5-10x better (2-10 ticks actual vs 50 ticks modeled), meaning real-world net results may significantly exceed backtest performance under normal market conditions.
Execution Quality: 30-minute timeframe provides sufficient time for order placement and management. Automated execution recommended for consistency. Manual execution requires discipline to follow signals without hesitation or second-guessing.
Starting Procedures:
1. Run backtest on your specific asset and timeframe
2. Paper trade for minimum 50 trades or 2 weeks
3. Start with minimum position sizes (0.5-1% risk)
4. Gradually scale to target risk levels as confidence builds
5. Monitor actual execution costs vs backtest assumptions
## Strategy Limitations
- Requires liquid markets; performance degrades significantly on low-volume pairs
- No built-in news event calendar; traders should manually avoid scheduled high-impact events
- Weekend/holiday trading may experience wider spreads and different price behaviour
- Does not model spread costs (assumes mid-price fills); add 1-2 ticks additional cost for market orders
- Performance during market structure changes (regime shifts) may differ from backtest period
- Requires consistent monitoring during active trading hours for optimal automated execution
- Slippage assumptions are deliberately extreme; actual slippage will typically be much lower
## Risk Disclosure
Cryptocurrency trading involves substantial risk of loss. Leverage amplifies both gains and losses. This strategy will experience losing streaks and drawdowns. The 11.53% maximum historical drawdown in bull market testing and 18.54% in bear market testing do not represent ceilings - larger drawdowns are possible and should be expected in live trading.
Past performance does not guarantee future results. Market conditions evolve, and historical edge may diminish or disappear. No strategy works in all market conditions. The strategy has been tested with extremely conservative slippage assumptions (50 ticks per trade) that significantly exceed typical execution costs; this provides a safety margin but does not eliminate risk.
Capital at Risk: Only trade with capital you can afford to lose completely. The strategy's positive historical performance across both bull and bear markets does not eliminate the possibility of significant losses or account impairment.
Not Financial Advice: This strategy is an educational tool, not investment advice. Users are solely responsible for their trading decisions, risk management, and outcomes. The developer assumes no liability for trading losses.
Leverage Warning: Trading with leverage can result in losses exceeding initial investment. Ensure you understand leverage mechanics and liquidation risks before using leveraged products.
## Technical Requirements
- TradingView Premium subscription (for strategy testing and alerts)
- Understanding of risk management principles
- Familiarity with perpetual futures mechanics
- Broker account supporting crypto perpetuals (if trading live)
- For automation: Webhook-compatible execution platform
## Version History
v3.0 - November 2025 (Initial Release)
- Multi-methodology entry system (Momentum, Mean Reversion, VWAP)
- Comprehensive risk management framework
- Adaptive exit system with trailing stops
- Session and volatility filtering
- Webhook automation support
- Validated across bull market (2024-25) and bear market (2022) periods
- Tested with ultra-conservative 50-tick slippage assumptions
Disclaimer: This strategy is provided "as-is" for educational purposes. Past performance does not indicate future results. All backtests conducted with 50-tick slippage (ultra-conservative assumptions). Actual trading costs typically significantly lower. Trade responsibly and at your own risk.
Simple Grid Trading v1.0 [PUCHON]Simple Grid Trading v1.0
Overview
This is a Long-Only Grid Trading Strategy developed in Pine Script v6 for TradingView. It is designed to profit from market volatility by placing a series of Buy Limit orders at predefined price levels. As the price drops, the strategy accumulates positions. As the price rises, it sells these positions at a profit.
Features
Grid Types : Supports both Arithmetic (equal price spacing) and Geometric (equal percentage spacing) grids.
Flexible Order Management : Uses strategy.order for precise control and prevents duplicate orders at the same level.
Performance Dashboard : A real-time table displaying key metrics like Capital, Cashflow, and Drawdown.
Advanced Metrics : Includes Max Drawdown (MaxDD) , Avg Monthly Return , and CAGR calculations.
Customizable : Fully adjustable price range, grid lines, and lot size.
Dashboard Metrics
The dashboard (default: Bottom Right) provides a quick snapshot of the strategy's performance:
Initial Capital : The starting capital defined in the strategy settings.
Lot Size : The fixed quantity of assets purchased per grid level.
Avg. Profit per Grid : The average realized profit for each closed trade.
Cashflow : The total realized net profit (closed trades only).
MaxDD : Maximum Drawdown . The largest percentage drop in equity (realized + unrealized) from a peak.
Avg Monthly Return : The average percentage return generated per month.
CAGR : Compound Annual Growth Rate . The mean annual growth rate of the investment over the specified time period.
Strategy Settings (Inputs)
Grid Settings
Upper Price : The highest price level for the grid.
Lower Price : The lowest price level for the grid.
Number of Grid Lines : The total number of levels (lines) in the grid.
Grid Type :
Arithmetic: Distance between lines is fixed in price terms (e.g., $10, $20, $30).
Geometric: Distance between lines is fixed in percentage terms (e.g., 1%, 2%, 3%).
Lot Size : The fixed amount of the asset to buy at each level.
Dashboard Settings
Show Dashboard : Toggle to hide/show the performance table.
Position : Choose where the dashboard appears on the chart (e.g., Bottom Right, Top Left).
How It Works
Initialization : On the first bar, the script calculates the price levels based on your Upper/Lower price and Grid Type.
Entry Logic :
The strategy places Buy Limit orders at every grid level below the current price.
It checks if a position already exists at a specific level to avoid "stacking" multiple orders on the same line.
Exit Logic :
For every Buy order, a corresponding Sell Limit (Take Profit) order is placed at the next higher grid level.
MaxDD Calculation :
The script continuously tracks the highest equity peak.
It calculates the drawdown on every bar (including intra-bar movements) to ensure accuracy.
Displayed as a percentage (e.g., 5.25%).
Disclaimer
This script is for educational and backtesting purposes only. Grid trading involves significant risk, especially in strong trending markets where the price may move outside your grid range. Always use proper risk management.
MTF EMA Hariss 369The strategy has been prepared in a simplistic manner and easy to understand the concept by any novice trader.
Indicators used:
Current Time frame 20 EMA- Gives clear look about current time frame dynamic support and resistance and trend as well.
Higher Time Frame 20 EMA: Gives macro level trend, support and resistance
Kama: Capture volatility and trend direction.
RVOL: Main factor of price movement.
Buy when price closes above current time frame 20 ema and current time frame 20 ema is above higher time frame 20 ema. Stop loss just below the low of last candle. One can use current time frame 20 ema, higher time frame 20 ema or kama as stop loss depending upon type of asset class and risk appetite. The ideal way is to keep 20 ema as trailing sl if one wants to trail with trend.
Sell when price closes below current time frame 20 ema and current time frame 20 ema is lower than higher time frame 20 ema. Stop loss just above high of last candle.
Ideal target is 1.5 or 2 times of stop loss.
Entry and exit time depends on trading style. Eg. if you want to enter and exit in 5 min time frame, then choose 15 min or 1h as higher time frame as trend filter. Buy and sell signals are also plotted based on this strategy. One should always go with the higher time frame trend. Opting higher time frame trend filter always filters out market noises.
15m ORB Breakout NAS100 (5m Mgmt) v6 - OptimizedOpening Range Breakout Strategy
Buy and sell signals are given upon break of market session opening range. Best utilized for 30 minute NY opening range, managed on 5 min timeframe on NAS100. Tweak the settings for higher win rate on backtesting dashboard before implementing strategy.
CSS_LFU_v0.1Overview:
A multi-factor, market-adaptive swing strategy designed for intraday and short-term crypto trading. It synthesizes momentum, volatility, and trend signals into a unified composite score over a configurable lookback window. The strategy leverages a modular, signal-weighted approach to ensure robust entry timing while remaining compatible with human-in-the-loop validation and algorithmic execution.
Core Modules:
AJFFRSI (RSX-based Momentum): Measures smoothed price momentum with noise-reduction filters to detect crossovers relative to the QQE trailing stop.
QQE (Quantitative Qualitative Easing RSI): A modified RSI with a dynamic trailing stop that adapts to short-term volatility, identifying exhaustion and potential reversal points.
Keltner Channel Zones: Determines overextension relative to trend, providing buy/sell zones based on ATR-banded EMA.
WaveTrend Oscillator: Confirms short-term swings and market direction through smoothed oscillator cross signals.
Rolling Composite Score: Aggregates module signals over a unified lookback (e.g., 144 bars) to normalize noise and capture consistent trends.
Signal Logic:
Each module outputs a discrete score (+1 / 0 / -1).
The rolling composite score sums all module scores over the lookback period.
Long positions trigger when the rolling score meets or exceeds the long threshold.
Short positions trigger when the rolling score meets or falls below the short threshold.
Multi-dimensional signal aggregation reduces false positives from single indicators.
Rolling lookback ensures score normalization across different volatility regimes.
Highly modular: easy to adapt modules or weights to different instruments or timeframes.
Fully compatible with automated execution pipelines, including custom exchange screener bots.
Use Case:
Ideal for quant-driven altcoin or multi-asset strategies where high-frequency validation is critical and sequential module weighting enhances trend flip detection.
Inyerneck Sniper Engine v4.2 — FINAL WORKING 2025Aggressive momentum sniper for pennies. Fires on volume + EMA snaps. Use small size. Alerts ready.
Inyerneck Sniper Engine v4.2 — FINAL WORKING 2025yer momUltra-aggressive momentum sniper built for pennies & BTC.
Fires on every volume explosion + EMA snap. No mercy, no filters.
50+ trades per month. Use small size or die trying.
Private alpha —
Inyerneck Sniper Engine v4.2 — FINAL WORKING 2025Ultra-aggressive momentum sniper built for pennies & BTC.
Fires on every volume explosion + EMA snap. No mercy, no filters.
50+ trades per month. Use small size or die trying.
Private alpha — invite-only. do not change settings without first recording default settings, the default settings are great... usable on any time frame.. aaaaannd... yer mom!
Safe Supertrend Strategy (No Repaint)Overview
The Safe Supertrend is a repaint-free version of the popular Supertrend trend-following indicator.
Most Supertrend indicators appear perfect on historical charts because they flip intrabar and then repaint after the candle closes.
This version fixes that by using close-of-bar confirmation only, making every trend flip 100% stable, safe, and non-repainting.
Why This Supertrend Doesn’t Repaint
Most Supertrend indicators calculate their trend direction using the current bar’s data.
But during a live candle:
ATR expands and contracts
The upper/lower bands move
Price moves above/below the band temporarily
A false flip appears → then disappears when the candle closes
That is classic repainting.
This indicator avoids all of that by using:
close > upper
close < lower
This means:
Trend direction flips only based on the previous candle,
No intrabar calculations,
No flickering signals,
No “perfect but fake” historical performance.
Every signal you see on the chart is exactly what was available in real-time.
How It Works
Calculates ATR (Average True Range) and SMA centerline
Builds upper and lower volatility bands
Confirms trend flips only after the previous bar closes
Plots clear bull and bear reversal signals
Works on all markets (crypto, stocks, forex, indices)
No repainting, no recalc, no misleading flips.
Bullish Signal (Trend Up)
A bullish trend begins only when:
The previous candle closes above the upper ATR band,
And this flip is fully confirmed.
A green triangle marks the start of a new uptrend.
Bearish Signal (Trend Down)
A bearish trend begins only when:
The previous candle closes below the lower ATR band,
And the downtrend is confirmed.
A red triangle signals the start of a new downtrend.
Inputs
ATR Length - default 10
ATR Multiplier - default 3.0
Works on all timeframes and market
Simple, but powerful.
Why Use This Version Instead of a Regular Supertrend?
Most Supertrends:
Look great historically
But repaint continuously on live charts
Give false trend flips intrabar
Cannot be reliably used in strategies
This version:
Uses strict previous-bar logic
Never repaints trend direction
Works perfectly in live trading
Backtests accurately
Is ideal for algorithmic strategies
Ideal For:
Trend-following strategies
Breakout trading
Algo trading systems
Reversal detection
Filtering market noise
Swing trading & scalping
Final Note
This is a safer, more reliable Supertrend designed for real-world use — not perfect-looking repaint illusions.
If you use Supertrend in your trading system, this no-repaint version ensures your signals are trustworthy and consistent.
Safe Supertrend Strategy (No Repaint)Overview
The Safe Supertrend is a repaint-free version of the popular Supertrend trend-following indicator.
Most Supertrend indicators appear perfect on historical charts because they flip intrabar and then repaint after the candle closes.
This version fixes that by using close-of-bar confirmation only, making every trend flip 100% stable, safe, and non-repainting.
Why This Supertrend Doesn’t Repaint
Most Supertrend indicators calculate their trend direction using the current bar’s data.
But during a live candle:
ATR expands and contracts
The upper/lower bands move
Price moves above/below the band temporarily
A false flip appears → then disappears when the candle closes
That is classic repainting.
This indicator avoids all of that by using:
close > upper
close < lower
This means:
Trend direction flips only based on the previous candle,
No intrabar calculations,
No flickering signals,
No “perfect but fake” historical performance.
Every signal you see on the chart is exactly what was available in real-time.
How It Works
Calculates ATR (Average True Range) and SMA centerline
Builds upper and lower volatility bands
Confirms trend flips only after the previous bar closes
Plots clear bull and bear reversal signals
Works on all markets (crypto, stocks, forex, indices)
No repainting, no recalc, no misleading flips.
Bullish Signal (Trend Up)
A bullish trend begins only when:
The previous candle closes above the upper ATR band,
And this flip is fully confirmed.
A green triangle marks the start of a new uptrend.
Bearish Signal (Trend Down)
A bearish trend begins only when:
The previous candle closes below the lower ATR band,
And the downtrend is confirmed.
A red triangle signals the start of a new downtrend.
Inputs
ATR Length - default 10
ATR Multiplier - default 3.0
Works on all timeframes and market
Simple, but powerful.
Why Use This Version Instead of a Regular Supertrend?
Most Supertrends:
Look great historically
But repaint continuously on live charts
Give false trend flips intrabar
Cannot be reliably used in strategies
This version:
Uses strict previous-bar logic
Never repaints trend direction
Works perfectly in live trading
Backtests accurately
Is ideal for algorithmic strategies
Ideal For:
Trend-following strategies
Breakout trading
Algo trading systems
Reversal detection
Filtering market noise
Swing trading & scalping
Final Note
This is a safer, more reliable Supertrend designed for real-world use — not perfect-looking repaint illusions.
If you use Supertrend in your trading system, this no-repaint version ensures your signals are trustworthy and consistent.
EMA Velocity Dual TF Momentum 1h (v2)BINANCE:SOLUSDT
The result is calculated on futures x10
### EMA Velocity Dual TF Momentum (v2) – Public Description
**Overview**
EMA Velocity Dual TF Momentum (v1) is a trend-following momentum strategy that uses the *speed of change* of Exponential Moving Averages (EMA) on two timeframes: the chart timeframe 1h.
The strategy looks for moments when both timeframes point in the same direction and the short‑term momentum is significantly stronger than usual, then manages trades with configurable ATR filtering, stop‑loss / take‑profit and early exit logic.
---
### Core Idea (high level, without formulas)
- On the **lower timeframe** (LTF), the strategy tracks how fast the EMA is moving (its “velocity”) and detects **impulse bars** where this velocity is unusually strong compared to its recent history.
- On the **higher timeframe** (HTF), it also measures EMA velocity and requires that the HTF trend direction is **aligned** with the LTF (both bullish or both bearish), if enabled.
- A **long trade** is opened when:
- LTF EMA velocity is positive (upward momentum),
- LTF momentum is strong enough (impulse),
- HTF EMA velocity is also upwards (if HTF filter is enabled),
- and ATR‑based volatility is above the minimum threshold.
- A **short trade** is opened in the symmetric situation (downward momentum on both timeframes).
- Positions are closed using configurable stop‑loss and take‑profit, and can be partially exited, moved to break‑even and trailed using early‑exit options.
---
### Inputs and Parameters
#### Trend & Momentum (Lower Timeframe)
- **`LTF EMA length (emaLenLTF)`**
Length of the EMA on the chart timeframe used to measure short‑term trend and momentum. Smaller values react faster; larger values are smoother and slower.
- **`LTF velocity lookback (velKLTF)`**
Lookback for computing EMA “velocity” on LTF. Controls how sensitive the momentum calculation is to recent price changes.
- **`LTF impulse lookback bars (impLookback)`**
Window size used to estimate the “normal” average absolute velocity. The strategy compares current momentum against this baseline to detect strong impulse moves.
- **`LTF |velocity| multiplier vs average (impMult)`**
Multiplier for defining what counts as a strong impulse. Higher values = fewer but stronger signals; lower values = more frequent, weaker impulses.
#### Trend & Momentum (Higher Timeframe)
- **`Use higher timeframe alignment (useHTF)`**
If enabled, trades are only taken when the higher‑timeframe EMA velocity confirms the same direction as the lower timeframe.
- **`HTF timeframe (htf_tf)`**
Higher timeframe used for confirmation (e.g. 60 minutes). Defines the “macro” context above the chart timeframe.
- **`HTF EMA length (emaLenHTF)`**
Length of the EMA on the higher timeframe. Controls how smooth and slow the higher‑timeframe trend filter is.
- **`HTF velocity lookback (velKHTF)`**
Lookback for the EMA velocity on HTF. Smaller values react quicker to changes in the higher‑timeframe trend.
#### Volatility / ATR Filter
- **`Use ATR filter (useAtrFilter)`**
Enables a volatility filter based on Average True Range. When active, trades are allowed only if market volatility is not too low.
- **`ATR Period (atrPeriod)`**
Lookback period for ATR calculation. Shorter periods react faster to recent volatility shifts; longer ones are more stable.
- **`ATR Min % for trading (atrMinPerc)`**
Minimum ATR as a percentage of price required to trade. Filters out very quiet, choppy periods where the strategy is more likely to be whipsawed.
#### Risk Management
- **`Use stops (SL/TP) (useStops)`**
Enables fixed stop‑loss and take‑profit exits. If disabled, positions are managed only by early exit logic and manual closing.
- **`Stop Loss % (stopLossPerc)`**
Distance of the protective stop from entry, in percent. Higher values give trades more room but increase risk per trade.
- **`Take Profit % (takeProfitPerc)`**
Distance of the primary profit target from entry, in percent. Controls the reward‑to‑risk profile of each trade.
#### Early Exit / Break‑Even / Trailing
- **`Enable early exit module (useEarlyExit)`**
Master switch for all early exit features: partial profit taking, break‑even stops and trailing exits.
- **`Take partial profit at +% (close 50%) (partialTP)`**
Profit level (in %) at which the strategy closes a partial portion of the position (e.g. 50%), locking in gains while leaving a runner.
- **`Trailing TP distance (%) (trailTP)`**
Distance (in %) for dynamic trailing stop after entry. When positive, the strategy trails the price to protect profits as the move extends.
- **`Break-even stop after +% profit (useBreakEven)`**
Enables automatic move of the stop to the entry price once a certain profit threshold is reached.
- **`Break-even activation (+%) (breakEvenPerc)`**
Profit level (in %) at which the stop is moved to break‑even. Higher values require a larger unrealized profit before break‑even protection kicks in.
#### Visuals
- **`Show labels (showLabels)`**
Toggles on‑chart labels that mark long and short entry signals for easier visual analysis.
- **`Label offset (labelOffset)`**
Horizontal offset (in bars) for placing labels relative to the signal bar. Used only for visual clarity; does not affect trading logic.
---
Если нужно, могу на основе этого текста сразу подготовить компактную версию (ограниченную по символам) специально под поле описания публичного скрипта в TradingView.






















