Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reference variables for indicators
Collapse
X
-
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:
-
If you mean enums you can definitely do it and use a switch to control different logic results.
Leave a comment:
-
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.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by John Bogui, Today, 03:57 AM
|
2 responses
11 views
0 likes
|
Last Post
![]()
by John Bogui
Today, 05:05 AM
|
||
Started by Dolfan, 12-30-2020, 12:04 PM
|
9 responses
52 views
0 likes
|
Last Post
![]()
by timko
Today, 03:43 AM
|
||
Started by condorhero, Yesterday, 09:28 PM
|
0 responses
13 views
0 likes
|
Last Post
![]()
by condorhero
Yesterday, 09:28 PM
|
||
Started by MaraAnkh, Yesterday, 08:44 PM
|
0 responses
15 views
0 likes
|
Last Post
![]()
by MaraAnkh
Yesterday, 08:44 PM
|
||
Started by wooofad, Yesterday, 05:38 PM
|
0 responses
10 views
0 likes
|
Last Post
![]()
by wooofad
Yesterday, 05:38 PM
|
Leave a comment: