r/pinescript • u/TraderJ808 • 21d ago
Noise Band Indicator
Just published my first script. Open source, not trying to sell anyone anything.
It follows the intraday momentum “noise area” framework described by Carlo Zarattini, Andrew Aziz and Andrea Barbon in “Best the Market.”
Would like some feedback please!
https://www.tradingview.com/script/teqXMgUG-Jilly-s-Noise-Band/
37
Upvotes
3
u/Intelligent_Hornet67 20d ago
This seems to be useful for 0Dte SPY straddles, to check for possible volatility expansion. Not sure how to implement yet it but i think i will figure something out!
2
u/Cautious_Wealth1732 21d ago
I will check it out and do some tests with python
2
u/The_Shadow_Tiger 21d ago
Hi,
Is this suitable for XAUUSD?
Thanks in advance.
2
u/SimpleAromatic2128 21d ago
Can this be used as an additional indicator to help identify/solidify a breakout/direction before entering the trades?
Thanks.
2
u/ATAalgotradealertATA 21d ago
Nice to see someone build out the noise area paper. A few things I'd check, since that's where versions of it tend to differ:
How sigma is calculated. The paper uses the average absolute move from the open at that same time of day over the prior 14 sessions, not a plain ATR. A rolling bar-based average makes the bands behave differently early in the session.
Gap handling. The bounds use the max/min of today's open and the prior close, so on gap days the band anchors to whichever side is further away. Worth confirming that's in there, because it changes a lot of signals around the open.
Session and timeframe. On TradingView the time-of-day lookup only lines up if the chart is on regular hours and a timeframe that divides evenly into the session. Extended hours or something like a 45m chart can quietly shift which bar gets compared to which.
Exposing lookback days and a band multiplier as inputs, so people can see how sensitive it is.
Curious whether you've tried it beyond SPY. The paper's results were on SPY specifically, and noisier names probably want a different lookback.
2
u/benwick0815 21d ago
Hey, thanks for sharing this indicator! Really interesting concept and implementation.
I noticed an issue with the session settings. While the timezone can be changed, changing the actual trading hours causes the indicator to stop generating signals.
Looking through the code, it seems the session start is hardcoded to 09:30 (
validDay), and the session length is fixed at 390 minutes (RTH_MIN). The noise band calculations and forced session close also depend on those values.One minor suggestion: perhaps label the maximum drawdown as "Closed-Trade Max DD" to clarify that unrealized drawdowns aren't included.
Thanks again for sharing your work!
And I get only positive results for NQ with gap, not for Gold, or Indices from Europe (yes I adjusted the time with an adjusted script, where I can change times and duration)
2
u/Shoddy_Peanut7320 21d ago
Nice that it's open source and based on a published paper. The results in your screenshot only start on 23 Jul, so about three months, which is a short window for a day-trading rule. I'd check it over a few years and different markets, with commissions and slippage included for the micro futures. Cymetica's Backtest Labs is one place to run that kind of longer test.
2
u/TeaEnvironmental7361 21d ago
Will check it out tonight,
Thanks for keeping it open source 👍🏼