The values Market Analyzer displays for AskPrice & BidPrice are what I want to work with. I want to display Spread as AskPrice-BidPrice. But I find problems trying to access these values in an indicator.
So far I have found GetCurrentAsk() and MarketData.Ask.Price which if I put either of these in an indicator seem to give the same value as Market Analyzer's AskPrice (although a bit delayed).
But when I use GetCurrentBid() or MarketData.Bid.Price these both seem to be tied to the same value as displayed by AskPrice!
The result is that attempts to show Spread result in 0!
Is there a reliable way to access the value in code, that's being displayed as BidPrice?
I am using the Yahoo connection, perhaps this problem only occurs with that?
Comment