OPEN-SOURCE SCRIPT

Taught to Trade - Session Range & Value Area Map

144
🔵 OVERVIEW

This marks three things on your chart, all of them facts about what already happened: where the previous session's volume actually traded, where that session's high and low were, and where the current session's first N minutes set their boundaries.

Nothing here is a forecast. Drawing where price traded yesterday is a statement about yesterday. What you do with it is yours.

🔵 WHAT IT DRAWS

Prior session value area — the price band that contained a chosen share of the previous session's volume, built from a real volume-at-price profile rather than an approximation. You get the value area high, the value area low, and the point of control, which is simply the single price level that traded the most volume.

Prior session high and low — the outer boundary of where the session went.

Opening range — the high and low of the first N minutes of the current session, forming as the session develops.

The value area is shaded so the band is readable at a glance, and a small table reports every level numerically along with the number of bars that went into the profile.

🔵 HOW THE PROFILE IS BUILT

The session's price range is divided into bins. Each bar's volume is distributed across every bin its high-low range touches, rather than dumped into a single bin at the close — so a wide bar contributes to the whole span it covered.

The point of control is the heaviest bin. The value area then expands outward from it, taking whichever neighbouring bin holds more volume, until the chosen percentage of session volume is enclosed. That is the standard construction, implemented in the open where you can read it.

🔵 HOW TO READ THE TABLE

Prior VAH, POC and VAL are the previous session's value area. Prior high and low are its extremes. Open range is the current session's first N minutes.

Bars in profile is the one people skip and shouldn't. It is the sample the profile was built from. On a 5-minute chart of a 09:30-16:00 session it should read 78. If it reads far less, you are looking at a partial session — a holiday, a half day, or the first session in your loaded history — and the levels are built on less than you think.

🔵 WHAT THIS DOES NOT MEAN

A level being drawn is not a prediction that price will react there. The value area describes where volume traded yesterday and nothing else. It carries no claim about tomorrow, and this script will never make one.

The point of control is not support. It is the busiest price of a finished session. Whether that matters on the next touch is exactly the question the chart cannot answer for you.

🔵 SETTINGS

Session specification in exchange time, defaulting to 0930-1600. Use 0000-0000 for a 24-hour instrument, where the boundary becomes the exchange day roll. Opening range length in minutes. Value area percentage and profile resolution in bins. Individual toggles and colours for each element.

Five alert conditions cover price crossing the prior value area high, the prior value area low, the prior point of control, and the opening range high and low. None fires on its own — you arm the ones you want in the alerts dialog. This script does not send buy or sell signals and never will.

🔵 WHERE IT FAILS

Intraday only. On a daily chart or above there is no session to profile, and the table says so rather than drawing something meaningless.

The profile is volume-weighted, so it inherits whatever your data feed reports as volume. On instruments where volume is a proxy — most spot forex, some CFDs — the profile is built on a number that does not mean what it means elsewhere.

A partial session produces a partial profile, silently, except for the bars count. Holidays, half days, and the oldest session in your loaded history all do this. Check the count.

Bin resolution is a real choice, not a detail. More bins give a finer profile and a noisier point of control; fewer bins give a stable POC that may sit some distance from where volume actually concentrated. There is no correct number and this script does not pretend to know yours.

The value area percentage is a convention. Seventy percent is common; it is not derived from anything. Change it and the band changes.

A 24-hour instrument has no natural session boundary. Setting 0000-0000 gives you the exchange day roll, which is a real boundary for bookkeeping and an arbitrary one for price.

The opening range is incomplete until N minutes have elapsed. Before that the lines are still moving.

Session levels reset every session. This is deliberate — it is a session tool — but it means levels you were watching disappear at the boundary rather than persisting.

Open source, so you can read every calculation rather than taking any of it on trust.

Educational tool only, not investment advice. It does not predict anything and does not generate signals. Trading involves substantial risk of loss.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน