Create Strategy Module
I would like to create a strategy module to import into my main. Currently, I have to define everything in one file. However, if I create a new file and call the strategy from there by handling the strategy parameters these are not defined in the strategy function - actually what I would expect from Pyhton.
Can somebody give an example how to better organize code and specifically multiple strategies stored in different files (in one python module).
Thanks in advance.
you can use module which contains strategies and import these strategies from the module to the script which runs backtest. it is not different from using other modules in python.