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. קרא עוד ב־תנאי השימוש.