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

Orders Ask or Bid

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

    Orders Ask or Bid

    When I submit an order such as limit or stop (using EnterLongLimit or EnterLongStopLimit, for eample) while trading foreX, does the order price refers to the Ask, the Bid or it depends if I'm buying or selling?

    Thanks

    #2
    Hello kiss987,

    Thank you for your post.

    In general, you buy to the ask and sell to the bid. However, you can submit limit and stop orders to levels that are not at the bid or ask. So it depends on whether you are buying or selling, what order type you are using, and where the bid and ask prices are (as Forex has a spread between bid and ask that can be large).

    For example, if you wish to submit an EnterLongLimit() you would want to ensure the limit price is at or below the Bid price level.

    You can use GetCurrentBid() and GetCurrentAsk() in real-time data to get their current values. Follow the links below for more information.

    Comment


      #3
      Thank you for your reply
      .
      I wan to make sure I undersand:
      When I submit a EnterLongStop order with a specific stop value, it means that that the position will be filled when the Ask (and not the bid) will reach that price and when I submit EnterShortStop the position will be filled when the Bid (and not the Ask) will reach that price.

      Correct?

      Comment


        #4
        That is correct.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        601 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        18 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Started by agclub, 04-21-2024, 08:57 PM
        3 responses
        17 views
        0 likes
        Last Post TradingLoss  
        Working...
        X