Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Incorrect execution direction?

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

    Incorrect execution direction?

    I have the following in conditional statement but get different trade execution. EnterLongLimit(GetCurrentBid()) generates a sell. What am I doing wrong? Thanks.

    if(a>b){
    EnterLong(); //generates a buy order (as expected)
    EnterLongLimit(GetCurrentBid()); //generates a sell order (not expected)
    }
    else if (a<b){
    EnterShort(); //generates a sell order (as expected)
    EnterShortLimit(GetCurrentAsk()); //generates a buy order (not expected)
    }

    #2
    Hello EthanHunt,
    Thanks for your post.

    I was not able to reproduce this behavior. How are you testing this?

    I look forward to your reply.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hello EthanHunt,

      Please write in to PlatformSupport(at)NinjaTrader(dot)com with this item and reference this forum post.

      Additionally, please follow the steps below to manually attach your log and trace files to your email so I may investigate this matter further.
      • Open your NinjaTrader folder under My Documents.
      • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
      • Send the 2 compressed folders as attachments to this email.
      • Once complete, you can delete these compressed folders.

      Thanks in advance; I look forward to resolving this item.
      Josh G.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bmartz, Today, 09:30 AM
      2 responses
      11 views
      0 likes
      Last Post bltdavid  
      Started by f.saeidi, Today, 11:02 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by geotrades1, Today, 10:02 AM
      4 responses
      12 views
      0 likes
      Last Post geotrades1  
      Started by rajendrasubedi2023, Today, 09:50 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by lorem, Today, 09:18 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X