auto goes opposite from backtest

Forums ProRealTime English forum ProOrder support auto goes opposite from backtest

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

    Hope someone can help me out with this, PING NICOLAS!

     

    My backtest takes a short while when putting it on automatic trading it took a long today (see picture) Happened several times now.

     

    This is the code im using:

     

    #85504

    Did you start it today? Customized trading hours on your chart or not?

    1 user thanked author for this post.
    #85509

    Did you start it today? Customized trading hours on your chart or not?

    started it like a week ago. Yes have customized trading hours on chart to be able to see gaps. +1 timezon and showing 08:00-16:30 (shows std at 0 timezon) since DAX opens at 09-17,30

    #85741

    can you please help me out Nicolas? Seems that only you might have to correct approach

    #85878

    did the same today, even changed showing custom trading hours… is there a code i should enter i my strategy?

    #85889

    Are you making it as easy as you possibly can for somebody to see at a glance what the symptoms of your problem are?

    For example, why don’t you show 2 screenshots side by side with arrows pointing to the 2 trade positions that are in opposite directions?

    Folks are busy and there are so many draws on our time, life even – outside of PRT 🙂 , that we need the symptoms to jump out of the screen at us then we may go looking for the source of  the symptoms (the problem).

    If you have done above and I am still missing it then apologies.

    What is the screen shot attached (copied from your original post) supposed to show / tell us? There is no trade running at all at time of the screen shot indicated by the red arrow?

    #85903

    According to the first picture, and if I have understood it clearly, the BUY and SELLSHORT are not happening on the same candlestick but one later? IMO, it is a problem of custom trading hours. Do you have or not weekend data displayed? If not, you should.

    What happen if you are not using custom trading hours at all, but with the real market time?

    #85935

    Are you making it as easy as you possibly can for somebody to see at a glance what the symptoms of your problem are?

    For example, why don’t you show 2 screenshots side by side with arrows pointing to the 2 trade positions that are in opposite directions?

    Folks are busy and there are so many draws on our time, life even – outside of PRT 🙂 , that we need the symptoms to jump out of the screen at us then we may go looking for the source of the symptoms (the problem).

    If you have done above and I am still missing it then apologies.

    What is the screen shot attached (copied from your original post) supposed to show / tell us? There is no trade running at all at time of the screen shot indicated by the red arrow?

    it shows that its that strategy im running, showing im not backtesting another strategy and another running on auto..

    #85936

     

    Nicolas wrote:

    According to the first picture, and if I have understood it clearly, the BUY and SELLSHORT are not happening on the same candlestick but one later? IMO, it is a problem of custom trading hours. Do you have or not weekend data displayed? If not, you should.

    What happen if you are not using custom trading hours at all, but with the real market time?

    ill try to make it more clearly.

    1.  The strategy defines open at 09, if price moves x points ABOVE open its a long, if y points DOWN from open its a short.
    2.  When i backtest the strategy on pic 1. the orange arrow shows a SHORT, price went down y points from open. BUT, on live trading (auto) it took a LONG (the green arrow)
    3.  Look at pic 2, ive tried custom trading options and no custom, still same results. Often the backtest and the auto goes in opposite direction.
    4. Pic 3 shows the auto is on the same timezon as settings. And custom hours at set in the strategy coding and not on PRT.

     

    #85973

    Try to set preloadbars to 0.

    It is only a matter of conditions read differently in the 2 environment. I can’t replicate the same order on 28th November, orders are opened later in the day..

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