Demo1 works fine, but Demo2 is a non-starter. When I tried to run/evaluate the section "Load Intraday from a database" I get the following:
Undefined function 'setdbprefs' for input arguments of type 'struct'.
Error in getMinuteDataFromDB (line 17)
Running the whole demo at once gives me similar data issues. Any idea how to fix?
Stuart, thanks for your contribution. It Looks to me that this is not able for real live trading because the "reg2" value "res" (of the egcitest) is changing its history with every new datapoint. If for example the res value at Bar 8 is -.9 for bar 7 the res value might be +0.8 for bar 7 at bar 20. Do you know a solution for this issue?