Trend Lines and Trend Channel update.

Forums ProRealTime English forum ProBuilder support Trend Lines and Trend Channel update.

Viewing 7 posts - 1 through 7 (of 7 total)
  • #124811

    I have made a few improvements to my PRTv11 Trend Lines and Trend Channel indicator.

    You can now set a StartBack period. This allows you to draw the trend lines that would have been shown StartBack bars ago. So for example if you set p to 100 and StartBack also to 100 you can see what lines would have been projected forward for 100 bars from 100 bars back in history so you can see how price behaved in the last 100 bars compared to what the trend lines drew.

    There is also now the option to remove the middle trend line. this allows you to just show the upper and lower channels if you wish to.

    There is now also the option to display the pivot point at the central point of the middle line. This is useful when using the StartBack feature as it shows you exactly where in the history the lines are being drawn from.

     

    1 user thanked author for this post.
    #125069

    Yo Vonasi, this looks amazing. Can you explain like im 5 years old how it works?

    ive been looking for something like this 🙂

    #125073

    It quite simply looks back p bars and adds up the close-open (or the percentage of price that (close-open) is if you are using the percentage option) and stores that value in an array for every bar on the chart. Green bars will be a positive value and red bars a negative value. So then it can go back p bars from any point and add up all the values in the array for those p bars.  Our result is the value ‘diff’. If red candles have been bigger or more plentiful than green ones then this will add up to a negative number and if green candles have been bigger or more plentiful than red ones then this will add up to a positive number.

    It then draws a segment from p bars back to the start bar and another segment p bars forward from the start bar. The line slopes down if our result was negative and up if it was positive.

    The channels are simply a line drawn parallel but ‘diff’ higher and ‘diff’ lower (actually diff*multiple). Hence the shallower the slope the narrower the bands because our ‘diff’ value is low and the steeper the slope the wider the bands because our ‘diff’ value is high.

    Then there is just some jiggery pokery with drawing instructions to draw everything in the right place on the chart.

    #135546

    Hi!

    There is a fault in the attachment.

    At least if you run it on 10.3

     

    Best Regards

     

    #135549

    I have made a few improvements to my PRTv11 Trend Lines and Trend Channel indicator.

    The clue as to why it does not work on v10.3 can clearly be found in the very first line of my opening post.

    The indicator uses arrays which are not available for use in v10.3

    #188963

    Can anyone assist? I added the indicator it keep showing up multiple trends/channels in the chart.

    The old trend/channels will show on the chart, and new one keeps on printing/ I was hoping it will auto repaint it self or is there a setting to do auto repaint?

    Wayne.

     

     

    #189002

    Add this line at the top of the code:

     

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

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