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!
See more
See less

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 Barry Milan, Yesterday, 10:35 PM
                7 responses
                19 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by AttiM, 02-14-2024, 05:20 PM
                10 responses
                179 views
                0 likes
                Last Post jeronymite  
                Started by ghoul, Today, 06:02 PM
                0 responses
                9 views
                0 likes
                Last Post ghoul
                by ghoul
                 
                Started by DanielSanMartin, Yesterday, 02:37 PM
                2 responses
                13 views
                0 likes
                Last Post DanielSanMartin  
                Started by DJ888, 04-16-2024, 06:09 PM
                4 responses
                13 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Working...
                X