OPEN-SOURCE SCRIPT
Time Pattern Analyzer - Multi Mode [fmb]

This is a lightweight session-behaviour overlay that helps you spot whether a market tends to move up or down at specific days or times.
- Two analysis modes
Weekday: Breaks performance down by Mon–Fri
Hour of Day: Breaks performance down by 0–23 and can also track a single exact time (hour + minute), like 09:30
- Visual timing markers (optional)
Draws vertical lines on the chart for the selected day(s) or time(s)
Line colour reflects the bar direction: green (up), red (down), grey (neutral)
Fully adjustable width and style (solid, dotted, dashed)
- Flexible “green vs red” definition
Body mode: Close > Open (candle body direction)
Previous close mode: Close > Close[1] (momentum vs prior bar)
- Stats table (optional)
For each day or hour, the table shows:
Count (sample size)
% Green
% Red
Average % move (average return for that bucket)
Table can be positioned anywhere on the chart (top/bottom, left/centre/right)
Use cases
- Quickly identify recurring tendencies like “Mondays are strongest” or “first hour is choppy,” and validate timing ideas with clear counts and averages instead of guesswork.
Note: This tool reports historical tendencies, not predictions. Always account for regime changes, news risk, and liquidity.
- Two analysis modes
Weekday: Breaks performance down by Mon–Fri
Hour of Day: Breaks performance down by 0–23 and can also track a single exact time (hour + minute), like 09:30
- Visual timing markers (optional)
Draws vertical lines on the chart for the selected day(s) or time(s)
Line colour reflects the bar direction: green (up), red (down), grey (neutral)
Fully adjustable width and style (solid, dotted, dashed)
- Flexible “green vs red” definition
Body mode: Close > Open (candle body direction)
Previous close mode: Close > Close[1] (momentum vs prior bar)
- Stats table (optional)
For each day or hour, the table shows:
Count (sample size)
% Green
% Red
Average % move (average return for that bucket)
Table can be positioned anywhere on the chart (top/bottom, left/centre/right)
Use cases
- Quickly identify recurring tendencies like “Mondays are strongest” or “first hour is choppy,” and validate timing ideas with clear counts and averages instead of guesswork.
Note: This tool reports historical tendencies, not predictions. Always account for regime changes, news risk, and liquidity.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน