PROTECTED SOURCE SCRIPT
EMA Velocity Dual TF Momentum 1h (v2)

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.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.