Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How is defined "point"?

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

    #16
    Great! It works!

    Now I would like to add StopLoss and ProfitTarget, and to track last Instrument ordered in the same time.

    I thought I could use Performance.AllTrades[Count-1].Entry.Instrument, but actually I need the index of the Instrument in BarsArray, because other methods work with this index. And I would like to track last instrument ordered, no matter if the order is executed and no matter if I have trade completed.

    Is there any way to have access to last order and its instrument, and then to the instrument's index in BarsArray?

    Comment


      #17
      This example shows you to how to perform events when an order is updated or executed: http://www.ninjatrader.com/support/f...ead.php?t=7499

      Depending on what types of exits you're trying to do you could always tie exits to the entry by using signal names.

      Just match the entry signal name to the from entry signal name.
      LanceNinjaTrader Customer Service

      Comment


        #18
        Thank you Lance!

        Can I automate backtest with one strategy and different parameters?

        For example if I have two parameters with 10 values each, these are 100 combinations and I would like to test them automatically with some script. In the end I would like output with some statistics for each combination - cumulative profit, average trade, etc.

        Can I do it with NinjaTrader?

        Comment


          #19
          Yeah you can do this with the Optimization feature of the Strategy Analyzer.



          Depending on how far back you're testing 100 combinations shouldn't take too long (but this will vary greatly based on the strategy)

          If you find that it does become very time consuming you might look into using the GA optimization:
          LanceNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          15 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          229 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Started by TradingLoss, 04-21-2024, 04:32 PM
          4 responses
          44 views
          2 likes
          Last Post TradingLoss  
          Started by cre8able, 04-17-2024, 04:16 PM
          6 responses
          56 views
          0 likes
          Last Post cre8able  
          Working...
          X