User defined trendline points

Forums ProRealTime English forum ProBuilder support User defined trendline points

Viewing 8 posts - 1 through 8 (of 8 total)
  • #200519

    Hello All,

    I am trying to code an indicator that will draw a line between two points on RSI like I have attached in the screen shot.

    I am wondering what is the best way to tell ProBuilder the coordinates if my line?

    Once I have these I thought I might be able to duplicate this line by calculating the slope with rise/run so I can have duplicates of the line on the indicator.

    I hope this will also allow me to get the value of the line at any given point in time.

    Any advice would be greatly appreciated,

    Many thanks,

    Tim.

    #200525

    Sorry about all the screenshot duplicates!

    #200528
    JS

    Hi @tabarrington

    What are the conditions for these two points?

    Does the RSI have to be at a certain value or are only the dates of these points decisive?

    #200531

    Hi JS,

    Thankyou very much for the reply!

    RSI and date have to be at a certain value…

    Ive played around with a few things like DATETOBARINDEX(2022022117) to stop the X coordinates moving when a new bar is loaded which does work but Ive been unable to define a variable using that…

    Is there a way that you know of for saving a set point in time, such as DATETOBARINDEX(2022022117), to a variable?

    Many Thanks!!

    #200540

    Sorry about all the screenshot duplicates!

    I deleted all duplicates.

    Please, do not embed documents of any type in your posts, as they slow down the loading of pages. Use the Select File button, instead, to attach them.

    Thank you 🙂

     

    1 user thanked author for this post.
    #200580
    JS

    Hi @tabarrington

    That’s right, you could use DateToBarIndex to draw your line between two dates and at certain levels.

    You then have to enter two dates, a start date and an end date.

    The indicator then draws the line between these two data and plots the values of the corresponding RSI.

     

    1 user thanked author for this post.
    #200582

    You’re an absolute legend!!! Thank you so much for your help, I really appreciate it.

    Such a great community here, I wish I had found it years ago.

    Many thanks and have a great day.

    Tim

    1 user thanked author for this post.
    avatar JS
    #200583

    No worries @robertogozzi, thanks for getting rid of those for me!

    T

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login