From d66b35039022c28ef2f29449030764dc607f5d10 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Sat, 10 Oct 2020 10:00:05 -0400 Subject: [PATCH] Create template for project 6 --- .../TheoreticallyOptimalStrategy.py | 18 ++++++++++++++++++ manual_strategy/indicators.py | 5 +++++ manual_strategy/marketsimcode.py | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 manual_strategy/TheoreticallyOptimalStrategy.py create mode 100644 manual_strategy/indicators.py create mode 100644 manual_strategy/marketsimcode.py diff --git a/manual_strategy/TheoreticallyOptimalStrategy.py b/manual_strategy/TheoreticallyOptimalStrategy.py new file mode 100644 index 0000000..4c4db2f --- /dev/null +++ b/manual_strategy/TheoreticallyOptimalStrategy.py @@ -0,0 +1,18 @@ +import pandas as pd +import datetime as dt +from util import get_data, plot_data + + +def author(): + return "felixm" + + +def main(): + start_date = dt.datetime(2008, 1, 1) + end_date = dt.datetime(2009, 12, 31) + prices = get_data(['JPM'], pd.date_range(start_date, end_date)) + print(prices) + + +if __name__ == "__main__": + main() diff --git a/manual_strategy/indicators.py b/manual_strategy/indicators.py new file mode 100644 index 0000000..eedeb4b --- /dev/null +++ b/manual_strategy/indicators.py @@ -0,0 +1,5 @@ + + + +def author(): + return "felixm" diff --git a/manual_strategy/marketsimcode.py b/manual_strategy/marketsimcode.py new file mode 100644 index 0000000..d032157 --- /dev/null +++ b/manual_strategy/marketsimcode.py @@ -0,0 +1,3 @@ + +def author(): + return "felixm"