• This topic has 4 replies, 3 voices, and was last updated 1 month ago by JS.
Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 5 posts - 1 through 5 (of 5 total)
• #196307 Report

defparam drawonlastbaronly=true
P = 10

AVH = average[p](high)
AVL= average[p](low)

L0=(Dlow(0) )

drawtext(“R75”,barindex,R75)
drawtext(“R50”,barindex,R50)
drawtext(“L0”,barindex,L0)

#196329 Report

Hello,

here it is, with small horizontal segments added and text shifted a little bit to the right:

###### 1 user thanked author for this post.
#196344 Report

Thanks a million. Is it possible to have the horizontal line fron the beginning of the day to end of day, please I mean from 00:00 to 23:59 .

#196420 Report

Good morning. Is it possible to code  a Weekly ADR calculation in Intraday time frame. Thanks in advance

defparam drawonlastbaronly=true
P = 10
somme=0
for i=0 to p1
somme=somme+Dhigh(i)Dlow(i)
next
L0=Dlow(0)
drawtext(“R75”, barindex+15, R75)
drawtext(“R50”, barindex+15, R50)
drawtext(“L0”, barindex+15, L0)
DRAWSEGMENT(barindex, R75, barindex+10, R75)
DRAWSEGMENT(barindex, R50, barindex+10, R50)
DRAWSEGMENT(barindex, L0, barindex+10, L0)
return
#196465 Report

Here is an alternative with MTF.

If you want to use weekly rates, you can change “TimeFrame(Daily)” to TimeFrame(Weekly)…

###### 1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)