Discrepancies between back testing on live and demo accounts on IG
Forums › ProRealTime English forum › ProRealTime platform support › Discrepancies between back testing on live and demo accounts on IG
- This topic has 11 replies, 8 voices, and was last updated 5 years ago by Marlon.
-
-
03/20/2019 at 4:21 PM #94169
I have been backtesting on my live and demo account using PRT on IG and the results vary drastically is there any known issues with differing data feeds for each?
03/20/2019 at 4:50 PM #94174The data should be identical from IG for demo and live.
There can be a number of reasons for differences from different spread used in demo compared to live back test or even strategy specific reasons such as using a weird time frame (26 seconds for example) and then not starting both tests from exactly the same time or even something silly like having tick by tick data selected in one test but not the other.
You might want to post some screen shots of each test to show the differences and maybe post the code that you are back testing so we have all the info to work on and test for ourselves.
03/20/2019 at 5:52 PM #94181Hi David,
All the Demo accounts are using a new engine (multi timeframe) which has a different time execution than the old engine.
The Live accounts are still on the old engine however you can request the activation of the Multi Timeframe on your Live account upon request.
Please send an email directly to IG with your request and they will do the rest.
Have a great evening!
03/21/2019 at 2:02 PM #94300Experiencing the same thing. Not even close inn terms of results and I’m not using different timeframe references in my code. It’s very simple code.
But I have noticed small discrepansies for a while but this one had me falling of the chair.
60M scalping algo.
First image is live account and second is demo.
03/21/2019 at 3:10 PM #9431103/21/2019 at 3:22 PM #9431603/21/2019 at 3:59 PM #94323@nicolas The real account trades to the left and the demo account trades to the right. They are taken at pretty much the same place but stops are triggered in the demo environment.
I’m thinking this is a fault in the live account engine and not the other way around. My guess is that the new engine has more “in-bar” data and thus more representative of the real deal.
Does that sound possible?
03/21/2019 at 4:08 PM #94326This is a typical behavior of orders opened and closed in the same bar. You should look at inferior timeframe than the 1 hour one and verify when the ordres are closed, do they triggered really in the bar and at the good time?
My guess is that the new engine has more “in-bar” data and thus more representative of the real deal.
Definitely.
1 user thanked author for this post.
03/21/2019 at 4:35 PM #9433003/21/2019 at 7:56 PM #94354I can’t tell when the orders are triggered since only bar-open time shows up in the list.
You can see exactly when the Trades Open and Close after a Backtest from the Detailed Report … see attached.
Ooops just noticed you may gave been talking about zero bar / same bar trades?
But if you run the backtest on the 5 min bar (not 1 hour which gives same bar trades?) then you probably will get a Detailed Report similar to attached with Open and Close times.
1 user thanked author for this post.
03/22/2019 at 11:18 AM #94390I would also like to give my two cents here.
I had similar experience in the past – well more than 1 year ago – and I explained it to me that on the Demo account we have a bit a different market information setup.
For example: the minimum lot size you can buy / short a financial instruments is not always equal as it is configured in live account.
I also think that the spreads are not same as demo and live.
Last but not least, who is the counterparty in demo? IG I assume with unknow size on bid/ask.
On live we have IG as market maker and of course client orders as well.
That all has to be consired before putting a well running demo strategy live.
03/22/2019 at 11:55 AM #94397 -
AuthorPosts
Find exclusive trading pro-tools on