PTZ Volatility Adjusted Mean
PTZ Volatility Adjusted Mean
An adaptive, volatility-aware trend line for NinjaTrader 8. It colors your candles by trend and prints clean BUY / SELL signals on bar close, filtered by ADX, RSI and slope strength, with ATR-based take-profit markers and a live dashboard.
NinjaTrader 8 port by PropTraderz of Uptrick’s Volatility Adjusted Mean (originally for TradingView), with the Buy/Sell logic prioritized. Licensed CC BY-SA 4.0.
Create a free account or login to unlock this download.
How It Works
The core is an adaptive center line (KAMA-style). It measures how efficiently price is moving: in a clean trend the line speeds up and follows price closely, in chop it slows down and stays flat. That keeps it out of the noise without lagging badly in real moves. A signal only fires when price breaks away from the center by a volatility (ATR) buffer and several filters agree.
Trend was bearish, close is more than 0.5 ATR above a rising center, ADX โฅ 20 with +DI over โDI, RSI above 52, and the center has climbed at least 0.12 ATR. Must hold for 2 bars in a row.
Trend was bullish, close is more than 0.5 ATR below a falling center, ADX โฅ 20 with โDI over +DI, RSI below 48, and the center has dropped at least 0.12 ATR. Must hold for 2 bars in a row.
Signals alternate (a BUY flips the trend to bullish, the next signal can only be a SELL) and there is a 6-bar cooldown between them. Everything is calculated on bar close, so signals do not repaint.
Features
Settings
| Parameter | Default | Description |
|---|---|---|
| Vector Engine | ||
| Center Responsiveness | 18 | Bars used to measure trend efficiency |
| Fast / Slow Response | 4 / 30 | Fastest and slowest speed of the adaptive line |
| Center Smoothing | 5 | Extra smoothing applied to the center line |
| ATR Length | 14 | ATR period used for buffers and targets |
| Switch Buffer ATR | 0.50 | How far price must close beyond the center (in ATR) |
| Slope Lookback | 3 | Bars used to judge if the center is rising or falling |
| Noise Filters | ||
| Trend Strength ADX | On ยท 14 ยท min 20 | Requires a trending market and DMI agreement |
| Momentum Confirmation RSI | On ยท 14 ยท 52 / 48 | BUY needs RSI above 52, SELL needs RSI below 48 |
| Minimum Center Slope | On ยท 0.12 ATR | Center must move at least this much over the slope lookback |
| Consecutive Confirmations | 2 | Bars in a row the conditions must hold |
| Bars Between Signals | 6 | Cooldown after each signal |
| Higher Timeframe Alignment | Off ยท 240 min ยท EMA 50 | Only signals in the direction of the higher-timeframe EMA |
| Take Profits & Display | ||
| TP1 / TP2 / TP3 Distance | 1.0 / 2.0 / 3.25 ATR | Distance of each target from the signal close |
| Show Buy/Sell ยท TP X ยท Center | On | Toggle signal labels, target markers and the center line |
| Trend Candles ยท Dashboard | On | Color candles by trend, show the info panel |
| Bull / Bear Color | Turquoise / Dark Violet | Trend colors for the line, candles and labels |
How to Install
- Download the zip file. Do not unzip it.
- In NinjaTrader 8 go to Tools โ Import โ NinjaScript Add-On and select the zip.
- Open a chart, right-click โ Indicators, and find it under PropTraderz โ PTZVolatilityAdjustedMean.
Tip: on fast charts (1โ5 min) try turning on Higher Timeframe Alignment to cut counter-trend signals.
Credits & License
Based on Volatility Adjusted Mean by Uptrick, originally published for TradingView. Converted to NinjaTrader 8 by PropTraderz, with the Buy/Sell logic prioritized.
This adaptation is shared under the same license as the original, Creative Commons BY-SA 4.0: you are free to use and modify it, as long as you credit the original author and share your changes under the same license.
For educational purposes only. Not financial advice. Past signals do not guarantee future results โ always test on sim first and manage your risk.
Questions? Join the community or ask on the forum.
Get help with the settings, share your setups and connect with other futures traders.



