PlotHAO.Set(((PlotHAO[1]+joeHACindicator3(1)[1])/2));"joeHAOindicator.cs
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
indicator fails to compile with code 'CS103 - variable not declared'
Collapse
X
-
indicator fails to compile with code 'CS103 - variable not declared'
the attached indicator fails to compile with error 'the name 'PlotHAO' does not exist in the current context' and code 'CS103 - variable not declared'. I have unsuccessfully spent hours trying in various ways to research and fix the error. backups I made within NT failed to work with an error something like 'restoration would corrupt the system'. Any help will be much appreciated. the file for the indicator code is attached. the offending line of code at line 47 is "
PlotHAO.Set(((PlotHAO[1]+joeHACindicator3(1)[1])/2));"joeHAOindicator.cs
Tags: None
-
Problem resolved by myself
I failed to notice in the error message that the error was occurring in a different indicator than the indicator being compiled. That is, the code in another newly created indicator that is almost identical in name and code to the one being compiled was the indicator with the problem. everything works ok now that I have gone to the new indicator and fixed the problem there.
-
Originally posted by joemiller View PostI failed to notice in the error message that the error was occurring in a different indicator than the indicator being compiled. That is, the code in another newly created indicator that is almost identical in name and code to the one being compiled was the indicator with the problem. everything works ok now that I have gone to the new indicator and fixed the problem there.
From what I saw in NT8 pre-video - this will NOT be case (UNLESS of course, the code depends on the bad code, independent scripts that fail to compile won't matter)...
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rocketman7, Today, 02:12 AM
|
1 response
15 views
0 likes
|
Last Post Today, 07:38 AM | ||
Started by briansaul, Today, 05:31 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:36 AM | ||
Started by PaulMohn, Today, 03:49 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:36 AM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
6 responses
106 views
1 like
|
Last Post Today, 07:21 AM | ||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
6 responses
26 views
0 likes
|
Last Post Today, 07:18 AM |
Comment