View Full Version : bug API
VincentD
10-31-2007, 09:05 AM
Hi
Allready installed newest
version 6.0.1000.6
the function:
NTMarketPosition("Uxxx");
deliver a wrong 0 position after a IB Logout/Login
regards
Vincent
NinjaTrader_Ray
10-31-2007, 09:07 AM
This is a current limitation of this function. NT 6.5 due out in beta this week resolves this.
VincentD
11-02-2007, 01:36 AM
Hi Ray
I don't see at this time the beta release
It will posted in the normal download page ?
thank's
Vincent
NinjaTrader_Josh
11-02-2007, 01:38 AM
It is slotted for beta release on Tuesday.
VincentD
11-08-2007, 02:14 AM
Hi
Have you a new release date ??
Regards
Vincent
NinjaTrader_Dierk
11-08-2007, 03:41 AM
http://www.ninjatrader-support.com/vb/showthread.php?t=3924
NinjaTrader_Chris
11-08-2007, 06:19 AM
Hello Vincent,
You can download our latest beta release of NinjaTrader 6.5, which should resolve your inquiry from the link below.
http://www.ninjatrader-support.com/vb/showthread.php?p=19265#post19265
VincentD
11-08-2007, 07:01 AM
NT version 6.5.0.2 is now installed
but ...
the bug with NTMarketPostion("xxx")
persist ...
after one restart of TS we receive the famous 0 position
after a manuel change im TWS the position is wrong ... :
http://www.ninjatrader-support.com/vb/attachment.php?attachmentid=1108&stc=1&d=1194530409
NinjaTrader_Chris
11-08-2007, 07:04 AM
Hello Vincent,
pls code some simple TS EL strategy only holding this statement:
Print("Position size: " + NumToStr(NTMarketPosition(""), 0));
(see NTSample in TS for a complete sample)
Then place trades in TWS and see as it's working
VincentD
11-08-2007, 08:07 AM
Hallo Chris
problem persist
IN THE SAME session IT work, but after a deconnect/connect the position is wrong
please see the image (position 1 and it should be 3):
http://www.ninjatrader-support.com/vb/attachment.php?attachmentid=1109&stc=1&d=1194534401
NinjaTrader_Ray
11-08-2007, 09:37 AM
Thanks for the helpful screen shot. We will forward this to development for further investigation.
VincentD
11-13-2007, 11:58 PM
Hi
Did you find the bug reason ?
With this problem NinjaTrader <> TS <> IB is simply useless
thank's
Vincent
NinjaTrader_Dierk
11-14-2007, 12:00 AM
It's working here as expected. A member of our support team with contact you. Please send your phone number to "support AT ninjatrader DOT com" and refer to this post.
VincentD
11-14-2007, 12:36 AM
Dierk
Thank's
I have found now something:
Work if :
1. default account set on IB-account "Uxxxx"
2. call of NTmarketposition WITHOUT !! Uxxx
if LastBarOnChart and NTConnected(1) then begin
if NTMarketPosition("") = 0 then begin
Don't work with:
if LastBarOnChart and NTConnected(1) then begin
if NTMarketPosition("DUxxxxx") = 0 then begin
NinjaTrader_Dierk
11-14-2007, 12:39 AM
Curious: why would you call
>> NTMarketPosition("DUxxx")
as your account name is "Uxxx"?
VincentD
11-14-2007, 01:00 AM
to test & developp&debug strategy
with IB it's in the first phase allways with
a paper-trading and by IB is the paper-trading-account start
with "DUxxx"
would you like to developp & test strategy direct in a REAL-account ?
NinjaTrader_Dierk
11-14-2007, 04:03 AM
- please make sure you call NTMarketPosition for the account where is actual position is on
- NT does not support IB paper trade account. You may consider trying the regular IB demo account.
http://www.ninjatrader.com/webnew/support_interactivebrokers.htm
"Critical: Although you can connect to TWS "Paper Trading Account" we do not officially support it due to inconsistent behaviors of how orders are filled and market data is transmitted through the TWS API."
VincentD
11-14-2007, 06:11 AM
- NT does not support IB paper trade account. You may consider trying the regular IB demo account.
>> the IB demo account is really the bad solution> is delayed and after deconnect/reconnect you loose all position, IB demo account reset all after the first connection
the main problem is:
why the difference
NTMarketPosition("") without the account-specification is OK
NTMarketPosition("DUxxx") is allways 0 in TS, BUT I see the right position in NinJa (see the image below)
NinjaTrader_Dierk
11-14-2007, 06:54 AM
NT does not support paper IB trade account. Please let us know as you reproduce your issue on IB live or demo account or NT sim account.