|04-25-2008, 03:22 AM||#1|
Join Date: Apr 2008
Thanked 0 times in 0 posts
Defining AccountSize in Strategy
I am trying to define the accountsize for a strategy but I am lost:
I have put
protected override void Initialize()
AccountSize = 5000;
to define the accountsize. So far so good. Now when I open a chart & add the strategy under "Order properties" it says set order quanity "by strategy". Now I have to change this manually to "by account size" which is not good when I have to do this many times over.
Is there a way to have this done automatically so that orders are always handeled using the accountsize ?
My order routine says: EnterLong(DefaultQuantity, "EnterLong1");
Is there a way to reference to the accountsize or somehow set the DefaultQuantity to the accountsize ?
|04-25-2008, 04:48 AM||#2|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Thanked 106 times in 70 posts
You will simply need to keep track of what your account size is and just submit orders that match your current account size. NinjaTrader does not currently access your true brokerage account size so you will need to adjust for that accordingly.
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|Defining Default Chart Trader ATM||jeremymgp||ATM Strategies (Discretionary Trading)||1||12-28-2007 09:19 AM|