Look back in time for condition

Forums ProRealTime English forum ProBuilder support Look back in time for condition

  • This topic has 2 replies, 3 voices, and was last updated 6 years ago by avatarLeo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #54835

    Hi,

    I would like to create a simple indicator that would simply look back in time basically put a ARROW up on the day of the triggers. The case:

    Has the 20 sma crossed the 50 sma in the last X days.

    • Each day that this would be true for would have an arrow.
    • So if it crossed 3 days ago and x was 5 the indicator would draw an arrow everyday after the cross for 5 days.

    Thanks for you help.

    Gene.

     

    #54891

    Here is the code, you can either copy & paste it or import the file. In the attached file I set the variables so that you can change them each time you launch the indicator, without having to modify the code.

    I only tested it on EurUsd DAILY.

    Roberto

    #54895
    Leo

     

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

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