Pr0ject Zer0

Pr0ject Zer0 plots clean Buy/Sell flips on your chart based on a MACD crossover calculated on a custom timeframe (HTF). Instead of drawing MACD lines or histograms, it marks the exact bars where the higher-timeframe MACD crosses its signal and paints a step-line at price so you can visually see how long each regime lasts.
Why it’s useful
Cuts the noise: you get state changes only (green when MACD > signal, red when MACD < signal).
Aligns your entries on lower timeframes with higher-timeframe momentum—a simple way to avoid fighting the trend.
The step-line at price makes it obvious where the flip happened and how far price has moved since.
How it works
Computes MACD(fast, slow, signal) on your chosen Timeframe (TF) via request.security.
On crossover up (MACD > Signal) → plots a green step (“Buy”) at that bar’s close.
On crossunder (MACD < Signal) → plots a red step (“Sell”) at that bar’s close.
The line holds its state until the next flip, giving you a clear regime view.
Inputs
MACD Settings
Source: open/high/low/close (default: close)
TF: higher timeframe used for the MACD calculation (default: 10)
Look Ahead: Yes/No → controls barmerge.lookahead_on/off in request.security
Yes = can repaint (uses future HTF info).
No = safer, non-lookahead mode.
look ahead wait: integer offset applied to the source (src[wait]) before MACD. Use 0–1 if you want to delay the source a bar(s) to further reduce peek effects when testing.
Fast/Slow/Signal: MACD parameters (defaults: Fast=3, Slow=13, Signal=3)
How to use
Overlay on any chart and timeframe (works intra-day to higher TFs).
Pick an HTF in TF (e.g., use 10 on a 1–5m chart, 60 on a 5–15m chart, 240 on a 15–60m chart).
Trade with the regime:
Consider longs while the line is green (HTF momentum up).
Consider shorts while the line is red (HTF momentum down).
Combine with your favorite execution tool (e.g., structure, pullbacks, EMAs) for entries and exits. Zer0 gives you the context; your system handles the trigger.
Best practices
For live trading, set Look Ahead = No to avoid repainting.
The HTF should be ≥ your chart TF. Using a lower TF as the “HTF” defeats the purpose.
For aggressive scalping, faster MACD (3/13/3) is fine. For swing or cleaner signals, test 12/26/9 or a slower combo.
Use risk management: this is a directional filter, not an all-in signal generator.
Notes & Limitations
Repainting warning: If Look Ahead = Yes, signals can shift as the higher timeframe completes. Use for exploration only.
This is an indicator, not a strategy—it doesn’t place orders or calculate PnL.
No alerts are included in this version.
Скрипт с ограниченным доступом
Только пользователи, одобренные автором, могут получить доступ к этому скрипту. Вам нужно отправить запрос и получить разрешение на его использование. Обычно доступ предоставляется после оплаты. Для получения подробной информации следуйте инструкциям автора ниже или свяжитесь с Vickonacci напрямую.
TradingView НЕ рекомендует платить за скрипт или использовать его, если вы не доверяете его автору и не понимаете, как скрипт работает. Вы всегда можете найти бесплатные скрипты с открытым исходным кодом в Скриптах сообщества.
Инструкции от автора
Отказ от ответственности
Скрипт с ограниченным доступом
Только пользователи, одобренные автором, могут получить доступ к этому скрипту. Вам нужно отправить запрос и получить разрешение на его использование. Обычно доступ предоставляется после оплаты. Для получения подробной информации следуйте инструкциям автора ниже или свяжитесь с Vickonacci напрямую.
TradingView НЕ рекомендует платить за скрипт или использовать его, если вы не доверяете его автору и не понимаете, как скрипт работает. Вы всегда можете найти бесплатные скрипты с открытым исходным кодом в Скриптах сообщества.