Display Line Name of Fibonacci Lines

Forums ProRealTime English forum ProBuilder support Display Line Name of Fibonacci Lines

Viewing 15 posts - 1 through 15 (of 24 total)
  • #133541

    Hello,

    I have written the code for previous day Fibonacci levels however can you please let me know how to put the “name tag” (as PRT does for Pivot lines) on top of the lines, e.g. it should write “1.618” on top of the line left justified.

    Many thanks.

    #133544

    Sorry for double post since in the first instance I got WordPress Error.

    When I am adding the below code then 1.618 is coming across the entire line repeatedly as enclosed.

     

     

    #133549

    If you ask it to draw at the close of every bar then that is what it will do!

    Try enclosing the DRAWTEXT in an IF THEN so that it only draws when the value changes:

    Note: Always use the ‘Insert PRT Code’ button when putting code in your posts – even if it is only a couple of lines of code as it makes it far easier for others to read. We like a tidy forum. I have edited your post.

     

    #133694

    Thank you Vonasi, however for some strange reason, the enclosed code is not printing the text.

    Can you throw some light to it please?

    Regards

     

    #133698

    Good Morning

    You forgot to change the target according to the bar index has always been r11 for you.

    #133700

     

    #133708

    Apart from the text drawing y value that Razz corrected and the ELSIFs that should have been ENDIFs there is an awful lot of code that is not needs that really slows down the calculation time. Plus you only need to do the calculations once when the day changes.

    Here is the code tidied up:

     

    #133711

    Also I’m not sure what you are trying to achieve with the first bit of code that sets the O H L C values. If it is to include Sunday data in with Monday data then you need to do it like this:

     

    1 user thanked author for this post.
    #133712

    Many thanks to both of you dear.

    Vonasi you are a Legend. Special thanks to you.

    1 user thanked author for this post.
    #133734

    @ Vonasi

    what should the code OHLC  be if you want to work with the values from Friday on Mondays?

    thank you

    #133743

    Yes – looking at it after another coffee even my code is not quite right!

    Change the OHLC code to the following and on Sundays and Mondays it bases the calculations on Fridays data and on Tuesdays it bases the calculations on Sunday and Monday’s data:

     

    1 user thanked author for this post.
    #133744

    Thanks for the quick implementation I am curious to see if it works on Monday.

    #134010

    Many thanks again to the legends!!

    It seems the previous code is returning better results and new code is returning wrong levels as captured in the enclosed doc.

    What say?

     

    #134017

    @parthapersonal

    please use image file formats (jpg, png) when attaching pics and PDF or TXT file formats when attaching text.

    Thank you 🙂

    #134147

    What should be the format if it is a combination of text and image? I presume it would be pdf, correct?

Viewing 15 posts - 1 through 15 (of 24 total)

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