Proscreener – cross over happened in last “n” number of days

Forums ProRealTime English forum ProScreener support Proscreener – cross over happened in last “n” number of days

Viewing 7 posts - 1 through 7 (of 7 total)
  • #68073

    can some one help me with the screening code.

    How do i alter my code if a cross over heppened in last “n” number of days

    It is easy to get crossover happened before “n” number of days through the build in option.

    i would like to scan the below scenarios:

    1. MACD Cross over happened in last 5 days
    2. EMA 125 > EMA 63 in last 5 days
    3. EMA 10 crosser over EMA20 heppened in last 5 days.

    your help is appreciated.

     

    #68789

    Hi

    you may use your variable if supposed to be MACD as per below for 5 days ago:

    MACD[5]

    #68811

    If you don’t need all of them to have occurred at the same time you may write:

    If, instead, you need all of them to have occurred at the same time you should write:

     

     

     

    3 users thanked author for this post.
    #68812

    Hi

    you may use your variable if supposed to be MACD as per below for 5 days ago:

    MACD[5]

    This will only check whether it happened the 5th last bar, not within the last 5 bars.

    1 user thanked author for this post.
    #70320

    Hi Robert,

    thank you very much. this is exactly what i am looking for.

    can i use something like below:

     

    #70331

    You certainly can!

    There is no limit to what you can do provided the syntax is correct (but this is easy, since PRT takes care of it) and, most of all, the logic is correct (which PRT cannot check).

    Yes, your example is correct.

    1 user thanked author for this post.
    #71688

    Hello kumar_AK and welcome to the forums! Please can you use the ‘Insert PRT Code’ button when you put code in your future posts as it makes it so much more readable for others. I have tidied up you post for you. 🙂

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

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