Problems with trading time and stoploss

Forums ProRealTime English forum ProOrder support Problems with trading time and stoploss

Viewing 10 posts - 1 through 10 (of 10 total)
  • #167086

    Hi, iv been having some problems with trade time, some of my algos trade even when they shouldent.

    iv tried these 2 diffrent ways but in some algos they work and some dont

    with the condition on selling and buying aswell.

    been stairing at my code for a week now but cant find the problem.

    i also have a problem with a stoploss i found on this site, the problem is that it moves upp and down, not a fan of the down part

     

    hope anyone can point me in the right direction cus im lost.

    #167087

    some of my algos trade even when they shouldent.

    By trade … do you mean open a trade or close a trade?

    #167088

    it opens trades

    #167092

    Try using 173000 instead of 1730000 (1 exceeding 0).

     

     

    #167093

    with the condition on selling and buying aswell.

    So you can sell only when CTime = 1 / True?

    Or do you mean SellShort if CTime = 1 / True?

    Use GRAPH for all your Buy conditions.

    Or post the full code on here and somebody will spot the problem for you.

    #167094

    Try using 173000 instead of 1730000 (1 exceeding 0).

    nice spoting 🙂 i tryed removing one 0 but the problem still remains in the backtest atleast.

    #167098

    with the condition on selling and buying aswell.

    So you can sell only when CTime = 1 / True?

    Or do you mean SellShort if CTime = 1 / True?

    Use GRAPH for all your Buy conditions.

    Or post the full code on here and somebody will spot the problem for you.

    it looks like this

    dont know what graph is but looking into it now haha 🙂 thx m8

    #167099

    If 9h and 17h30 are the time limits you want, having in mind “opentime” is the time at candle open, and “time” is the time at candle close, you used:

    but maybe you meant to use:

    which if keeping “time” and could also be written as:

    so that with the swapping of >=/< into >/<= , the candle ending at 9h is not included, and the candle ending at 17h30 is included?

    #167100

    Post the lines where you used your conditions.

    Apart from the number of digits, the above code doesn’t tell us more, the extra 0 will let trades open from 9am up to 235900.

    As to Ctime (and the other time conditions), it depends on how you use them.

    will work.

     

     

    #167104

    i see now that i put and extra 0 at ctime aswell, it seems to fix it! thx allot for all your help guys. been stairing at it for a few days now and couldent figure out.

Viewing 10 posts - 1 through 10 (of 10 total)

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