![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
|
I try to get info how much cash, or accout value, when running backtest my strategy my purpose is scaling num of contracts, but cant get using
GetAccountValue() I want know what is my account value before executing trades. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
For backtesting, you can set an AccountSize and use ByAccountSize as your order quantity option for the strategy - http://www.ninjatrader.com/support/h...ccountsize.htm
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
|
thanks I try
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
|
No thats not a solutions. I want know my account, I am using own scaling, and not want use any ninjas fixed account,
I want method or property to get my account value or cashvalue. |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
jokujoku, you can unfortunately not query your account value on historical bars automatically - you could make a custom input for the strategy and then manually enter your current balance to work with in your custom position sizing calculations for the strategy logic.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scaling in, Scaling out by differing poritions of total account size | tooearly | Automated Trading | 6 | 08-10-2009 09:48 AM |
| Strategy Position Vs Account Position | r2kTrader | Automated Trading | 1 | 02-24-2009 07:42 AM |
| Strategy position VS account position | ju1234 | Strategy Development | 1 | 12-03-2008 06:44 AM |
| Re: Strategy Position vs. Account Position | Pete S | Strategy Development | 1 | 11-14-2007 08:55 AM |
| Strategy: Scaling out of a position | NinjaTrader_Josh | Reference Samples | 0 | 10-24-2007 12:32 AM |