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 > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-13-2007, 03:25 PM   #1
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Default setting account in strategy

How do I set the account number in a strategy so the order gets placed from the correct account?

Thanks,

Folls
Folls is offline  
Reply With Quote
Old 10-13-2007, 04:06 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Hi Folls,

You don't need to program which account the strategy will run on. When you load try to startup the strategy in the "New Strategy" dialog window there is a section called "General" and in that section there is an option called "Account". You can select your account from there.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-13-2007, 04:14 PM   #3
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Default

Thank you!
Folls is offline  
Reply With Quote
Old 10-25-2007, 09:29 AM   #4
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

I'm connected to IB in the Control Center but when I try to select the IB account in the Strategy Properties window I see just Sim101 grayed out and can't select anything else. IB is providing data to the chart so I know that the connection is there in that regard.
maxpi is offline  
Reply With Quote
Old 10-25-2007, 09:47 AM   #5
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Please uncheck File > Global Simulation Mode
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-25-2007, 11:21 AM   #6
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

Global simulation was not checked. I find that if I uninstall and reinstall the strategy to the chart I have the account choice but not after that. That is not a big thing really, it could be by design...

Currently I finally got past the initial confusion enough to have a strategy running but I cannot get the ATM strategy to fire off after the strategy takes a position... I'm rereading the help sections but not finding a good reason about that yet.
maxpi is offline  
Reply With Quote
Old 10-25-2007, 11:45 AM   #7
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Could you provide me steps on how to reproduce? If you are using a license that allows live trading, any account selection control should not be grayed out.

Thanks in advance.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-25-2007, 11:54 AM   #8
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

If I could provide steps I could probably figure it out!! I've been playing with NT all day, if I can restart the whole program and get the grayout to occur I will do so...
maxpi is offline  
Reply With Quote
Old 10-25-2007, 11:58 AM   #9
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

I restarted NT completely, connected to IB [sim account], put the strategy into the chart and initially I could select the account but after that it is grayed out... the strategy is very simple, it enters at the open tick of the bar...
maxpi is offline  
Reply With Quote
Old 10-25-2007, 12:33 PM   #10
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

By license, you mean I am paid up customer? I should be... I think my account got dinged a few days ago...
maxpi is offline  
Reply With Quote
Old 10-25-2007, 12:43 PM   #11
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

I just checked the accounts, payment was made a couple weeks ago...
maxpi is offline  
Reply With Quote
Old 10-25-2007, 01:09 PM   #12
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
Default

Please send a mail to "support AT ninjatrader DOT com". Our support staff will take care.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 10-25-2007, 01:54 PM   #13
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, I was not doing anything important today, just playing with the idea of semiautomating some of my trading activities... If I can get the ATM to fire off after a strategy entry it will be good...
maxpi 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I see what account the strategy is linked to?? VagyokC4 Strategy Development 1 10-01-2007 12:30 AM
Setting the order quantity in Strategy Wizard scjohn Strategy Development 1 08-29-2007 07:23 AM
Re: Setting a trailing stop & ATM Strategy mikesbarrett SuperDOM and other Order Entry Windows 1 06-29-2007 08:57 AM
Account Groups and strategy orders kh_model SuperDOM and other Order Entry Windows 1 05-26-2007 05:56 PM
Setting up autotrail strategy T4M ATM Strategies (Discretionary Trading) 5 05-01-2007 01:02 AM


All times are GMT -6. The time now is 08:12 AM.