AFL for Histogram of price range

#1
Hi,
I am searching for AFL which will draw histogram in a seperate pane based on price range ( high -low).

In case the main pane is for daily price bars, this should give histogram for daily price range and so on for weekly or hourly charts.

Will be obliged if anyone, who has this AFL, share the same.

Regards,

Addadutta
 

pratapvb

Well-Known Member
#2
just wrote it here ....not tested

just put this code in the lower pane...save into an AFL and double click to create separate pane

the scale can be adjusted using the Param

Code:
histscale = param("Hist Scale", 100, 0, 100000, 1) ;

r = H - L ;

plot(r, "", colorred, stylehistogram|styleownscale, 0, histscale) ;
 
#3
just wrote it here ....not tested

just put this code in the lower pane...save into an AFL and double click to create separate pane

the scale can be adjusted using the Param

Code:
histscale = param("Hist Scale", 100, 0, 100000, 1) ;

r = H - L ;

plot(r, "", colorred, stylehistogram|styleownscale, 0, histscale) ;
Thanks a lot for this.

A small request for improvement: How can I see the range value of a bar ( High - Low) in the top left of the pane?


I hope I am able to express the need properly.

Addadutta
 

pratapvb

Well-Known Member
#4
Thanks a lot for this.

A small request for improvement: How can I see the range value of a bar ( High - Low) in the top left of the pane?


I hope I am able to express the need properly.

Addadutta
just name the plot...it will come in title

plot(r, "Range", colorred, stylehistogram|styleownscale, 0, histscale) ;
 

Similar threads