Daily Volume Profile

red_man_1111

New member
Anyone mind adding

is there any chance to have added/included the following "daily" Volume Profile values:

Daily Volume Profile: Point of Control
Daily Volume Profile: High Value Level
Daily Volume Profile: Low Value Level
 
Last edited by a moderator:
Anyone mind adding


is there any chance to have added/included the following "daily" Volume Profile values:

Daily Volume Profile: Point of Control
Daily Volume Profile: High Value Level
Daily Volume Profile: Low Value Level

Perhaps the following standalone scripts for VolumeProfile and/or TPOProfiles can be used.
The image shows in the upper chart the scripts set to input daysback = 0;
and the lower input daysback = 1;

Screenshot 2024-09-27 115247.jpg

VolumeProlfile
Code:
#VolumeProfle
input daysback = 0;
input showontodayonly = yes;
def ymd = GetYYYYMMDD();
def candles = !IsNaN(close);
def capture = candles and ymd != ymd[1];
def dayCount = CompoundValue(1, if capture then dayCount[1] + 1 else dayCount[1], 0);
def thisDay = (HighestAll(dayCount) - dayCount) ;

def poc = if thisDay == daysback then reference VolumeProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no) else poc[1];
def vahigh = if thisDay == daysback then reference VolumeProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no).VAHigh else vahigh[1];
def valow = if thisDay == daysback then reference VolumeProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no).VALow else valow[1];

input extend_plot = yes;

def p1  = if extend_plot and IsNaN(close) then p1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else poc;
plot poc1 = p1;

def vh1 = if extend_plot and IsNaN(close) then vh1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else vahigh;
plot vahigh1 = vh1;

def vl1 = if extend_plot and IsNaN(close)
then vl1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else valow;
plot valow1 = vl1;

poc1.SetDefaultColor(Color.CYAN);
vahigh1.SetDefaultColor(Color.YELLOW);
valow1.SetDefaultColor(Color.YELLOW);

#Bubble
input showbubble = yes;
input bubblemover = 3;
input showValuesinBubble = yes;
def b = bubblemover;
def bm = bubblemover;
def bm1 = bm + 1;


AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), poc1[bm1],
if showValuesinBubble then "POC $" + poc1[bm1] else "POC", Color.PINK, yes);
AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), vahigh1[bm1],
if showValuesinBubble then "VAH $" + vahigh1[bm1] else "VAH", Color.GREEN, yes);
AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), valow1[bm1],
if showValuesinBubble then "VAL $" + valow1[bm1] else "VAL", Color.RED, yes);

#

TPOProfile
Code:
#TPOProfile
input daysback = 0;
input showontodayonly = yes;
def ymd = GetYYYYMMDD();
def candles = !IsNaN(close);
def capture = candles and ymd != ymd[1];
def dayCount = CompoundValue(1, if capture then dayCount[1] + 1 else dayCount[1], 0);
def thisDay = (HighestAll(dayCount) - dayCount) ;

def Tpoc = if thisDay == daysback then reference TPOProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no) else Tpoc[1];
def Tahigh = if thisDay == daysback then reference TPOProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no).VAHigh else Tahigh[1];
def Talow = if thisDay == daysback then reference TPOProfile("price per row height mode" = "TICKSIZE", "time per profile" = "DAY", "on expansion" = no).VALow else Talow[1];

input extend_plot = yes;

def Tp1  = if extend_plot and IsNaN(close) then Tp1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else Tpoc;
plot Tpoc1 = Tp1;

def Th1 = if extend_plot and IsNaN(close) then Th1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else Tahigh;
plot Tahigh1 = Th1;

def Tl1 = if extend_plot and IsNaN(close)
then Tl1[1]
else if thisDay > daysback or
showontodayonly and GetDay() != GetLastDay()
then Double.NaN
else Talow;
plot Talow1 = Tl1;

Tpoc1.SetDefaultColor(Color.CYAN);
Tahigh1.SetDefaultColor(Color.YELLOW);
Talow1.SetDefaultColor(Color.YELLOW);

#Bubble
input showbubble = yes;
input bubblemover = 3;
input showValuesinBubble = yes;
def b = bubblemover;
def bm = bubblemover;
def bm1 = bm + 1;


AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), Tpoc1[bm1],
if showValuesinBubble then "TPOC $" + Tpoc1[bm1] else "TPOC", Color.PINK, yes);
AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), Tahigh1[bm1],
if showValuesinBubble then "TAH $" + Tahigh1[bm1] else "TAH", Color.GREEN, yes);
AddChartBubble(showbubble and IsNaN(close[bm]) and !IsNaN(close[bm1]), Talow1[bm1],
if showValuesinBubble then "TAL $" + Talow1[bm1] else "TAL", Color.RED, yes);
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
358 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top