![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
|
How do I set the account number in a strategy so the order gets placed from the correct account?
Thanks, Folls |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
|
Thank you!
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Please uncheck File > Global Simulation Mode
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
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...
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
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...
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
By license, you mean I am paid up customer? I should be... I think my account got dinged a few days ago...
|
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
I just checked the accounts, payment was made a couple weeks ago...
|
|
|
|
|
|
#12 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Please send a mail to "support AT ninjatrader DOT com". Our support staff will take care.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
|
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...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |