OPEN-SOURCE SCRIPT
Market Condition Indicator

What this indicator does?
This is best used on NQ! and ES! on hourly time frame. Classifies the market into five market condition using only volume and spread efficiency — two parameters derived from price action without any lagging indicators.
Every candle is categorised into one of five market condition — consolidation, absorption, normal trend, news spike, or thin volatile — by measuring how much price moved relative to the volume behind it.
Green dot (Normal Trend) - Average volume. Moderate spread.
Blue dot (Absorption) - High volume. Tight spread.
Orange dot (Thin Volatile) - Low volume. Wide spread.
Red dot (News Spike) - High volume. Wide spread.
Grey dot (Consolidation) - Low volume. Tight spread.
How this indicator is made?
Market condition are discovered from using unsupervised machine learning on 2 years of hourly NQ! and ES! data then approximated in Pine Script for live use.
Validated on NQ and ES futures with 85–92% next-candle persistence.
How do I use it?
I use it as a confluence tool where green dots appear on the levels I am expecting to be rejected.
This is best used on NQ! and ES! on hourly time frame. Classifies the market into five market condition using only volume and spread efficiency — two parameters derived from price action without any lagging indicators.
Every candle is categorised into one of five market condition — consolidation, absorption, normal trend, news spike, or thin volatile — by measuring how much price moved relative to the volume behind it.
Green dot (Normal Trend) - Average volume. Moderate spread.
Blue dot (Absorption) - High volume. Tight spread.
Orange dot (Thin Volatile) - Low volume. Wide spread.
Red dot (News Spike) - High volume. Wide spread.
Grey dot (Consolidation) - Low volume. Tight spread.
How this indicator is made?
Market condition are discovered from using unsupervised machine learning on 2 years of hourly NQ! and ES! data then approximated in Pine Script for live use.
Validated on NQ and ES futures with 85–92% next-candle persistence.
How do I use it?
I use it as a confluence tool where green dots appear on the levels I am expecting to be rejected.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน