OPEN-SOURCE SCRIPT

Windoo TPO Profile v.6 - S.Grey

675
# Windoo TPO Profile

To view only TPO, set the candle opacity to "0." Candles must be 30-minute. The indicator has a limited range due to Tradiview limitations. To increase the range, increase the number of ticks. To view historical TPO, use the Profile Date Range. If you don't set the Sessions Lookback, the indicator will show IB without a profile, which will cause mess on the chart.

Windoo TPO Profile is a professional Market Profile indicator designed to reveal how the auction process develops throughout each trading session. Instead of focusing exclusively on volume, the indicator measures how much time the market spends at each price level and transforms that information into a Time Price Opportunity (TPO) profile. This allows traders to identify areas of acceptance, rejection, balance, and price discovery with exceptional clarity.

Built around the principles of Auction Market Theory, Windoo TPO Profile helps traders understand where the market considers price to be fair and where imbalances begin to develop. By visualizing the distribution of TPOs across the session, the indicator exposes the underlying structure of the auction and highlights the levels that often become important support, resistance, and decision zones.

At the center of every profile is the Point of Control (POC), automatically calculated as the price level that attracted the highest concentration of TPOs during the session. The indicator also calculates Value Area High (VAH) and Value Area Low (VAL), providing a complete view of where the majority of market activity occurred. These levels can be extended into future sessions, allowing traders to monitor how price reacts to previous areas of value.

Windoo TPO Profile supports both standard exchange sessions and fully customized session definitions. Traders can calculate profiles using their preferred trading hours, apply custom time zones, and even restrict profile generation to specific date ranges. The new Date Range mode allows users to analyze only selected periods of market activity, making the indicator especially useful for backtesting, historical studies, and focused market structure analysis.

To keep charts clean and efficient, the indicator now includes a Sessions Lookback feature that automatically limits the number of historical profiles displayed. Instead of loading every profile available on the chart, traders can focus only on the most recent sessions that are relevant to current market conditions.

Profiles can be displayed using traditional Market Profile letters or converted into histogram-style bars. Single Prints are automatically detected and highlighted, helping traders identify areas where price moved aggressively through the auction. These zones often become important references for future support, resistance, and price attraction.

One of the most powerful features of Windoo TPO Profile is its advanced profile projection system. Completed profiles can be extended into future chart space, allowing traders to compare current price action with previous auction structures. The indicator can also track and mark developing Point of Control changes during profile formation, providing valuable insight into shifts in market acceptance and sentiment.

The indicator includes Initial Balance analysis, session highs and lows, opening and closing references, Value Area shading, extended Single Prints, and fully customizable visualization settings. A Smart Visibility Filter can automatically hide profile-related levels until a minimum amount of session data has formed, preventing incomplete or misleading profile information during the earliest stages of a session.

Whether you trade futures, equities, forex, indices, or cryptocurrencies, Windoo TPO Profile provides a complete Auction Market Theory framework for identifying value, imbalance, market acceptance, and key structural levels. By combining traditional Market Profile concepts with modern customization and advanced filtering tools, the indicator delivers a professional-grade environment for understanding how markets establish and distribute value throughout the trading session.
## Main Features & Settings

### Session Configuration

• **Use Session Time** – Build profiles using custom session hours instead of calendar days.

• **Session Calculation** – Define the exact session start and end times.

• **Show Current Session Profile** – Display the developing profile of the active session in real time.

• **Use Profile Date Range** – Restrict profile generation to a specific historical period.

• **Profile Date From / To** – Select the exact dates for profile analysis.

• **Date Range Includes Full Day** – Automatically includes the complete final day of the selected range.

• **Use Sessions Lookback** – Limit the number of historical profiles displayed on the chart.

• **Sessions Lookback** – Define how many previous sessions remain visible.

• **Use Custom Time Zone** – Calculate profiles using a selected market timezone.

• **Calculation Time Zone** – Choose from major global trading centers including New York, Chicago, London, Berlin, Warsaw, Tokyo, Hong Kong, Sydney, and UTC.

---

### Profile Construction

• **Ticks Number Per TPO** – Controls profile resolution and price row size.

• **Round TPO Levels On Tick Number** – Align profile rows with valid market tick increments.

• **TPO Letters Size** – Choose between Tiny, Small, or Normal TPO letters.

• **Display TPO As Bars** – Convert traditional TPO letters into histogram-style profile bars.

• **Main Profile Letter Spacing** – Adjust spacing between TPO letters for improved readability.

• **Custom TPO Character Set** – Define the characters used to build TPO periods.

---

### Profile Layout & Visibility

• **Extend Yesterday's Levels** – Extend important profile levels into future sessions.

• **Profile Layout Mode** – Choose between Session Width and Fixed Width display modes.

• **Fixed Profile Width** – Define a custom width for all profiles.

• **Show TPO's** – Show or hide profile structures.

• **Don't Show Main Profile** – Hide selected profile structures while preserving important references.

• **Hide Main Profiles From / To** – Define which historical profiles are hidden.

• **Hide Profile Data In Hidden Range** – Hide associated profile levels, labels, and markers.

• **Don't Show Current Session Main Profile** – Hide the developing profile while keeping historical profiles visible.

---

### Smart Visibility Filters

• **Hide Profile Data Until Minimum Bars** – Prevent profile-related levels from appearing until sufficient session data has formed.

• **Minimum Bars Before IB/Open/Close/VA** – Define the minimum number of bars required before displaying Initial Balance, POC, VAH, VAL, Open, Close, and other profile data.

This feature helps eliminate incomplete profile calculations during the earliest stage of a session and keeps charts cleaner during profile development.

---

### Point of Control (POC)

• **Show POC As Line** – Display the Point of Control as a horizontal reference line.

• **POC Color** – Customize POC appearance.

• **POC Line Style** – Choose between Solid, Dashed, or Dotted styles.

---

### Value Area (VAH / VAL)

• **Show Value Areas As Lines** – Display Value Area High and Value Area Low.

• **Value Area Lines Color** – Customize VAH and VAL colors.

• **Show Current VAH/VAL After Hours** – Continue displaying developing Value Area levels beyond session completion.

• **Value Area Line Style** – Select Solid, Dashed, or Dotted lines.

• **Value Area Line Extension** – Extend Value Area levels Left, Right, Both, or disable extensions.

• **Value Area Percent** – Define the percentage of TPO activity used for Value Area calculations.

• **Show Market Profile Calculation Area Background** – Shade the Value Area region.

• **Value Area Background Color** – Customize background appearance.

---

### Initial Balance (IB)

• **Show Initial Balance** – Display the opening balance range of the session.

• **IB Color** – Customize Initial Balance color.

---

### Highs & Lows

• **Show High/Low Levels** – Plot session high and low levels.

• **High and Low Colors** – Customize session extreme colors.

---

### Single Prints

• **Highlight Single Prints** – Automatically identify Single Print zones.

• **Single Prints Color** – Customize Single Print appearance.

• **Extend Single Prints** – Project Single Prints into future price action.

• **Extended Single Prints Transparency** – Adjust transparency of projected Single Print zones.

---

### Extended Profile Letters

• **Extend Profile Letters** – Project completed profiles into future chart space.

• **Extend Current Session Letters** – Project the developing profile in real time.

• **Profiles Back To Extend** – Define how many historical profiles remain extended.

• **Extended Profile Right Offset** – Move projected profiles further right.

• **Extended Column Spacing** – Control spacing between projected profile columns.

• **Extended Profile Background Transparency** – Adjust profile visibility.

• **Show POC Color In Extended Profile** – Highlight the POC row inside projected profiles.

---

### Developing POC Analysis

• **Mark Developing POC Changes** – Highlight changes in the developing Point of Control throughout the session.

• **Start POC Change Markers After TPO Periods** – Define after how many TPO periods POC shift analysis begins.

• **POC Change Marker Letter Color** – Customize marker appearance.

This feature allows traders to monitor how market acceptance evolves throughout the auction and identify important shifts in value development.

---

### Open & Close References

• **Opening Price Color** – Customize opening reference markers.

• **Closing Price Color** – Customize closing reference markers.

---

### Additional Statistics

• **Show Total TPO Label** – Display the total number of TPOs generated within the session.

• **TPO Color (Inside Value Area)** – Color used for TPOs inside the Value Area.

• **TPO Color (Outside Value Area)** – Color used for TPOs outside the Value Area.

---

## Windoo TPO Profile Highlights

✔ Real-Time Developing Market Profile

✔ Historical Session Profiles

✔ Point of Control (POC)

✔ Value Area High (VAH)

✔ Value Area Low (VAL)

✔ Initial Balance (IB)

✔ Session High & Low Levels

✔ Open & Close References

✔ Single Print Detection

✔ Extended Single Print Zones

✔ Extended TPO Profiles

✔ Developing POC Migration Analysis

✔ Value Area Background Shading

✔ Multi-Timezone Support

✔ Custom Session Definitions

✔ Date Range Profile Analysis

✔ Sessions Lookback Filtering

✔ Smart Minimum-Bar Visibility System

✔ Histogram and Traditional TPO Modes

✔ Fully Customizable Colors and Layouts

✔ Auction Market Theory Framework

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.