Hi,
in attachment a code that is not working as expected.
Should be quite simple: start, subscribe an instrument and every minutes get actual position on this instrument and print it!
But it's not working!
Here is the log:
"Level Date Message
INFO 14.10.2013 19:46:01 Position: 0.0
INFO 14.10.2013 19:45:01 Position: 0.0
INFO 14.10.2013 19:44:01 Position: 0.0
INFO 14.10.2013 19:43:01 Position: 0.0
INFO 14.10.2013 19:42:08 Strategy "TestGetPosition" Strategy ID: is started at 2013-10-14 19:42:08.081 GMT on the remote server with no parameters"As you see always say 0.0 position but it's not true! as you can see from the attached printscreen!
I can add that last week the SAME code was working perfectly.
Also I noticed that this code starts working OK if at any time during the execution I manually make a trade. As you can see from this log:
INFO 14.10.2013 20:01:00 Position: 0.048
INFO 14.10.2013 20:00:18 Order FILLED at 1.23433 CHF (#216821299 SELL 0.004 mil. EUR/CHF @ MKT) - Position #646092EUR/CHF
INFO 14.10.2013 20:00:18 Order ACCEPTED: #216821299 SELL 0.004 mil. EUR/CHF @ MKT
INFO 14.10.2013 20:00:01 Position: 0.0
INFO 14.10.2013 19:59:01 Position: 0.0After I manually made a trade (sold 0.004) the code started to work!! Before was telling me I had 0.0, the I sold 0.004 and is telling me that now I have 0.048, that actually is correct! But why only after I make trade it start working?
Please help me with this because it's a
critical issue for my strategies. All my strategies now don't work anymore!
Best regards,
Riccardo
Important Note:
1) Code is NOT working only in "remote run". In "local run" it's perfect
2) My account is a "Global account"