![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2011
Location: Illinois
Posts: 216
Thanks: 1
Thanked 0 times in 0 posts
|
If i have an indicator that takes say 10 parameters that i want to access from a strategy is there a way to simplify calling the parameter with say an array of the 10 parameters?
int[] array1 = {1,2,3,4,5,6,7,8,9,0} like if i have myindicator(array1); <----tried this and it didnt work The only way i can get this to work is myindicator(1,2,3,4,5,6,7,8,9,10); etc...each # would be a variable of some kind. make sense? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello neb1998,
You can save the indicator in a variable name. Please see this recent post which explains how to do this with RSI indicator. http://www.ninjatrader.com/support/f...32&postcount=4
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create Indicator with more than 4 parameters | byi777 | General Programming | 3 | 11-15-2010 10:47 AM |
| When indicator parameters not in Parameters category | MikeInMA | Strategy Development | 3 | 11-08-2010 03:24 PM |
| Indicator with numerous parameters | annettes | Indicator Development | 7 | 09-07-2010 03:42 AM |
| Indicator Accessing Indicator Where User Has Set Parameters | dkrumholz | Indicator Development | 1 | 04-27-2010 02:56 PM |
| Indicator Parameters in a Strategy | laocoon | Strategy Development | 1 | 10-08-2009 04:11 AM |