Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not Making Orders

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

    Strategy Not Making Orders

    My script appears to be working correctly, but it's not making any orders.
    Log says: "Enabling NinjaScript strategy "strategy": On starting a real-time strategy - StartBehavio=WaitUntilFlat EntryHandling=All entries EntreisPerDirection=1 StopTargetHandling=By strategy position ErrorH.
    Last edited by heavy; 04-22-2020, 10:20 PM.

    #2
    Here is the script
    Attached Files

    Comment


      #3
      Hi heavy, thanks for your question.

      I tested the script and I get historical trades on June ES data. If this is a modification of the SampleMACrossover script that would be the prime example to compare the changes to. See here for the help guide page on debugging NinjaScript code as well:



      Please let me know if I can assist any further.

      Comment


        #4
        Strategy just received the following order errors:

        a. 'order rejected' Strategy has sent cancel requests, attempted to close the position and terminated itself

        b. insufficient margin. Available margin: usd 500. Used margin: usd0 total portfolio margin including this order: usd1000 this order increases margin by usd1000 affected Order sellshort 1 market

        I have attached the updated script.
        Attached Files
        Last edited by heavy; 04-26-2020, 04:05 PM.

        Comment


          #5
          Hi heavy, thanks for your reply.

          If you are running into a margin error in the Sim101 account you will need to reset it. Please take these steps to reset your sim101 account and it should work fine:
          • From the NinjaTrader Control Center window select the Accounts tab
          • Right click on your simulation account and select 'Edit Account'
          • Press the "Reset" button
          Please let me know if I can assist any further.

          Comment


            #6
            The margin error was on my live ninjatrader brokerage account, not the sim101 acct.

            Comment


              #7
              Hello Heavy,

              Thank you for your note.

              For more information on your account, margin errors, and required funds, You'll need to contact your broker directly.

              If your account is with NinjaTrader you can reach them directly with the information below:
              • brokeragesupport(at)ninjatrader(dot)com
              • Toll Free: 1.800.496.1683


              Thank you for your patience.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              48 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              66 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X