Container for Engima Calalyst hedge-fund strategy tester - currently in Alpha
274
Docker image for testing strategies against the Enigma Catalyst Alpha engine
Additional setup is required to display GUI from container to host computer.
Install Socat & Cask using brew
brew updatebrew install socat cask Reboot Computer
Verify DISPLAY variable set
echo $DISPLAYStart XQuartz & Socat
open -a XQuartzsocat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"cd %ProgramFiles(x86)%/XmingXming.exe :0 -multiwindow -clipboard -acPulling down the image
docker pull agna/catalystGet IP address of Docker host (ex. 192.168.0.13)
ipconfigifconfigStarting up a container
* docker run -it --name catalyst -e DISPLAY=[HOSTIP]:0 agna/catalyst
(ex.) docker run -it --name catalyst -e DISPLAY=192.168.0.13:0 agna/catalyst
Running an included example strategy
container#
catalyst run -f /examples/buy_and_hodl.py -s 2016-5-5 -e 2017-7-7 -o hodl.pickle
You can quickly test using a 2 year date range by using the following: $test path/to/strategy.py
container#
$test /examples/buy_and_hodl.pycontainer#$test /examples/dual_vwap.py
Add a volume to the path of the strategies on your host machine. Below is an example assuming the path is ~/catalyst/strategies creating a folder named strategies in the container.
-v ~/catalyst/strategies:/strategies agna/catalystNow you can run your custom strategies in the running container
container#
catalyst run -f /strategies/custom.py -s 2016-5-5 -e 2017-8-18 -o custom.pickleor container#$test /strategies/custom.py
Content type
Image
Digest
Size
519.4 MB
Last updated
about 9 years ago
docker pull agna/catalyst