Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Control Center Log
Collapse
X
-
This is not the case of the problem. I don't remember where I get it from, I think you met that code earlier in samplesOriginally posted by koganam View PostSo you are saying that the indicator is not even making reference to the instruments, but the compiler says that it is making incorrect references?
Code:[Description("myInstrum2")] [GridCategory("Parameters")] public string MyInstrum2 { get { // symbol2 defaults to secondary chart data series if ((myInstrum2 == "") && (ChartControl != null) && (Instruments != null)) for(int i=0; i<ChartControl.BarsArray.Length; i++) if (ChartControl.BarsArray[i].Instrument.FullName != Instruments[0].FullName) { myInstrum2 = ChartControl.BarsArray[i].Instrument.FullName; break; } return myInstrum2; } set { myInstrum2=value /*= value.ToUpper()*/; } //ToUpper used for any symbols to UPPER SYMBOLS
Comment
-
Reading only that code, it would appear then that you have applied the indicator to something while the myInstrum2 input is not blank. Is that right?Originally posted by alexstox View PostThis is not the case of the problem. I don't remember where I get it from, I think you met that code earlier in samples
Code:[Description("myInstrum2")] [GridCategory("Parameters")] public string MyInstrum2 { get { // symbol2 defaults to secondary chart data series if ((myInstrum2 == "") && (ChartControl != null) && (Instruments != null)) for(int i=0; i<ChartControl.BarsArray.Length; i++) if (ChartControl.BarsArray[i].Instrument.FullName != Instruments[0].FullName) { myInstrum2 = ChartControl.BarsArray[i].Instrument.FullName; break; } return myInstrum2; } set { myInstrum2=value /*= value.ToUpper()*/; } //ToUpper used for any symbols to UPPER SYMBOLS
Comment
-
-
Hm. Looks like you must be passing the parameter somehow. At this stage, I shall have to defer to the official NT folks, because I cannot see how this one will be solved without seeing the actual code, and I do not expect or want to see that code, as we do not have any formal legal relationship.Originally posted by alexstox View PostIn strategy it is not blank. But it blank "" in indicator variable.
Comment
-
So, you didn't see that code in samples? Please ask guys from support, because this example will save your time and code lines =)))Originally posted by koganam View PostHm. Looks like you must be passing the parameter somehow. At this stage, I shall have to defer to the official NT folks, because I cannot see how this one will be solved without seeing the actual code, and I do not expect or want to see that code, as we do not have any formal legal relationship.
Well, there is nothing to look at, except those I wrote. Just add string variable in Variable
private string myInstrum1 = "";
Comment
-
Bertrand, I solved issue in by using koganam advise hereOriginally posted by NinjaTrader_Bertrand View Postalexstox, please send us a simplified example that would reproducibly trigger the log error message so that could be reviewed by your team. Likely you will need to isolate step by step which exact call triggers it. Thanks.
Further discussion was about how to correctly remove added empty instrument and will not get errors again
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
56 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
37 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
18 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
49 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment