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 rocketman7, Today, 01:00 AM
      0 responses
      1 view
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      27 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 04-23-2024, 09:53 PM
      2 responses
      74 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      193 views
      0 likes
      Last Post Hasadafa  
      Working...
      X