Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLong(), EnterShort() orders not executing

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

    EnterLong(), EnterShort() orders not executing

    Hello,

    I created a blank strategy script with a simple EnterLong() / EnterShort order and never buy or sell a position.

    If I put EnterLongLimit() / EnterShortLimit it works well.

    Any help?

    Thank you.

    Regards,

    #2
    Hello Kediux,

    Are there any error messages appearing in the Log tab of the Control Center or in the NinjaScript Output window?

    Can you post the script so I may test this?

    To export a NinjaTrader 8 NinjaScript do the following:
    1. Click Tools -> Export -> NinjaScript...
    2. Click the 'add' link -> check the box(es) for the script(s) you want to include
    3. Click the 'Export' button
    4. Enter a unique name for the file in the value for 'File name:'
    5. Choose a save location -> click Save
    6. Click OK to clear the export location message

    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>


    Below is a link to the help guide on Exporting NinjaScripts.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      On Hold

      I attach the file.
      Attached Files

      Comment


        #4
        selli67

        Hello Kediux,

        I am finding this script does place an order after the 20th bar. It will also place an order at the start of a new session after the exit on session close closes the position.

        Below is a link to a video that demonstrates.
        Last edited by NinjaTrader_ChelseaB; 06-21-2018, 07:05 AM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Will test it today again after work.

          Thank you for the demostration.

          Regards,

          Comment


            #6
            Hello,

            It doesn't work in my platform, strategy is always in yellow.

            Why?

            Comment


              #7
              Hello Kediux,

              The yellow means that the strategy is working and has placed an order in historical data and has a historical position. Once the historical position is closed, the strategy will turn green on the strategies tab of the Control Center.

              This also shows that the strategy has placed an order in the historical data.

              Below is a link to a forum post where I've discussed a yellow strategy.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              64 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              40 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              166 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              101 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              162 views
              2 likes
              Last Post CaptainJack  
              Working...
              X