Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reference variables for indicators

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

  • NinjaTrader_JoshP
    replied
    I see. You will probably need to just use control structures.

    Leave a comment:


  • cls71
    replied
    Sorry, my english level is low.

    The pseudo-code would be like this:

    private indicatorType <referenceVariable>;
    SMA( <referenceVariable>, period );

    If it isn't possible i will use control structures like <switch> or <if>.

    Thanks very much.

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    If you mean enums you can definitely do it and use a switch to control different logic results.

    Leave a comment:


  • NinjaTrader_Dierk
    replied
    Sorry I don't understand your inquiry.

    Leave a comment:


  • cls71
    started a topic Reference variables for indicators

    Reference variables for indicators

    Greetings,

    Is it possible call to indicators by dinamics reference variables ?
    For example, I want develop one indicator that calcs the SMA of other indicator which is selected for the user. This indicator isn't known in compilation time.
    I wan't use <switch>, <if>, etc. I would prefer to use reference variables if this is possible.

    Thanks very much.

Latest Posts

Collapse

Topics Statistics Last Post
Started by John Bogui, Today, 03:57 AM
2 responses
11 views
0 likes
Last Post John Bogui  
Started by Dolfan, 12-30-2020, 12:04 PM
9 responses
52 views
0 likes
Last Post timko
by timko
 
Started by condorhero, Yesterday, 09:28 PM
0 responses
13 views
0 likes
Last Post condorhero  
Started by MaraAnkh, Yesterday, 08:44 PM
0 responses
15 views
0 likes
Last Post MaraAnkh  
Started by wooofad, Yesterday, 05:38 PM
0 responses
10 views
0 likes
Last Post wooofad
by wooofad
 
Working...
X