December 19th, 2012, 11:20 PM
Simple addition to variables
I have compiled a Java strategy used to automatically execute spot currency transactions and am in the process of enhancing it's back testing ability.
While the Java Strategy is fully functioning with any one defined instrument, in this case EURJPY, I am looking to add mulitple instruments to be tested simultaneously (ie: EURUSD, USDJPY etc).
My attempts to add instruments have so far been unsuccessful and I believe this to be a simple fix by someone with greater Java understanding than myself. Any help would be truly appreciated.
public Instrument instrument = Instrument.EURJPY;
The current functioning code is as shown below. This will automatically execute a trade based on criteria within a certain time range in real time and is used to generate historical performance while back testing. Currently it can test these parameters for one instrument at a time. Optimally, the strategy would make use of up to 20 instruments.
Thanks v much,
December 22nd, 2012, 02:55 AM
It seems like a proprietary API you are using. So, I think you could elaborate further on your problems and ultimately what you want to achieve in the API's provider's own forum.
When the programming world turns decent, the real world will turn upside down.