I will get to IG and keep you posted. Regarding EUR/USD, I do not understand one point: my line in the Assets.csv file is the following: EUR/USD,1.13795,0.00005,-0.0200,0.0100,0.0001,0.087100,10.0000,99.115,1000.0,0.600,CS.D.EURUSD.CFD.IP
It is pressty close to the example I saw before. The symbol name I put is not EUR/USD but CS.D.EURUSD.CFD.IP which is what I get from the API companion. Then why Zorro is telling me about EUR/USD?
Here is the AssetsIG.csv file saved in the History folder, and here is the strategy: https://pastebin.com/6BFHZVJA. Nothing fancy, just the test trade strategy with the assetList("AssetsIG"); line added Log file here: https://pastebin.com/F1vLBtuS
Can't see the asset file? My suspicion would be that something is wrong with that, because apparently it's trying to subscribe to EUR/USD rather than the long weird epic name used by IG.
Here are the log file, the assetIG file and the asset file. Strategy is the same as previous. I get the code is trying to subscribe to EUR/USD but I don't get why it would use the epic name for DAX and not for EUR/USD
Not sure why you have both an Assets and an AssetsIG? Anyway, I cannot see anything obvisouly wrong with the AssetsIG file. I would try a much simpler strategy first without all PanelGet etc, just to see if you can make it work. I'm pretty confident that the issue you are experiencing is not connected to the plugin.
Hello, Sorry to disturb again, I am trying to download data using the download script. I entered the correst symbol for EUR/USD, and I get this message:
2017-09-24 17:59:01.357 [main] WARN c.d.igz.brokerapi.BrokerHistory - Zero ticks returned for requested date range 2017-09-24T12:59:01 - 2017-09-24T17:59:01
If I change the years (instead of 2017-2017 I input 2016-2017) I also get the same error message plus another one:
2017-09-24 18:08:23.391 [main] WARN c.d.igz.brokerapi.BrokerHistory - Zero ticks returned for requested date range 2016-12-31T20:48:59 - 2017-01-01T01:48:59
Is the download script working with the plugin or should I write my own script? What is the reason of such an error?
I would not recommend using the plugin to download historical data, other than to backfill the lookback period when starting a script. IGs limits for historical data is VERY low, which means you will easily exhaust your weekly limit. If you do, you will not even be able to start a script if even a single minute of data is missing.
That said, it should work with the download script, IF you stay within the time range given in the FAQ: https://labs.ig.com/faq.
My guess for the error message: You have tried to download data from today = Sunday. IG is not open until late in the evening on Sundays, so there are no ticks to be found within the range stated in the error message.
The second error is probably because you are trying to fetch data too far back in time, again refer to the FAQ.
I attempted to connect to IG using the IG plugin. I read through this thread but was not able to resolve this on my own leaving me with a bit of a bruised ego.
These are the steps I performed: - Installed Zorro V1.60 - Installed IG plugin as per instructions in the manual and on GitHub - Generated API keys for both real and demo IG accounts - Updated API keys in application properties.file of IG plugin - Updated File AssetsFix.csv with IG symbols extracted from IG API Companion
I failed when attempting to run any of the scripts, for example 'TradeTest'and 'Download'scripts receiving the error message: Severe error occured, check igzplugin.log logfile! Can't connect!.
The result is the same after multiple attempts over several days. I also tried using (1) username + password and (2) username + API key to connect to the server, again with the same result.
Any advice on how to tackle this would be greatly appreciated.