Custom trading hours not compatible with the timeframe used

Forums ProRealTime English forum ProOrder support Custom trading hours not compatible with the timeframe used

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

    i havet ested this code maaaaany times before on auto, same settings, same timezon and same trading hours. Now i get this?! I have tried to enter manually in the code the hours in the error message, still does not work

    #85794
    • For a new topic, your title should be explicit enough to prompt the community to read your discussion.

    “error?” is not a correct title according to the posting rules.

    1 user thanked author for this post.
    #85859
    • For a new topic, your title should be explicit enough to prompt the community to read your discussion.

    “error?” is not a correct title according to the posting rules.

    oh i see, im sorry! Will think of that next time 🙂

     

    Would you happen to know that the problem might be here nicolas? Also would really appreciate if you look at my other topic “auto goes opposite from backtest” Would really appreciate

    #85900

    Because the code is only read one time per bar, at Close, the time you are testing in your conditions must be met at the candlestick Close.

    So if you are trading the 1h timeframe, your time condition should only contain plain hour, like 09000 or 220000.

    For a 5-minutes timeframe, they should be like 095000, or 173500.

    Time format is HHMMSS.

    BTW, I’ve never seen this error message before, I think that it has been implemented recently.

     

    1 user thanked author for this post.
    #85942

    Because the code is only read one time per bar, at Close, the time you are testing in your conditions must be met at the candlestick Close.

    So if you are trading the 1h timeframe, your time condition should only contain plain hour, like 09000 or 220000.

    For a 5-minutes timeframe, they should be like 095000, or 173500.

    Time format is HHMMSS.

    BTW, I’ve never seen this error message before, I think that it has been implemented recently.

    i see, and i tried that, changing to exact full hours, and since using 4h chart, did from 8am+4h+4h+4h= close at 20pm. Still the same message.

    #85944

    It does not matter when you start, but when 4-hours CANDLES start!

    I don’t think they start/end at 8.

    #85956

    yes i did that, changed in my code and in custom trading option in prt

    #85970

    Please post in your next message the code lines where you are using time values.

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