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
Close different from Bid
Collapse
X
-
Close different from Bid
While trading forex I print the Close[0], ask and bid values (by the GetCurrentBid and GetCurrentAsk methods). To my surprise, the Close[0] value was different from both the ask and the bid values. I thought the Close[0] should be equal to the current bid value. Can you please explain me the difference between the Close[0] and bid.
ThanksTags: None
-
Hello,
I have not seen this occur yet using FXCM and testing on a $EURUSD 1 minute chart.
So that we may investigate this further can you provide a snippet of your code that you are using to determine that the Close is different the the Bid price. Also please provide what instrument you are using to reproduce this.Cody B.NinjaTrader Customer Service
Comment
-
I have attached a simple strategy which was run for a short while on 10 range bid chart on EURNZD and its output file. In the output file you can see that the close is different from the bid.
ThanksAttached Files
Comment
-
Hello kiss987,
Thank you for your response.
It is possible for the close price to update outside the Bid or Ask or in between both the Bid and Ask. Close is the last traded price, where as Bid and Ask are the price of the last traded Bid or Ask Level. Trades can still occur outside the Bid or Ask.
Comment
-
Hello kiss987,
Thank you for your response.
A simple way to think of it is there only a certain number that can be bought at the current Ask or sold to the current Bid. If you needed to buy or sell more you would need to do so at a different price level if your trade occurred at that different price from the current Bid or Ask it would be the Last price level.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,288 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
Comment