Quote:
For loading a chain from a file while live trading, use dataLoad()

JCL,
HAving loaded a custom chain with dataLoad(), I would like to use standard contract() search functions for looking up a desired contract.
However, doing
Quote:
Contracts = (CONTRACT*) dataStr(2,0,0); //with or without typecast
C=contract(CALL,3,priceClose());
print(TO_WINDOW,"n Option price=%f",contractPrice(C));
generates:
Quote:
Error 016: Invalid date 0

Is there a workaround?
Or would it be possible to add handle as input to all contract() functions?