Hi,
I am just a starter on E-Signal Desktop API. I wrote a little programm as below
when I call get_RequestHistory () it seams _onBarChanged() and _onBarReceived should fire. But I don't see anything happening. Even I tried with the sample applications like VBTimeSales, MultipleHistoryRequest but its all the same I don't get any data back.
I need to get cracking on this asap. Please help me and let me know if I am missing anything.
symbolInfo info = new symbolInfo();
IESignal.BarData bardata;
if (esignal.IsEntitled == 0)
{
MessageBox.Show("Not entitled");
}
else
{
esignal.ReleaseAllHistory();
esignal.ReleaseAllTimeSales();
info.historyHandle = esignal.get_RequestHistory(textBox2.Text, "1",
IESignal.barType.btBARS, 20, 0, 0);
if(esignal.get_IsHistoryReady(info.historyHandle)= =0)
{
MessageBox.Show("History Not Ready");
}
else
{
bardata = esignal.get_GetBar(info.historyHandle,1);
MessageBox.Show(bardata.dtTime.Year.ToString());
}
}
I am just a starter on E-Signal Desktop API. I wrote a little programm as below
when I call get_RequestHistory () it seams _onBarChanged() and _onBarReceived should fire. But I don't see anything happening. Even I tried with the sample applications like VBTimeSales, MultipleHistoryRequest but its all the same I don't get any data back.
I need to get cracking on this asap. Please help me and let me know if I am missing anything.
symbolInfo info = new symbolInfo();
IESignal.BarData bardata;
if (esignal.IsEntitled == 0)
{
MessageBox.Show("Not entitled");
}
else
{
esignal.ReleaseAllHistory();
esignal.ReleaseAllTimeSales();
info.historyHandle = esignal.get_RequestHistory(textBox2.Text, "1",
IESignal.barType.btBARS, 20, 0, 0);
if(esignal.get_IsHistoryReady(info.historyHandle)= =0)
{
MessageBox.Show("History Not Ready");
}
else
{
bardata = esignal.get_GetBar(info.historyHandle,1);
MessageBox.Show(bardata.dtTime.Year.ToString());
}
}
Comment