This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# install imagesize: pip install imagesize pyyaml | |
__author__ = 'Olivier Pieters' | |
__author_email__ = 'me@olivierpieters.be' | |
__license__ = 'BSD-3-Clause' | |
import yaml, imagesize | |
from os import listdir, rename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am j0el on github. | |
* I am joelberman (https://keybase.io/joelberman) on keybase. | |
* I have a public key ASDzrhaloVxv1Ubyh2tzdDD60YyzMzE-cRPaV_vDbryMCgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am j0el on github. | |
* I am joelberman (https://keybase.io/joelberman) on keybase. | |
* I have a public key ASDzrhaloVxv1Ubyh2tzdDD60YyzMzE-cRPaV_vDbryMCgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Shiny application is designed to help analysing trading strategies. It is an ongoing project that I improve when time allows. Feel free to get in touch should you have any suggestion. | |
*How to use the App as it is? | |
The App uses as input several csv files (one for each strategy). Each file has two columns: date and daily return. There is an example of such a file in the Github repository. The code is essentially made of 3 files. | |
-ui.R: controls the layout and appearance of the app | |
-server.R: contains the instructions needed to build the app. You can load as much strategies as you want as long as the corresponding csv file has the right format (see below). | |
-shinyStrategyGeneral.R: loads the required packages and launches the app | |
put ui.R and server.R file in a separate directory | |
In the server.R file change the inputPath, inputFile and keepColumns parameters to match your setting. The first two are self explanatory the third one is a list of column names within the csv file. Keep only date and daily return |