Custom trading hours won't work with dopen/dclose

Forums ProRealTime English forum ProRealTime platform support Custom trading hours won't work with dopen/dclose

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

    Hi!

    I have been using GAP-strategies (SPTRD/USA500) with custom trading hours for the US market UTC+1 (14:30-21:00 + enabled the Daily data option) without any issues.

    Now I am taking the same approach for Swedish market open UTC (08:00-16:30 + enable daily data) and this won’t work as intended. The candles/price is cut off in the right way on my chart but the strategy doesn’t work properly. It will for example trade even though the open-price is not above previous close. It seems to work if I restrict the time from 10:00-16:30 but then the data is of course incorrect. Attached my settings and a trade that shouldn’t happen.

    Any idea what might be wrong?

     

    #138495

    I haven’t digested all you say, but a couple of other members on here have made comments about Gap Strategies not working recently.

    Link below

    https://www.prorealcode.com/topic/prt-not-showing-gaps/

     

     

    #138592

    Strange… In my case I cut off the price manually, hence I create the GAPs but PRT won’t understand them. I am just confused since the same approach works for the US market. Will contact PRT.

    #138992

    No answer from PRT but found out that on the 5 min TF code below will work properly. However on the 1-4 min TF neither does my first code or this one work as intended, I am clueless.

     

    #138996

    Seems to work now, it was somehow bugged, had to switch from 1 min TF to 5 min and then back again to reload the candles/data, then it suddenly started to work on the 1 min TF as intended…

     

     

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