In the following example, a request for timesales returns a null handle, but the request for daily history returns a valid handle.
TimeSalesFilter f;
f.sSymbol =S2B(ax_symbol);
f.lNumDays=1;
f.bQuotes=1;
f.bTrades=1;
f.bFilterPrice=0;
f.bFilterVolume=0;
f.bFilterTradeExchanges=0;
f.bFilterQuoteExchanges=0;
f.dMinPrice=0;
f.dMaxPrice=0;
f.lVolume=0;
f.sQuoteExchangesList=S2B("");
f.sTradeExchangesList=S2B("");
m_hHistory2 = (*m_piHooks)->GetRequestTimeSales(&f);
m_hHistory = (*m_piHooks)->GetRequestHistory(S2B(ax_symbol), "D", btBARS,2,-1,-1);
TimeSalesFilter f;
f.sSymbol =S2B(ax_symbol);
f.lNumDays=1;
f.bQuotes=1;
f.bTrades=1;
f.bFilterPrice=0;
f.bFilterVolume=0;
f.bFilterTradeExchanges=0;
f.bFilterQuoteExchanges=0;
f.dMinPrice=0;
f.dMaxPrice=0;
f.lVolume=0;
f.sQuoteExchangesList=S2B("");
f.sTradeExchangesList=S2B("");
m_hHistory2 = (*m_piHooks)->GetRequestTimeSales(&f);
m_hHistory = (*m_piHooks)->GetRequestHistory(S2B(ax_symbol), "D", btBARS,2,-1,-1);
Comment