question about drawing arrows from conditions?

Forums ProRealTime English forum ProBuilder support question about drawing arrows from conditions?

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

    Hey

    I am playing about trying to write some simple code. I want to have a arrow up below the candle on the chart when Close > Close[1]And (Close > High[1]) and a arrow down when Close < Close[1] And (Close < Low[1]) but I want to write the code so it does not keep printing arrows on subsequent candles as price rises or falls but I honestly can’t seem to get it to work. I just want to pick up the swings at top and bottom according to the rules above. I am sure this is a really basic thing to ask but if someone could show me how you would write this I would be so grateful.

    Thank you for any help you can give me.

    You guys are the best

     

    Steve

    #89931

    I moved your topic to the english forum.

    There you go:

     

    1 user thanked author for this post.
    #89933

    Ah wow so I even posted in the wrong part of the forum!!

    You are probably wondering how I even managed to turn my computer on!

     

    Thank you for the quick reply and the help

     

    I actually managed to write something similar to the above but what I was meaning was I did not want the arrows to keep printing on the subsequent candles I don’t think I explained myself properly.

    So it would look something like the picture attached only drawing the arrows circled and not the ones in between. Hopefully this makes sense

     

    Thanks again for your help

    Steve

    #89938
    • For a new topic, your title should be explicit enough to prompt the community to read your discussion.

    “noob question” is not an appropriate title. It will not help any members to find relevant topics for their questions in the future.

    #89940

    You just have to let me know the features  the circled candkesticks have to tell them from those not circled.

    #89944

    Oh sorry Nicolas I did not mean to cause any problems.

    So what I mean is the circled candle is the first candle that close is greater than the last candles high or a close is lower than the last candles low.

    Hopefully that makes sense, sorry for the confusion.

     

    Steve

    #89950

    There you go, you can set Offset and LookBack to whatever value suits you best:

     

    2 users thanked author for this post.
    #89957

    Ah mate thank you so much.

     

    I was really struggling with this. Thank you for your help and all you patience

     

    All the best

     

    Steve

     

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