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에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
Contact Author for access
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Vickonacci에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
Contact Author for access
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.