Time entry condition with stop orders

Forums ProRealTime English forum ProOrder support Time entry condition with stop orders

Viewing 9 posts - 1 through 9 (of 9 total)
  • #160096

    I have an algo with the following definition of opening times:

    the entry conditions are:

    but I find it is placing orders outside of the Ctime definition.

    I presume this is due to the system placing Stop Orders – and if this is the case, is there any way to restrict a stop order to only work within that time definition?

    #160100

    The issue is in the icorrect placing of parentheses, try this:

     

     

    1 user thanked author for this post.
    #160103

    thanks Roberto, I’ll try that.

    #160106

    Hmm, one small problem – this completely destroys the performance. It goes from being highly successful to total disaster.

    Is the way I originally had it seriously wrong? ie, giving false results?

    #160107

    No, it only enters outside your time range. If this is good for you, then it’s fine.

    Bear in mind that outside that time range spreads may be higher (and rquired distances from price as well). This might impact peformance.

     

    #160111

    outside that time range spreads may be higher

    Yes, this was the main problem. It works with a tiny stop loss of just 5 points, but overnight the DAX minimum goes up to 10 so orders get cancelled and then the system gets stopped.

    But now I realize there’s a bigger problem: the way i originally had it doesn’t work anymore either. Last week it was fine, showing massive profit over 10 years, now it breaks the bank almost immediately – exact same code, unchanged. Unfortunately I didn’t keep a print of the results I was getting.

    So the disaster is not due to the changes you suggested, but some weirdness in the PRT backtests.

    I’ve attached the itf if anyone wants to make further tests because i have no idea what is going on here.

    #160124

    On DAX, 1-hour TF (200K bars), 2-pip spread, it’s not that bad! (it worked similarly on the 30-minute and 15-minute TF).

    I used my modifications and reaplaced TIME with OPENTIME.

    Bear in mind that 8-16:30 is a bit different for me, it’s 7-15:30 UK.

     

    #160135

    This is making my head spin – suddenly it tests ok again, with absolutely no changes! (v4)

    Also with your change to the ( ) now works. The profit drops as expected due to the time limit, but still acceptable. (v5T)

    Molto misterioso …

    #160141

    It must be mood dependent! 😂

     

    1 user thanked author for this post.
Viewing 9 posts - 1 through 9 (of 9 total)

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