I am trying to plot the halfback line (mid of high and low) of each bar and each day.
I have the halfback of each bar and the day halfback as a short line across each bar.
However I want the day halfback to be a continuous horizontal line across the days bars reflecting the latest value. Does anyone know how to do this? I can only find details on line width and not how to make the line stretch the daily bars.
I also only want the daily halfback to reference the session time and not the extended hours as well.
Thanks for any guidance.
Code: Select all
variables:
Barhalfback( 0 ),
barhigh( 0 ),
barlow( 0 ),
Dayhalfback( 0 );
barhigh = high;
if high > barhigh then barhigh = high;
barlow = low;
if low < barlow then barlow = low;
Barhalfback = (barhigh + barlow ) / 2;
Dayhalfback = (dailyhigh + dailylow) /2 ;
Plot1( Barhalfback, "Bar halfback", Yellow ) ;
Plot2( Dayhalfback, "Day halfback", Magenta ) ;