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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X