sorry guys for my very basic question, but i cannot add a median line in a rectangle.
is there an option to add it?
i’m using prt v12
thanks
JSParticipant
Senior
I don’t think it’s possible to draw it exactly by hand, but you can use an indicator where you enter the coordinates of the rectangle…
DefParam DrawOnLastBarOnly=True
x1=BarIndex
y1=40000
x2=BarIndex-10
y2=40050
DrawRectangle(x1,y1,x2,y2)
Median=y1+(y2-y1)/2
DrawSegment(x1,Median,x2,Median)
Return
You could try, copying the rectangle and placing it directly over the first rectangle, then edit one of the rectangles values to mid line value. This gives the appearance of a medium line.
Also, you could create a custom Fibonacci with only the 0, 100 and -100. This sets up a ‘rectangle’ with a medium line.
To place, draw the same as if it were a rectangle from default draw point, point (a) to point (b), Then choose other draw point and position so other halve of fib is correctly positioned.
Sometimes I set up custom fibs to show linear risk/reward values 1:1 2:1 etc