Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Control Center Log
Collapse
X
-
Originally 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
-
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
-
-
Originally posted by alexstox View PostIn strategy it is not blank. But it blank "" in indicator variable.
Comment
-
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
-
Originally 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 bortz, 11-06-2023, 08:04 AM
|
47 responses
1,611 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
9 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
19 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
6 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
22 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment