Hi, I followed the instructions and could successfully connect via the IG bridge. I did also successfully open and close a trade using the Zorro TradeTest script. I'm using the latest Zorro Beta 1.59.91 and the version of the IG plugin included there. I'm just wondering why I'm constantly getting the message "!Multiple accounts are not yet supported!" in the Zorro message window? And my real account equity is not shown, it just shows 0. Maybe a related issue? Assuming the error relates to the fact that I do have 3 live accounts with IG: the default CFD Trading account, a CFD MetaTrader account (so far used for trading with Zorro and the MT bridge) and a stocks trading account. I had to set up the MT account manually, the other 2 were automatically set up after registering with IG (in Germany). According to the logs the plugin is connecting to the intended account (the default CFD Trading account which is funded). Can I just ignore the error message? Any chance to have the account equity shown correctly? I could not find anything related in the log, not even at debug level...
The equity not showing is definitely related to the error message you are seeing. However I have no idea what causes it... I also have 3 live accounts with IG, Two for CFD (SEK & EUR) and an MT4 account. I have never seen this error message. It has to be some Zorro configuration I think. I'll try to get an answer from Zorro support and get back with an answer.
Hi Daniel, my apologies, I had no time to check back here until now - many thanks for your fast response and the fix! I will test it tomorrow during the day and let you know... Thanks again, Markus
Hi Daniel, just installed and tested: both problems fixed, no more error messages and the account equity is also shown correctly, great! Many thanks Markus
I tried to run a Z system (tried Z12 and Z7) via the IG Plugin but quickly ran into the quota exceeded for historical data problem ... I guess it happened because I forgot to set Preload = 1 in Z.ini :-( IG were so kind to reset the quota once but now I'd like to be 100% sure not to run into the same issue again. So has anyone managed to successfully run one or more of the Z strategies via the IG Plugin and could provide some hints how to make sure there is no issue with the IG API quotas? (By the way, enhancement idea for the IG plugin: add a configurable threshold for historical data requests per strategy launch...) Many thanks in advance.
Additional comment: it seems as if one can set up several API keys per IG account (one per "application") and the quota may be applied per key. I had tried again with a fresh key and Preload = 1 in Z.ini but still ran into the problem (not sure if that just happened because the quota was already exceeded by the first key, though).
This is unfortunately the biggest issue with the IG API. Like mentioned in the installation instructions, the best way to avoid these kind of issues is to keep your historical data up to date, and use the PRELOAD flag.
I currently tend to download historical data from FXCM/Oanda before starting strategies. I know this is not optimal, but doing so will avoid the problems you are describing. Doing this allowes me to start both Z12 and Z7.
Adding a threshold for data download would not really help; Zorro expects to get the data it is asking for, and if the plugin doesn't provide, it won't start the strategy.
Using multiple API keys might help for number of requests, but as far as I understand it will not increase the 10000 data point limit for historical data.
A threshold would still help as it is much better to see a strategy not starting (and a message such as "warning: attempting to load too much historical data, check your local data and configuration") than just exceeding the quota limits and having to wait for one week before trying again... Ok, maybe not the highest-priority enhancement but not useless either. In fact the API should be doing that. Anyway, I will try updating my local data from other sources and then give it another shot.