NinjaTrader Support Forum  

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 07-04-2012, 03:47 AM   #1
jokujoku
Senior Member
 
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
Default Backtest strategy, account value for scaling position

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.
jokujoku is offline  
Reply With Quote
Old 07-05-2012, 02:32 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-08-2012, 01:52 AM   #3
jokujoku
Senior Member
 
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
Default

thanks I try
jokujoku is offline  
Reply With Quote
Old 07-08-2012, 01:54 AM   #4
jokujoku
Senior Member
 
Join Date: Sep 2009
Posts: 197
Thanks: 9
Thanked 1 time in 1 post
Default

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.
jokujoku is offline  
Reply With Quote
Old 07-09-2012, 03:36 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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.
NinjaTrader_Bertrand 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
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


All times are GMT -6. The time now is 10:28 PM.