• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

In what order are parameters set when calling Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PatrickH
    replied
    Hello TazoTodua,

    Thank you for your patience.
    Originally posted by TazoTodua View Post
    when i want to include (call) this indi into another indi, in what sequence(order) i should use the parameteres?

    for example:

    Code:
    Indi temp_var = primary_indi( param1, param2, param3 , param4, param5)
    does param1 sets - ZZZZ
    does param2 sets - DDD
    does param3 sets - BBB
    does param4 sets - CCC
    does param5 sets - AAA
    ?
    The DataSeries ZZZZ would not be a parameter to enter values, although there is the Input Series as the first parameter (this is unrelated to your parameters).
    The order would be alphabetical at that point. For example: A, B, C, D.

    Please let me know if you have any questions.

    Leave a comment:


  • bltdavid
    replied
    Originally posted by NinjaTrader_AlanP View Post
    Yes, the order determines the input.
    No, it doesn't.

    In NT7, the order of the parameters is determined alphabetically, not by how they are listed as properties.

    (NT8 is different, but this is an NT7 question, right?)

    For example, see @KeltnerChannel.cs.

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello TazoTodua,

    Yes, the order determines the input. For further analysis, I would suggest opening an new indicator and typing MACD( , which will display an intellisense box with the parameter the MACD indicator takes. Next you could open the MACD indicator and look how its parameters are listed.

    Similar to parameters, plots are also in the order that they are listed.

    Please let us know if you need further assistance.

    Leave a comment:


  • ttodua
    replied
    and lets, another question, if in initialization, i do:


    Add(new Plot(Color.Blue, "BBBB"));
    Add(new Plot(Color.Blue, "AAAA"));


    (look the alpabetically reversed names), will they anyway added in this manner:

    BBBB -- Values[0]
    AAAA -- Values[1]

    am i right?

    Leave a comment:


  • ttodua
    replied
    So you say the "order" parameter decides the order of arguments for external call, am i right?

    otherwise, i was forced to call arguments ALHPABETICALLY.

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello TazoTodua,

    Thank you for your note.

    You should call them in the order they are listed, the top being first.

    From the calling indicator you should see these listed in Intellisense. See screen shot.

    Please let us know if you need further assistance.
    Attached Files

    Leave a comment:


  • In what order are parameters set when calling Indicator

    i.e. in primary indicator, i have this order of parameters:


    Code:
    public DataSeries ZZZZZ
    {
    	get { return ZZZZZ1[0]; }
    }
    
    [XmlIgnore()]
    [Description("")]
    [GridCategory("Parameters - Timeframe")]
    public int DDDDD
    {
    	get { return DDDDD1; }	set { DDDDD1= value; }
    }
    
    [Browsable(false)]
    [Description("")]
    [GridCategory("Parameters - Timeframe")]
    public int BBBBB
    {
    	get { return BBBBB1; }	set { BBBBB1= value; }
    }
    
    [XmlIgnore()]
    [Description("")]
    [GridCategory("Parameters - Timeframe")]
    public int CCCCC
    {
    	get { return CCCCC1; }	set { CCCCC1= value; }
    }
    
    [Description("")]
    [GridCategory("Parameters - Timeframe")]
    public int AAAAAA
    {
    	get { return AAAAAA1; }	set { AAAAAA1=value; }
    }

    when i want to include (call) this indi into another indi, in what sequence(order) i should use the parameteres?

    for example:

    Code:
    Indi temp_var = primary_indi( param1, param2, param3 , param4, param5)
    does param1 sets - ZZZZ
    does param2 sets - DDD
    does param3 sets - BBB
    does param4 sets - CCC
    does param5 sets - AAA
    ?
    Last edited by ttodua; 01-06-2018, 09:54 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by tvaughan4, 12-13-2019, 10:46 PM
2 responses
15 views
0 likes
Last Post tvaughan4  
Started by digibob, 12-13-2019, 10:01 PM
3 responses
12 views
0 likes
Last Post digibob
by digibob
 
Started by ldissinger, Yesterday, 12:55 PM
1 response
17 views
0 likes
Last Post ldissinger  
Started by pstrusi, Yesterday, 09:06 AM
1 response
27 views
0 likes
Last Post marcus2300  
Started by vpzdcv, Yesterday, 02:31 AM
0 responses
13 views
0 likes
Last Post vpzdcv
by vpzdcv
 
Working...
X