Does anyone know if this is normal behaviour? The futures expiry dates that IBController reads are sometimes different than those shown in the app itself
Thank you
//read tickers IB format
#include <TickersIB.afl> // var: tib
//start interface
ibc = GetTradingInterface("IB");
//if connected read data
if ( ibc.IsConnected() )
{
ibc.sleep(1000); //need to wait for TWS otherwise doesn't read anything
Expiry = ibc.GetPositionInfo( tib, "Expiry");
}
Filter = Status( "lastbarinrange" );
AddColumn(Expiry,"Expiry",1.0);