![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jul 2006
Location: , ,
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
I developed a trading system in VBA for Excel.
In the VB Code I added in the refererences menĂ¹ NinjaTrader Client. After I wrote the code: Dim myClient As NinjaTrader_Client.Client ORDINE = 2 Set myClient = New NinjaTrader_Client.Client ORDINE = myClient.Command("CANCELALLORDERS", "", "", "", 0, "", 0, 0, "", "", "", "", "") but he give an error occured. It isn't able to create the ActiveX object. Can you help me? tks |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
a) Please double check that you proceeded as documented in the releveant section of the help guide.
b) What is the exact error you get? c) When do you get this error? On adding the project reference or on running the project? d) What operations system are you on?
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Join Date: Jul 2006
Location: , ,
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
a) Done
b)run time 429 don't create the activix object c)on running the project at Set myClient = New NinjaTrader_Client.Client d)Microsoft XP professional 2002 SP2 |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Hmm ... I'm on a loss. The only thing I know is that COM is sensitive to setup issues. So an uninstall and reinstall of NT via the control panel "could" make a difference.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|