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 JonesJoker, 04-22-2024, 12:23 PM
|
8 responses
41 views
0 likes
|
Last Post
by JonesJoker
Today, 06:47 AM
|
||
Started by timko, Today, 06:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by timko
Today, 06:45 AM
|
||
Started by Waxavi, 04-19-2024, 02:10 AM
|
2 responses
39 views
0 likes
|
Last Post
by poeds
Today, 06:37 AM
|
||
Started by chbruno, Yesterday, 04:10 PM
|
1 response
44 views
0 likes
|
Last Post Today, 06:36 AM | ||
Started by Max238, Today, 01:28 AM
|
1 response
25 views
0 likes
|
Last Post
by CactusMan
Today, 06:18 AM
|
Comment