(please see attached screenshot)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I fix this ambiguous reference error?
Collapse
X
-
How do I fix this ambiguous reference error?
I am attempting to import a strategy file that has full source code and do some revisions from our team. So, each time I import it, it gives me this error (Iattached screenshot of the issue) It's error CS0104. What does this mean and how exactly do I fix it before adding anyting to the script? I can't get past this.
(please see attached screenshot)1 PhotoTags: None
-
Hello traderty,
It looks like you have a drawing tool named Position which will cause strategies to have this error due to the conflict in naming. If you don't use the drawing object named Position the most simple fix is to remove that drawing object. You will otherwise need to manually edit strategies anytime the Position property is used and change the use to NinjaTrader.Cbi.Position wherever you use Position in the strategy.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment