Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I fix this ambiguous reference error?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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)

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X