![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2010
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2010
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Bertrand - I will try this.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |