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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
35 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
12 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
18 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment