Checking if a Condition has occurred within N Periods

Forums ProRealTime English forum ProOrder support Checking if a Condition has occurred within N Periods

Viewing 4 posts - 1 through 4 (of 4 total)
  • #154359

    Hello All,

    I’m trying to write a programme line entry whereby I want to execute a trade if a condition has been fulfilled with the last N periods (for example; if a cross of price over 100 MA line has occurred within X number of time frames).  Anyone able to provide guidane on how this condition can be expressed?

    Thanks!

    #154363

    There you go:

     

    1 user thanked author for this post.
    #154371

    Awesome, thanks Roberto!!!

    Follow up question, do you know how I could make this work with TIMEFRAME?  say for instance, I want to check this in a 10min chart and my default where I am running the programme is 5 min (i.e. I want the programme to trade only if condition X has een validated in 10min timeframe).

     

     

    #154374

    You can use it as many times as needed, provided you name variabls differently among TF’s:

     

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

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