ZenithStreak Trend Energy
- Indicateurs
- Version: 1.0
- Activations: 5
ZenithStreak Trend Energy FAST — MQL5 Market Product Description
Short Description
ZenithStreak Trend Energy FAST is a MetaTrader 5 custom indicator that measures the current signed close-to-close streak length, converts it into a bounded oscillator, and displays a signal line, histogram, and optional closed-bar arrows.
Main Description
ZenithStreak Trend Energy FAST is a professional MetaTrader 5 custom indicator designed for manual traders who want to evaluate short-term directional persistence. It is not based on RSI, ATR handles, Donchian channels, VWAP, wick imbalance, range expansion, body dominance, candle body pressure, efficiency flow, regression slope, momentum acceleration, balance pulse, directional consistency, price velocity, MACD, Bollinger Bands, or Stochastic logic.
The indicator checks consecutive close-to-close direction. If recent closes continue upward, the signed streak becomes positive. If recent closes continue downward, the signed streak becomes negative. The streak length is capped by the Max Streak Length input and normalized to a -100 to +100 oscillator.
A signal line is calculated as a simple moving average of the Trend Energy line. Optional arrows appear when the Trend Energy line crosses the signal line with enough strength. By default, signals are based on closed bars only, so closed-bar signals do not use future candles and do not repaint.
This version is designed with validation performance in mind. It limits recalculation on later ticks by using prev_calculated. It also avoids external indicator handles, DLLs, WebRequest, file access, and trading operations.
Core Logic
If Close[current] > Close[previous], step = +1.
If Close[current] < Close[previous], step = -1.
If Close[current] equals Close[previous], step = 0.
If the current step continues the previous direction, the signed streak length increases.
If direction changes, the streak resets to +1 or -1.
The absolute streak length is capped by Max Streak Length.
Trend Energy = 100 × Signed Streak / Max Streak Length
Signal Line = SMA of Trend Energy
Key Features
- Signed close-to-close streak oscillator.
- Directional persistence analysis.
- SMA signal line.
- Bullish and bearish histogram.
- Optional buy and sell arrows.
- Optional popup alerts.
- Closed-bar signal mode by default.
- Optimized calculation for faster Strategy Tester execution.
- No future data.
- No repainting of closed-bar signals.
- No automatic trading.
- No DLL.
- No WebRequest.
- No file access.
Input Parameters
Max Streak Length
Default: 12
Controls the maximum streak length used to normalize the oscillator.
Signal Period
Default: 8
Controls the smoothing period of the signal line.
Minimum Signal Strength
Default: 20.0
Controls the minimum positive or negative trend energy value required for an arrow signal.
Show Histogram
Default: true
Shows or hides the bullish and bearish histogram.
Show Arrows
Default: true
Shows or hides trend energy cross arrows.
Use Current Bar For Signals
Default: false
If false, arrows are generated from closed bars only. If true, current-bar arrows may appear and can change before the candle closes.
Enable Popup Alerts
Default: false
Enables or disables popup alerts.
Alert On Current Bar
Default: false
Controls whether alerts are based on the current forming bar or the last closed bar.
No-Repaint Explanation
By default, Use Current Bar For Signals is false. Signals are generated on closed candles only. The indicator calculates each bar using only data available at that bar and older bars. It does not use future candles.
Risk Disclaimer
Trading financial markets involves risk. This indicator is a technical analysis tool and does not guarantee future results.
