Price above Tenkansen for N periods

Forums ProRealTime English forum ProScreener support Price above Tenkansen for N periods

Viewing 3 posts - 1 through 3 (of 3 total)
  • #101337

    Hi,

    I want a code that screens for the price closing above the Ichimoku Tenkansen for a number of periods

    For example: Lets say price closing above Tenkansen for last 10 periods

    Tenkansen = (highest[9]+lowest[9])/2

    close > Tenkansen for the last 10 periods

    How would I write this?

    Thanks

     

     

    #101371

    You can use a summation of the last 10 periods tested condition:

    If the sum of the true conditions is 10, then the ‘test’ variable is also true.

     

    1 user thanked author for this post.
    #101391

    That’s perfect thank you Nicolas

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