Indicator · Pine Script v6 · On the chart

my TPO

by Devtest-Dan

My TPO is an overlay market profile indicator that builds time price opportunity profiles for each four-hour, daily or weekly period and draws them on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code528
Settings31inputs
LicenceNone stated
Last update6 months ago7 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

my TPO plots the point of control, value area high and low with a configurable percentage, an initial balance range, single prints, excess and poor structure labels, a profile shape label, developing POC and unvisited POCs. Value areas can be merged when they overlap. Pip size and range settings must suit the instrument.

Details

Published by

Devtest-Dan on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Volume

Markets

Any symbol

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Time PeriodstringDtf_input
Pip Sizefloat0.0001pip_size
Max Time Range (pips)int5range_pips
Value Area Percentfloat70.0va_percent
Number of Historical Periodsint10num_periods
Value Area Box Colorcolorcolor.new(color.blue, 85)va_color_input
VAH Line Colorcolorcolor.new(#1E90FF, 0)vah_color_input
VAL Line Colorcolorcolor.new(#1E90FF, 0)val_color_input
Max Range Colorcolorcolor.new(color.green, 85)range_color_input
POC Colorcolorcolor.redpoc_color_input
Virgin POC Colorcolorcolor.fuchsiavirgin_poc_color_input
Initial Balance Colorcolorcolor.new(#FFD700, 0)ib_color_input
Show all 31 settings
SettingTypeDefaultVariable
Single Print Colorcolorcolor.orangesingle_print_color_input
Developing POC Colorcolorcolor.yellowdpoc_color_input
Merged VA Colorcolorcolor.new(color.purple, 85)merged_va_color_input
POC Zone Colorcolorcolor.new(#8B0000, 85)poc_zone_color_input
Show POC Zonebooltrueshow_poc_zone
Show VAH/VAL Linesbooltrueshow_vah_val
Show Initial Balancebooltrueshow_initial_balance
Show Single Printsboolfalseshow_single_prints
Show Excess/Poor Labelsbooltrueshow_excess_poor
Show Developing POCboolfalseshow_developing_poc
Show Profile Shape Labelbooltrueshow_profile_shape
Show Virgin POCsbooltrueshow_virgin_poc
Enable VA Mergeboolfalseenable_va_merge
VA Overlap Threshold (%)float50.0va_merge_threshold
Initial Balance Duration (minutes)int60ib_minutes
Single Print Threshold (TPO count)float0.5single_print_thresh
Excess Threshold (max TPO at extreme)float1.5excess_threshold
Poor Threshold (min TPO for poor structure)float3.0poor_threshold
POC Zone Width (pips above and below POC)int5poc_zone_pips
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

MGIC-tracker

by Allen1212
303 stars

The MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti

Indicator v4 Support & resistanceVolume
Updated 2 years ago · None stated GitHub repository of MGIC-tracker
218 stars

Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Comprehensive Volume Profile

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers