Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've known for some time about OnMarketData and how it processes every tick that comes in but never connected the dots between it and CalculateOnBarClose = false.
I may say some things that aren't technically accurate because I don't completely know everything that goes on under the hood of NT. However, I will make statements based on observation and testing. I use Chart Trader and I've noticed many times where I have a limit order in place and it is filled without price going through it. I also realize that NT does not update the chart every tick because of the increased resource utilization that is caused by updating every tick. In fact there is a lower limit that prevents you from displaying every tick on the chart. Take a look at the "Display update interval (sec)" property that can be found in the Chart Properties. That property can not be set to 0. What that means is that a bar range may not show the true range of a bar. It could be off by a tick or 2. That is why limit orders can be filled without price going through. I think this situation only applies to OnBarUpdate and CalculateOnBarClose = false. I say that because using OnMarketData(MarketDataEventArgs e) in my programming I can see e.Price changing when there is no price change on the chart. Put this code into an indicator then put it on a chart and you will see what I mean.
Can you help answer these questions from other members on NexusFi?
I don't understand. why does price have to go through the limit? it depends where your order is in the queue. just think, someone is always selling at the high, and this is certainly not a market order.
I also don't believe that range bars are off 1 or 2 ticks.
Someone else needs to answer his question about the limit order. What I describe what I've always been told by those who are theoretically in the know. I may be totally wrong but my observations support my statement. I just had an occurrence of just what I describe a few minutes ago. Price on my 1 minute chart merely touched the limit order but e.Price did go through and filled. I'm including the indicator I described in my previous post. Put it on a chart and you will see what I mean about the chart price versus e.Price.
Elite Membership required to download: OnMarketDataDemo.zip
Someone else needs to answer his question about the limit order. What I describe what I've always been told by those who are theoretically in the know. I may be totally wrong but my observations support my statement. I just had an occurrence of just what I describe a few minutes ago. Price on my 1 minute chart merely touched the limit order but e.Price did go through and filled. I'm including the indicator I described in my previous post. Put it on a chart and you will see what I mean about the chart price versus e.Price.
sorry for the confusion, but this was not a question. the futures markets operate that way, with 100% certainty.
what you're describing is more like a market maker market, like nasdaq. here, you normally can only sell at the bid or buy at the offer. in exchange, you won't have to pay a commission if you went through a market maker. and sometimes even there you can sell at the offer, but depending on the market maker again.
sorry for the confusion, but this was not a question. the futures markets operate that way, with 100% certainty.
what you're describing is more like a market maker market, like nasdaq. here, you normally can only sell at the bid or buy at the offer. in exchange, you won't have to pay a commission if you went through a market maker. and sometimes even there you can sell at the offer, but depending on the market maker again.
Thanks for the clarification. Regardless, my point about NT still remains. There is a difference between e.Price and price you see on a chart. My problem is that I really don't know what the impact is other than display. If it's a display issue then I expect to see discrepancies between bars produced in a live market versus bars produced from historic data.
Example using a 1 minute chart.
Using the indicator I attached in a previous post, I've seen many times when e.Price exceeds the limit of the 1 minute bar as displayed on the chart. So, that 1 minute bar has a range on the live chart of 5 ticks when based on my indicator the 1 minute bar should really be 6 ticks. So, if I reload historic data, that same bar that was 5 ticks on a live chart should now show 6 ticks but I've never seen that. Someone please show me the error of my ways.
Thanks for the clarification. Regardless, my point about NT still remains. There is a difference between e.Price and price you see on a chart. My problem is that I really don't know what the impact is other than display. If it's a display issue then I expect to see discrepancies between bars produced in a live market versus bars produced from historic data.
Example using a 1 minute chart.
Using the indicator I attached in a previous post, I've seen many times when e.Price exceeds the limit of the 1 minute bar as displayed on the chart. So, that 1 minute bar has a range on the live chart of 5 ticks when based on my indicator the 1 minute bar should really be 6 ticks. So, if I reload historic data, that same bar that was 5 ticks on a live chart should now show 6 ticks but I've never seen that. Someone please show me the error of my ways.
Are you forgetting OnMarketData provides Bid, Ask and Last price changes? i.e. some of the prices will not be for actual trades.