• 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

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.
    http://ninjatrader.com/support/helpG...-us/export.htm
    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.
        https://drive.google.com/file/d/1H8c...w?usp=drivesdk
        Last edited by NinjaTrader_ChelseaB; 06-21-2018, 06: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.
              https://ninjatrader.com/support/foru...776#post528776
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by aligator, Today, 01:49 PM
              0 responses
              2 views
              0 likes
              Last Post aligator  
              Started by KINGKODA, Today, 12:08 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by zulok, Today, 12:54 PM
              3 responses
              5 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by RadarTradar, 01-04-2020, 10:02 AM
              12 responses
              129 views
              0 likes
              Last Post Eric M.
              by Eric M.
               
              Started by [email protected], Today, 10:54 AM
              3 responses
              19 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Working...
              X