Custom trading hours not compatible with the timeframe used

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #85785 quote
    ullle73
    Participant
    Senior

    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

    fel.jpg fel.jpg
    #85794 quote
    Nicolas
    Keymaster
    Master
    • 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.

    ullle73 thanked this post
    #85859 quote
    ullle73
    Participant
    Senior
    • 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 quote
    Nicolas
    Keymaster
    Master

    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.

    ullle73 thanked this post
    #85942 quote
    ullle73
    Participant
    Senior

    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 quote
    robertogozzi
    Moderator
    Master

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

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

    #85956 quote
    ullle73
    Participant
    Senior

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

    #85970 quote
    Nicolas
    Keymaster
    Master

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Custom trading hours not compatible with the timeframe used


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ullle73 @jonas_rydqvist Participant
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by Nicolas
7 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/27/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...