Time problem – 5min early

Forums ProRealTime English forum ProOrder support Time problem – 5min early

Viewing 6 posts - 1 through 6 (of 6 total)
  • #73505

    Hi

    I am trying to get the market value at 10.10am using the 5min timeframe, but my code returns the time from 10.05.  Can anyone help please??

    I use the following variables…

    Then I do the following logic check…

    But when I graph the “stratopen” value it returns the open value from the 10.05 candle, not the required 10.10 candle.

     

    Any help please?

    Thanks.

    #73507

    Welcome to the forums. Please use the ‘Insert PRT code’ button when putting code in your posts. I will tidy your post up for you! 🙂

    I would advise reading the documentation here:

    https://www.prorealcode.com/prorealtime-documentation/

    There is a whole section on Time and Date.

    Also try using the GRAPH instruction with TIME and then you will see exactly what is returned for TIME for each bar.

    Maybe you should consider OPENTIME?

    #73508

    OllieB,

    You should try to move everything 5 mins early (stratstartime=100500), or maybe using stratstartime= opentime=101000

    Regards.

    #73519

    Thanks, I will do some research.

    #73520

    Thanks.

     

    I tried that but the trade didn’t trigger.  And I was interested in understanding the workings of PRT as to why the seemingly simple logic isn’t working.

    #73522

    Replace time < risktime with

     

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

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