Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Identifying which Indicator?
Collapse
X
-
Identifying which Indicator?
I have an indicator which I am using in 3 other indictors on a particular chart. I am trouble shooting and using Print within the indicator which is in the other 3 as well. When I Print I get 4 results to the output screen as expected, the original one, and then the 3 indicators its coming from. The odd part is I am getting different results from one of the Prints which makes no sense. I am trying to identify which indicator the incorrect print is coming from. Is there a way in my print statement to identify which print each line is coming from? I tried to use this.tostring() but it returns the same root indicator for each print and does not differentiateLast edited by ErikY; 07-14-2021, 11:32 AM.Tags: None
-
Hello ErikY,
I would suggest making a string user input, when you apply the indicator you can enter something unique for each instance. The print could then use that as part of the print to show which indicator it came from.
I look forward to being of further assistance.Code:public string Id {get;set;} Print(Id + " " + Close[0]);
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
57 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
78 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
39 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
101 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
61 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment