Announcement

Collapse
No announcement yet.

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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X