Hi,
I have a problem when I try to make a History Request. The program return that all of the Bars are available but when I use the method getBar it returns null. what can I do??.
I am programming in Java language.
Thanks in advance.
CODE:
int lhandle = m_app.get_RequestHistory("TEF-MAC","D",1,100,-1,-1);
System.out.println(" Handle "+lhandle);
while (m_app.get_IsHistoryReady(lhandle) != 0) {
System.out.println(" HISTORY REQUEST " + m_app.get_IsHistoryReady(lhandle));
Thread.sleep(5000);
}
// Wait 5 seconds for eSignal to finish loading.
int lNumBars = m_app.get_GetNumBars(lhandle);
System.out.println(" Numero de Barras "+lNumBars);
for (int i= 0; i <lNumBars ;i++ ) {
BarData data = (BarData)m_app.get_GetBar(lhandle,i);
System.out.println(" BARRA "+data.dtTime+data.dClose);
}
I have a problem when I try to make a History Request. The program return that all of the Bars are available but when I use the method getBar it returns null. what can I do??.
I am programming in Java language.
Thanks in advance.
CODE:
int lhandle = m_app.get_RequestHistory("TEF-MAC","D",1,100,-1,-1);
System.out.println(" Handle "+lhandle);
while (m_app.get_IsHistoryReady(lhandle) != 0) {
System.out.println(" HISTORY REQUEST " + m_app.get_IsHistoryReady(lhandle));
Thread.sleep(5000);
}
// Wait 5 seconds for eSignal to finish loading.
int lNumBars = m_app.get_GetNumBars(lhandle);
System.out.println(" Numero de Barras "+lNumBars);
for (int i= 0; i <lNumBars ;i++ ) {
BarData data = (BarData)m_app.get_GetBar(lhandle,i);
System.out.println(" BARRA "+data.dtTime+data.dClose);
}
Comment