NinjaTrader Support Forum  
X

Attention!

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


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 02-19-2010, 09:31 AM   #1
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default How to know the name of the strategy that is running

Is there a property i can reference to know the name of the strategy that is running?

I want to print the name of the strategy that is running, and not manually type it in. THis was when tracking my results, i know what is coming from each strategy version.

e.g.
File.AppendAllText(path,ToDay(Time[0]).ToString() +" " + results.ToString(("#0.00"))+" "+ Instrument.FullName + " "+ STRATEGYTHATTHISFUNCTIONISCALLEDFROM+ Environment.NewLine );

Thanks
richa61416 is offline  
Reply With Quote
Old 02-19-2010, 10:10 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Unfortunately this is not supported, but maybe you could just try "Name".
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-19-2010, 10:25 AM   #3
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks that worked.
richa61416 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
Account on which a Strategy is running Jean-Marc-Molina Strategy Development 4 01-26-2010 12:53 AM
Strategy arrows on chart thus no strategy is running poseidon_sthlm Strategy Development 2 01-15-2010 10:35 AM
Keep Strategy running. gator-trader Automated Trading 3 08-29-2009 06:26 PM
Keep Strategy Running CashCache Strategy Development 14 10-02-2008 11:20 PM
Running Different Strategy Off Same Chart dgregor5 Strategy Development 3 10-10-2007 03:31 PM


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