Below/Above Trendline

Forums ProRealTime English forum ProBuilder support Below/Above Trendline

  • This topic has 9 replies, 5 voices, and was last updated 1 year ago by avatarZigo.
Viewing 10 posts - 1 through 10 (of 10 total)
  • #206568

    I would like to know if it is possible to generate signal depending on if price is below or above a trendline

    and how would i convert that into code.

    i have attached a picture of what im looking for.

    ofcourse it depends on how you calculate the Highs and lows etc..

    #206570

    or is it possible to use the ProReal Oblique trendlines as a signal in below or above in some way?

    #206577

    It’s not possible to know about ojects drawn on the chart.

    The solution is to calculate your own trendline.

    I will code something asap.

     

    1 user thanked author for this post.
    #208644

    Sorry for the long delay 😔, but I couldn’t write the code you need. I’ll be busy for the next 3 weeks, but I’ll do it soon after.

     

    #210486

    Sorry for the delay.

    I came up with this one:

    it’s a starting point. Let me know if this is somewhat helpful.

     

    2 users thanked author for this post.
    #213424

    Hi Roberto,

    just a question, how do you call this trendline in a strategy? I mean, If  I say close crosses over “what” ?

    thank’s in advance

    #213517

    You need to build affine function of the trendline and check if price is above/below of the current value of the function, example: https://www.prorealcode.com/topic/etendre-drawray-sur-x-barres/#post-137968

    #213537
    #213540

    2 times the indicator once with a Lookback period of 20 and one with the lookback period of 10 candles.
    In the modification also 10 Candles forwards.

    #213541

    Here the picture

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

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