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 nandhumca, Yesterday, 03:41 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by The_Sec, Yesterday, 03:37 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by vecnopus, Today, 06:15 AM
      0 responses
      1 view
      0 likes
      Last Post vecnopus  
      Started by Aviram Y, Today, 05:29 AM
      0 responses
      5 views
      0 likes
      Last Post Aviram Y  
      Started by quantismo, 04-17-2024, 05:13 PM
      3 responses
      27 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X