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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
603 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
349 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
104 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
560 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment