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

Strategy just for Backtest

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

    Strategy just for Backtest

    Hello,
    I´m trying to create a very very simple strategy just to use it in Backtesting with the Strategy Analyzer, but it doesn't give any results. The only things I'm editing in the strategy builder are the stop loss and profit target total possitions. I don't need no conditions or anything else, maybe that´s the problem.

    The Sample MA works fine in the Backtest, but the Sample ATM doesn´t. I have loaded the Historical data I need just in case, but nothing happens.
    Any idea of what I should do?

    Thank you very much

    #2
    Hello Belen, thanks for your post, and welcome to the NinjaTrader forum. I will be happy to help out.

    Can you give details and screen shots of the strategy you made in the builder?

    The SampleATMStrategy will not work in a backtest as the ATM Strategy Methods are meant for real-time only.

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello,
      Thanks for your quick response. The only thig I'm editing in my Strategy is the Stop and Target as you can see in this screenshot. I didn't touch anything else and it let me Save it with no problem.




      Comment


        #4
        Hello Belen, thanks for your reply.

        The strategy needs to submit an entry order for the stop and target orders to be applied. If there is no entry order those protective orders will not be used. In order to backtest this, define an entry order condition and submit an order in the Actions list. For a real-time trading solution, consider using ATM Strategies. We have a few examples of using the condition builder here.

        Please let me know if I can assist any further.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Ok. I'll try
          Thank you very much.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jclose, Today, 09:37 PM
          0 responses
          4 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,413 views
          0 likes
          Last Post Traderontheroad  
          Started by firefoxforum12, Today, 08:53 PM
          0 responses
          10 views
          0 likes
          Last Post firefoxforum12  
          Started by stafe, Today, 08:34 PM
          0 responses
          10 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by sastrades, 01-31-2024, 10:19 PM
          11 responses
          169 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X