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 NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      43 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      47 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X