NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 07-05-2006, 08:09 AM   #1
giu76cala
 
Join Date: Jul 2006
Location: , ,
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

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


giu76cala is offline  
Reply With Quote
Old 07-05-2006, 08:30 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

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?
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-05-2006, 08:41 AM   #3
giu76cala
 
Join Date: Jul 2006
Location: , ,
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

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
giu76cala is offline  
Reply With Quote
Old 07-05-2006, 08:49 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

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.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:08 PM.