Thanks
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!
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
NinjaTrader
Orders Ask or Bid
Collapse
X
-
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.- GetCurrentBid(): http://ninjatrader.com/support/helpG...currentbid.htm
- GetCurrentAsk(): http://ninjatrader.com/support/helpG...currentask.htm
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
18 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Comment