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.
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.
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.
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…
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue