INVITE-ONLY SCRIPT
Pr0ject Zer0

What it is
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.
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不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Contact Author for access
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡Vickonacci。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Contact Author for access
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。