NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-22-2010, 10:47 PM   #1
pauluk
Junior Member
 
Join Date: Nov 2010
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
Default Is it possible to set parameter values dynamically?

NT v7 - In an indicator or strategy script is it possible to set the values of the parameters dynamically? For example a MA indicator allows you to select the type of moving average you want to use from a range of constants in a drop down. Would it be possible to initialise parameters, lists etc with values obtained from an external application for example?
Are there any examples of where this is being done?
Thanks.
Last edited by pauluk; 11-22-2010 at 10:49 PM.
pauluk is offline  
Reply With Quote
Old 11-23-2010, 04:16 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Welcome to our forums Paul, this would unfortunately not be supported in Initialize() - you could add logic to the OnStartUp() / OnBarUpdate() to 'fetch' settings from another method / indicator.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 11-23-2010, 10:50 AM   #3
pauluk
Junior Member
 
Join Date: Nov 2010
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Bertrand - I will try this.
pauluk 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
Default Parameter Values toptrader Strategy Development 4 09-04-2009 10:30 AM
How to set BackColor with a user parameter? saroj General Programming 3 08-28-2009 07:45 AM
Submitting stoploss order how to set parameter Stops&Targetsubmission clint2008 ATM Strategies (Discretionary Trading) 5 01-20-2009 07:13 AM
Parameter Driven Line Object Values Do Not Update on Reload whitmark Indicator Development 3 07-10-2007 11:10 AM
Problem with 'Parameter Type' set to Price codeye Miscellaneous Support 5 12-09-2005 07:06 AM


All times are GMT -6. The time now is 04:51 AM.