Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Newbie Question about orders not getting filled

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

    Newbie Question about orders not getting filled

    Hi,

    I am just getting started but have done lots of reading here and cannot work out how to regularly get NT set up to trade.

    I’m using the simulator mode and just running the SampleMACrossOver script just to get things going.
    However, I cannot get trades to execute each time I start the NT software up.

    The steps I take are:

    1)Connect to the simulator
    2)Open a new chart with the SP500 at a single tick timeframe (for speed of execution if nothing else).
    3)Hit the strategy button on the chart and add the above script
    4)Watch it run (waiting for 30 seconds to let it get started) and expect to see orders being placed and filled

    But I don’t see any orders placed even when I make the MA cross by changing the trend of the market.

    Stuff I’ve tried:
    1)I thought perhaps it might be that I need to activate the chart trader...but I can’t activate it (it’s greyed out) and I presume that this isn’t the problem anyway.
    2)The Default Quantity is set to ‘strategy’ so I changed this to by default quantity and set it to 10 – no effect
    3)I noted in the logs that there was no start price for the SP500 saved so I entered one. This got the chart ticking along nicely but no trades.

    Then I just tried one of the instruments in the default instrument list – the es 03-10 and orders started being filled.

    Is it something as simple like I am trying to trade an index?

    I then thought I’d try adding SPY (SP500 ETF) to the instrument list as it wasn’t there. I added a start price and chose default as the exchange. This worked!! I managed to get the sample scripts and some custom stuff that I’ve written to submit trades. But...

    I keep getting the error “Stratregy ‘sampleMACrossOver’ submitted an order that generated the following error ‘order rejected’. Strategy has sent cancel requests, attempted to close the position and terminate itself.” This was followed up by an error telling me I’d exceeded available account equity. I was using the uneditable sample MA crossover strategy.

    I would be much obliged if someone on the board can help me to:

    1)Let me know what I’m doing wrong with the SP500 instrument – or tell my I’m being an idiot for trading an index ;-)
    2)Somehow get orders to fill correctly.

    Thanks very much in advance.
    Cromm

    #2
    Hello,

    When you say this:
    1)Connect to the simulator
    Are you going to File>connect>Simulated Data feed? If so, that is not for automated strategies. It is for testing ATMs only.

    Or are you connecting to something else? You must connect to one of these data providers:
    DenNinjaTrader Customer Service

    Comment


      #3
      Hi Ben,
      Thanks for coming back to me...at the weekend too - great service!

      You're right, I was using File>connect>Simulated Data feed.

      I'm pretty confused now though. I've read most of the help file and watched the videos and in the help file (Account Connections > Simulated Data Feed Connection)

      And it says that I can use this connection for:

      • Offline simulated training and practice of NinjaTrader
      • Offline testing of strategies
      • Offline testing of trade automation using NinjaScript strategies or the NinjaTrader automatic trading interface

      The strategy I'm testing is a NinjaScript strategy?...Or am I getting some of the fundamental premises of using NT wrong?

      Thanks v much for any help you can give me,
      Cromm

      Comment


        #4
        Hello,

        My last reply was probably confusing. You can use this feed for strategies, but it providers no historical data. Most strategies (other than ATMs) using some historical data calculate stuff. If your strategy does not use historical data at all, then it will work with these strategies.
        DenNinjaTrader Customer Service

        Comment


          #5
          OK thanks. I'm just trying to get orders to fill and then I'll work on getting historical data to test on.

          Can you help with the questions in my original post re order filling?

          Cheers,
          Cromm

          Comment


            #6
            Hello Cromm,

            Thank you for your reply.

            Per the order fills, please send us a note to Suppot [AT] NinjaTrader [DOT] com.

            In the message, please include the following:
            1.) A link to this forum thread.

            2.) Your log file from a date these rejections occured.
            You will find the log file here: My Documents > NinjaTrader 6.5 > Log > log.YYYYMMDD.txt
            KyleNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            639 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            366 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            107 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            569 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            572 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X