View Full Version : Bid/Ask spread indicator updating even if no trades take place
RedDuke
04-20-2007, 02:41 AM
I am trying to create an indicator that will display spread between bid and ask and display it on the chart. Method OnBarUpdate will only be triggered if there is an actual trade. But there are many instances when bid/ask spread will change many times between the trades for some instruments. Is there any method that will be triggered if anything changes in order book?
Thanks,
redduke
NinjaTrader_Ray
04-20-2007, 03:02 AM
Hi RedDuke,
Yes but this is outside of what we provide technical support for at this time. I can point you in a direction. Take a look at the VolumeProfile indicator source code to get an idea of what can be done.
Ray
RedDuke
04-22-2007, 02:49 PM
Hi Ray,
I took a look at volume profile, and it also seems to be only updated when the price ticks, and not when info changes in DOM. I realize that you do not provide support for custom development, but I would really appreciate if you just point me to an indicator or method which is being trigerred whenever something changes in DOM.
Thanks,
redduke
NinjaTrader_Dierk
04-22-2007, 05:37 PM
Sorry, this is not supported at that time.
nvladik
05-22-2007, 11:42 AM
Hi Dierk,
Could you please clarify on Not Supported?
Is it possible to access MarketAnyliser data through an indicator?
Thanks,
nVladik
NinjaTrader_Dierk
05-22-2007, 11:44 AM
>> Is it possible to access MarketAnyliser data through an indicator?
Sorry, not supported at this time.
NinjaTrader_Ray
05-22-2007, 11:51 AM
"Not supported" in this case means that we do not provide support for the functionality discussed.
nvladik
05-22-2007, 11:56 AM
Thanks. Will try to figure it out. :)
shawnj
06-16-2007, 01:09 PM
So basically we cannot trigger any code from changes in the bid price(or size) or changes in the ask price(or size)?
We can only trigger code from trade prices?
I would like to set up some type of alert that will sound if the bidask spread exceeds a certain amount. So is the best we can do here is measure the spread at each trade price event?
NinjaTrader_Ray
06-16-2007, 02:07 PM
This will be supported by fall time frame.
AgeKay
05-12-2008, 03:29 PM
I am trying to create an indicator that will display spread between bid and ask and display it on the chart. Method OnBarUpdate will only be triggered if there is an actual trade. But there are many instances when bid/ask spread will change many times between the trades for some instruments. Is there any method that will be triggered if anything changes in order book?
Thanks,
redduke
Please find attached an indicator that displays the current best bid/ask prices whenever it changes in the order book.