Hi,
i had problems starting my strategy in the contest. I always got the message, that the
Instrument EURUSD is not opened.
i tried some fixes and at the end, the solution was to add the following code in the
onStart() Event:
Set<Instrument> set = context.getSubscribedInstruments();
set.add(Instrument.EURUSD);
context.setSubscribedInstruments(set);
with this code, the strategy runs. my question now: is it a problem that i compiled and started
my strategy on the contest server 3 or 4 times until it works?
the strategy only runs a few secondes and did not make any trades.