1. There is a BuySellPressure indicator, but I can't get it to work even when connected to a live data feed (IQ Feed) so I am programming my own. I currently am setting up 2 indicators. There is code for one below.
2. I can see my indicator on the chart, but it is incorrect. When the bar competes, my bid equals total volume and my ask volume equals total volume. Total volume should = ask vol + bid vol for the bar.
3. I am using the simulator account
Here is the code for just the bid volume indicator. I am using calculatonbarclose = false;
private DataSeries dsBar;
dsBarBuyPres = new DataSeries(this);
if (GetCurrentAsk() == Close[0])
{
dsBarBuyPres[0] = VOL()[0] - dsBarBuyPres[0];
BarBuy.Set(dsBarBuyPres[0]);
}
(a) Why does it seem the ask price is always = to the Close?
(b) Can I get the bid and ask price when running using the simulator?
(c) Can I get the bid and ask price when running using an external data feed connection (a program that feeds in the ticks)?
(d) Can I get the bid and ask price using historical data?
I would really like a BuySellPressure indicator that works in some soft of testing mode. Any help will be appreciated.

Comment