![]() |
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 |
|
|
#16 |
|
Senior Member
Join Date: Jan 2009
Location: Budapest, HUNGARY
Posts: 258
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
i had so many problems with this, here is my experiences: In your strategy:
Code:
EnterLong(50000);
|
|
|
|
|
|
#17 |
|
Senior Member
Join Date: Jan 2009
Location: Budapest, HUNGARY
Posts: 258
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#18 |
|
Senior Member
Join Date: Jan 2009
Location: Budapest, HUNGARY
Posts: 258
Thanks: 0
Thanked 0 times in 0 posts
|
I tried, and accourding to my oppinion it did not add profit to AccountSize
|
|
|
|
|
|
#19 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You need to use ByAccountSize and not specify any quantity then if you want it to take control of the aggregation of the size.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#20 |
|
Senior Member
Join Date: Sep 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
|
Using my test case steps already posted, I've also tried using "by account size" and no quantity using EnterLong() as well as EnterLong(DefaultQuantity), and neither cause the AccountSize to update. Does anyone have any test case at all where it updates during a backtest? The order quantities do change to approximately match the AccountSize, but AccountSize itself is completely static throughout the backtest, similar to what others are reporting. This is the confusing part that I believe should be better documented.
|
|
|
|
|
|
#21 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Clarified with development, the AccountSize updates in the sense that it will help you keep the quantity dynamic for order placement, not in the sense that accessing the property will give you updated values.
If you want to see actual AccountSize updates you will need to track with your own variables.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#22 |
|
Senior Member
Join Date: Sep 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
|
Thanks for checking - please consider sending a note to the doc people to make note of this in the AccountSize topic, since it can be confusing.
|
|
|
|
|
|
#23 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Thank you for the suggestion. They will be informed.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AccountSize | drolles | Strategy Development | 9 | 06-09-2009 04:29 AM |
| AccountSize | zooinek | Strategy Development | 4 | 04-26-2009 02:54 AM |
| AccountSize and PnL | fxRichard | Strategy Analyzer | 3 | 01-18-2009 12:30 AM |
| Defining AccountSize in Strategy | total3 | Strategy Development | 1 | 04-25-2008 04:48 AM |