Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT as a Black Box Development System

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

    #16
    Originally posted by roonius View Post
    Attached is a sample Visual Studio Solution which can be used to create custom indicators and/or strategies, compiled into dll which can be dropped into bin/Custom folder
    Thanks a lot roonius! You rock!

    My question is: Is there any way to update/reload my custom dll when Ninja is still running? Right now I have to close and restart Ninja every time after I change/compile my code in order to replace the dll in bin\Custom folder.

    Thanks,
    Boo.

    Comment


      #17
      Originally posted by BooDoo View Post
      Thanks a lot roonius! You rock!

      My question is: Is there any way to update/reload my custom dll when Ninja is still running? Right now I have to close and restart Ninja every time after I change/compile my code in order to replace the dll in bin\Custom folder.

      Thanks,
      Boo.
      I would love to find a way to do that, but unfortunately...
      Maybe somebody else knows...

      Comment


        #18
        Excellent questions and I have to add one more:

        # Does any one know if it is possible to control the backtesting using some form of API (by using an external application )?

        Thanks in advance

        Comment


          #19
          This is my own interface, it is just a spin off of my NTMT application and the necessary libraries are included with NTMT (not free)

          I have done several backtesting tests with this interface and the interesting feature is that you can call it from a simple console app, (outside of the NinjaTrader process)

          bool rv=ninjaserver.Instance.StrategyAnalyzerTestDialog ("LongStrat1",StrategyAnalyzerTestType.btnRunBackTest);
          // BackTestFrom
          // BackTestTo
          // BackTestMode
          ninjaserver.Instance.SetTestParameter("Instrument","FDAX 12-09");
          DateTime from = DateTime.Now.Date.AddDays(-3);
          DateTime to = DateTime.Now.Date.AddDays(-2);
          ninjaserver.Instance.SetTestParameter(
          "BackTestFrom", from.ToString());
          ninjaserver.Instance.SetTestParameter("BackTestTo", to.ToString());
          ninjaserver.Instance.RunTest(ninjaserver.TimeOut);
          object results = ninjaserver.Instance.TestResult("Performance.AllTrades.TradesPerformance.Currency. CumProfit");

          As I see it writing a good documentation and then explaining my interface to others will be too time consuming for me, so I will not give much support here on the forum.

          I hope that the idea behind is clear to you.

          regards
          Andreas
          www.zweisteintrading.eu




          Comment


            #20
            Andreas, your work is amazing.

            I looked at your site and found that you have developed some pretty neat apps!!!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by minotti1, Today, 08:31 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by SmartArtsStudio, 05-15-2021, 10:46 AM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Airwave, Today, 06:02 AM
            2 responses
            19 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by bottakemoney, Today, 12:10 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by JGRtrader, Yesterday, 10:54 PM
            2 responses
            3 views
            0 likes
            Last Post JGRtrader  
            Working...
            X