Real trading does not match the backtest

Forums ProRealTime English forum ProOrder support Real trading does not match the backtest

Viewing 4 posts - 1 through 4 (of 4 total)
  • #175149

    Hello, after a while testing a simulated system I have decided to put it to work with real money but I am realizing that if I do a backtest, the operations of the simulation do not coincide with the real one.

    What do you think it could be?

    Thanks a lot.

    #175183

    You have to start the Backtest with the date and time corresponding to the Live.
    I think that’s what makes the difference.
    Hello
    Mauro

    #175189
    Attached is a non-exhaustive list of the elements that can impact a live trading strategy and create differences with a demo account and/or backtests:
    • Spread
    • Slippage
    • Orders rejections due to one of the above reason, but also because of the allowed distance from current price to put pending orders (known as “minimal distance”)
    • Different trading hours (ProOrder code launched in a different time zone / custom hours, by the user)
    • Coding problem: division by zero error, null or negative periods for indicators, ..
    • Lack of responsiveness of IG demo servers (if IG is the broker), although this has improved considerably since last year.
    • Make backtests without tick-by-tick option
    • “set stop trailing” instruction that give IG the total control of your stoploss, can be moved differently between accounts due to points above
    • Limited risk accounts and their rules
    • Guaranteed stoploss rules and fees
    • Starting a strategy at a different time (1 hour or even 1 minute later): depending on the code of the strategy, the results of some calculations could be different.
    • Margin required on the trading account (no demo or backtest tests are made on this subject)
    • Overnight and overweekend fees
    Because backtests are only tested on history *with no connection to live market* , you may encounter differences with real live trading environment subject to spread enlargement, slippage, etc. If your stop hasn’t move, there must be information of an error into your orders rejected list you can consult with CTRL+O.
    IG orders list history may be also helpful!
    #175194

    Link to above added as Log 298 here ,,,

    Snippet Link Library

    Not a code snippet, but an easy point of reference will be very useful.

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

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