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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。