I was happy to see that "MarketPosition(Pair, Account)" was going to keep working with GAIN even after restarting Ninja 6.5 (it did not in version 6). But it is not. The following works fine (returns real position from Gain) until I restart 6.5. After the restart, it sometimes returns the correct position and sometimes just returns "0" even when we are in a trade.
This is very important to us. Any suggestions?
Thanks, Bill
DefineDLLFunc: "NtDirect.dll", int, "MarketPosition", lpstr, lpstr;
inputs: Pair("$EURUSD"), Account("10011234");
if lastbaronchart and NTConnected(1) then begin
value1=MarketPosition(Pair, Account);
end;
plot1(value1);
Comment