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 09-12-2008, 05:03 PM   #1
mjuviler
Member
 
Join Date: May 2008
Posts: 90
Thanks: 1
Thanked 0 times in 0 posts
Default Changing Values of running strategy

Hi,

Is there a way to enter values during a running strategy that would be variables to the strategy?

For instance say I have a Bool "KeepTrading" and it is True is there a simple way to change that to "False" without stopping or reloading the strategy.

In a normal program I would allow a user to toggle a radio button or something.

How can I control a running strategy. I know I could put a value in a File, DB or something and have the program read the file every bar to see the current value for the var. But that is ugly.

Thanks....

MArk
mjuviler is offline  
Reply With Quote
Old 09-12-2008, 10:12 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> For instance say I have a Bool "KeepTrading" and it is True is there a simple way to change that to "False" without stopping or reloading the strategy.
Unfortunately this is not supported.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 09-13-2008, 04:09 AM   #3
ATI user
Senior Member
 
Join Date: Apr 2006
Location: , ,
Posts: 1,316
Thanks: 1
Thanked 7 times in 7 posts
Default

I agree...it would be very useful

see ... http://www.ninjatrader-support.com/v...ead.php?t=9637
ATI user 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
Keep Strategy Running CashCache Strategy Development 14 10-02-2008 11:20 PM
Strategy not running after connection? Burga1 Automated Trading 32 11-23-2007 12:15 PM
Running the Strategy Analyzer jeremymgp Strategy Analyzer 11 11-20-2007 07:00 PM
trouble running a strategy abikambic General Programming 4 04-30-2007 12:30 PM
Changing Stop/target values in Control Center while Strategy running zoltran Miscellaneous Support 1 04-11-2007 02:40 AM


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