OPEN-SOURCE SCRIPT

ALN Sessions [NQ Stats x CantoLab]

3 750
A statistical tool for NQ intraday traders built around research from NQ Stats (NQStats on twitter / https://nqstats.com/). Credit to NQ Stats for the original concept and data — published here as an open source indicator with permission.

Introduction
This indicator visualizes Asia and London session ranges on NQ (NASDAQ futures), then overlays statistically-derived probability levels showing how likely price is to sweep each session's high or low — based on historical pattern data compiled by NQ Stats.

How to Read the Probability Numbers
When London session closes, two horizontal lines appear — one above (London High) and one below (London Low) — each labeled with a percentage like 81.1% or 74.9%.

These numbers answer: "Historically, how often does price return to sweep this level after London closes?"

For example, if you see 81.1% on the high line, it means: in roughly 8 out of 10 historical sessions matching this pattern, price eventually traded back up to or through the London High
snapshot

What happens when a level is hit?
snapshot
  • The label updates to show [Done] in blue — confirming that level was reached
  • The other line's probability updates to a new conditional probability, e.g. 46%[-19%], shown in brackets
  • This delta [+X%] tells you how the odds of sweeping the second level changed now that the first was reached


The Four Patterns (Asia vs London relationship)

The probabilities change depending on how London's range relates to Asia's range that day. The indicator detects four patterns automatically:

  • London Engulfs Asia — London trades both above AND below Asia's range. The most expansive session structure.
  • Asia Engulfs London — Asia's range fully contains London's range. London consolidates inside the prior overnight range.
  • London High Break — London breaks only above Asia's high, leaving Asia's low intact.
  • London Low Break — London breaks only below Asia's low, leaving Asia's high intact.


Each pattern has its own set of historical probabilities, so the percentages you see are always contextual to that day's Asia/London relationship — not a fixed number.

Settings

  • Asia Session — color, session time window, and label text
  • London Session — color, session time window, and label text
  • Label Size — Tiny / Small / Normal / Large
  • Border — toggle, style (Solid/Dashed/Dotted), and width for session boxes
  • Probability Lines — toggle, Auto color or manual color pick, style (Solid/Dashed/Dotted), and width
  • Daily Dividers — toggle, color, style (Solid/Dashed/Dotted), and width


Notes

  • Built for NQ Futures. Behaviour on other instruments is untested
  • All times are New York time
  • Probability data is derived from 10 years of NQ historical data by https://nqstats.com/
  • This indicator does not provide financial advice or a complete strategy. You are responsible for how you build around and execute on this data


⚠️ Important
This is a statistical study indicator. It does not guarantee that the London high or low will be hit. Over a large sample, this is the expected behaviour based on 10 years of NQ data. It is best combined with other confluences to confirm direction — this indicator alone is not a strategy.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.