Highest volume bar of the day


Category:
0
0

Hi, Pete can you help with making a label for finding the Highest volume bar of the chart on the current intraday.  In other words the highest volume bar of the day… i know its normally the first bar but its not always the first bar… Thanks.

Marked as spam
Posted by (Questions: 4, Answers: 13)
Asked on December 15, 2020 5:49 pm
166 views
0
And the label should display what? The volume from that bar?
( at December 16, 2020 9:12 am)
0
yes correct, that would be ideal. thanks for your time… i donated a gift to you as well via paypal, thanks. Merry Xmas!
( at December 16, 2020 2:38 pm)
0
Private answer

High Pete.... So i was finally able to get it after messing with it for a few days but im wondering if there is a way to draw 2 horizontal lines. One on the the "price high" and the 2nd line on the "price low" that relates to the "highest volume bar".


def day = GetDay();
def lastDay = GetLastDay();
def isToday = If(day == lastDay, 1, 0);
def highest = if isToday and volume > highest[1] then volume else highest[1];

def scan= highest;

AddLabel (yes, "VOLUME HIGHEST=" + highest);

Marked as spam
Posted by (Questions: 4, Answers: 13)
Answered on December 17, 2020 12:11 am
0
Check the following post to see how to identify the highest volume candle and plot a horizontal line based on the high of that candle. https://www.hahn-tech.com/ans/plot-a-line-at-the-high-of-the-highest-volume-bar-of-a-daily-chart/ You can set the chart to only display today's session in order to get that code to work in synch with your label. The solution to make that work when multiple trading sessions are included on the chart is very complex.
( at December 17, 2020 9:29 am)