Problems with TimeFrame. How do I make this program?

Forums ProRealTime English forum ProScreener support Problems with TimeFrame. How do I make this program?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #243350

    Hello,

    I’ve been programming for a short time and I’ve run into a problem. The thing is that I want to make a program that scans a list of stocks for 250 days. On each of those days it finds the opening price of the day and also the share price at a given hour and at another given hour, data that will then be processed.

    The intention is to make a screener that calculates the percentage by which a stock at a given hour (H1) exceeded the indicated % (perH1) with respect to the opening of the day (opening),and at another indicated hour (H2) it was below another indicated percentage (perH2) (with respect to the opening price).

    I have written this program but I don’t think it works well. I suppose the problem is that the TIMEFRAMES are not nested. I need the program to access the hours of each of the days. How do I do this?

     

     

     

    Thanks!

    #243390

    What you want to achieve is not possible.

    Timeframe shouldn’t be use inside loops or IF blocks.

    In addition, when you loop 250 bars backwards on the hourly TF, it’s just slightly over 10 days, not much!!!

     

     

    1 user thanked author for this post.
    #243392

    Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.

    Thanks 🙂

     

    #243409

    My intention was actually to go through the last 250 days and take data from specific hourly bars each day and then process de data.
    How would you do it? Is it possible? Thanks for your answer.

    #243415

    You can only go backwards roughly 10 days.

     

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

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