rectangle with median line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #245996 quote
    mazza
    Participant
    New

    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

    #245999 quote
    JS
    Participant
    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
    druby, Iván González and robertogozzi thanked this post
    Scherm­afbeelding-2025-04-17-om-10.02.48.png Scherm­afbeelding-2025-04-17-om-10.02.48.png
    #246010 quote
    druby
    Participant
    New

    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

    Iván González thanked this post
    Screenshot-2025-04-17-104754.png Screenshot-2025-04-17-104754.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

rectangle with median line


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
mazza @mazza Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by druby
10 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 04/17/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...