How can I execute some code only once at the beginning or at the end of the process of backtesting on a dataset ?
It could be useful for example to make an operation that must be done only once, like cleaning a database or opening a connection to a DB or calling an external process.
A
Size:
Color:
Use a boolean variable in the WealthScript-derived class. Example in Eugene's code
here.
Size:
Color:
Could this work (untested)?
CODE:
Please log in to see this code.
Size:
Color:
Works fine.
Thank you.
A
Size:
Color: