Timeframe in screener

Forums ProRealTime English forum ProScreener support Timeframe in screener

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

    Hi, Ive written some code but i want it to only look at the first 5 min candle of the current day. How can I do this?

    Thanks

    My code:

     

    #14051

    hi, im sorry if im missing something easy but i’m very new to coding with PRT so any help would be hugely appreciated, all i want to know how I can make the above code run on only the first 5 minutes of the current day 🙂

     

    #14053

    On what timeframe do you want to launch your screener?

    #14054

    on a 5 minute timeframe which ive done, but i only want it to run on the first candle of the day, if i run the code as it is, it just run since earliest date which i dont want.

    #14055

    You can use intradaybarindex to know the actual candlestick number. With it you can restrain your test to the first intradaybarindex.

    #14064

    ive added IntradayBarIndex[0] to the start of my code and it doesn’t work, the candle is the first bar of the day and therefore bar 0 if im not mistaken. If you could give me some help with the syntax when using it in a screener instead of just an indicator that would help me out alot 🙂

    #14068

    Hmmm.. maybe a time condition would meet more the way you are thinking about your screener.

    Add a time condition (adapt it to the open time of the instrument of course):

    Your complete code would look like this:

    Didn’t test it, Sunday evening coding, should work .. 🙂

     

    #14074

    thats great thank you very much! i’ll test it tomorrow and update you if it all works 🙂

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