• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtest apple

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

    backtest apple

    Hi there,
    I am new to NT and I am having trouble getting results backtesting. I am connected to IB and trying to Backtest AAPL with the samplemacdcrossover strategy. I set it to go back one month, but when its finished all the results are 0.00% like nothing happened. I have tried by default qty and by strategy.
    Which brings me to another question. Where do you change the default Qty?

    Thanks in advance for the help.

    #2
    Are you connected to a live IB trading account or just a sim one? The sim one does not provide historical data which is required to run a backtest.
    JoshNinjaTrader Customer Service

    Comment


      #3
      No, I am running sim.

      I have strategies running in sim though. One that I made through a tutorial (3 EMAs) and the samplemacross. Nothing seems to be happenning. shouldn't I be able to run a sample strategy and see sample results while connected to IB during trading hours?

      Sorry for such basic questions I am just trying to get the hang of NT

      Comment


        #4
        beezerlm,

        NinjaTrader will not have enough data to run any meaningful backtest. You will need to get a data provider that supplies historical data. If you just want to play around I suggest the Yahoo connection which will get you free historical daily data for equities.
        JoshNinjaTrader Customer Service

        Comment


          #5
          Hi Josh,
          I think you misunderstood my last post. I am also trying to run a real time strategy in NT (sim) but nothing is happening ( no hypothetical trades taking place ).

          Comment


            #6
            For a strategy to begin running you need at least 20 bars. Please check your Control Center logs for any runtime errors.
            JoshNinjaTrader Customer Service

            Comment


              #7
              Thanks Josh,
              Where do you define "defaultquantity" ?

              Comment


                #8
                Hi there, you can set DefaultQuantity in the backtest information box. I've attached a picture showing what I mean.
                Attached Files
                AustinNinjaTrader Customer Service

                Comment


                  #9
                  Thanks, don't know how I managed to miss it.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by reks13, Today, 01:52 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Started by tonynt, Today, 02:48 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post tonynt
                  by tonynt
                   
                  Started by cls71, Today, 02:11 AM
                  2 responses
                  11 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Started by RB104, Today, 01:52 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post RB104
                  by RB104
                   
                  Started by raffu, Today, 01:35 AM
                  1 response
                  12 views
                  0 likes
                  Last Post raffu
                  by raffu
                   
                  Working...
                  X