Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to modify System Type ? DefaultFillType.cs

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

    how to modify System Type ? DefaultFillType.cs

    In my stategy I have added a reference to Linqbridge.dll. This is a library that alows for LINQ expressions in NET 2.0.

    The problem is I now have to modify and recompile SampleAtmStrategy.cs and DefaultFillType.cs because these 2 examples have ambigious symbols then:

    It says in both .cs files

    'Action' is an ambiguous reference between 'System.Action' and 'NinjaTrader.Cbi.Action'


    The fix would be pretty easy, replace "Action" with "Cbi.Action" in all places, but the editor will not allow this

    How can I proceed?

    Best regards
    Andreas

    P.S. It would be more complicated to change namespace in Linqbridge.dll because it is called from all over the place also from Net code.

    #2
    Have you tried skipping the editor? Making the changes outside of Ninja?

    Mike

    Comment


      #3
      Hi Mike,

      I havn't tried outside the editor. But some time ago I did something similar ( I deleted a sample .cs) and at the next open of NT the NT installation program would jump in and try to fix the "broken" installation. Was a mess because the original setup files (downloaded) where not found on disk and a re-download put the files in the wrong location.

      For the moment I can't close NT because I have several stategies and several positions open...


      greetings
      Andreas

      Comment


        #4
        Yes I've experienced that as well, but I think it is only for missing files not altered ones. Make a backup first!

        Mike

        Comment


          #5
          some clarification from the NT staff is welcome!


          Andreas

          (paid NT license)

          Comment


            #6
            zweistein,

            You cannot modify system files. Unfortunately you have introduced something that produces conflicts and we cannot offer you much support for this.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              ok and thank you!

              Actually Linqbridge needs the VC# 2008 compiler. The NT built in compiler will not do it.

              So there can't be a solution to my request.

              So to use Linqbridge all the code must sit in an assembly (==dll) that is compiled withVC#2008. From NT stratgies this assembly can then be called.

              Comment


                #8
                zweistein,

                We will also amend these files to remove ambiguity with System.Action in a future version. Thank you for bringing this to our attention.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                569 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                330 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                548 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                548 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X