Implement first version of manual strategy
This commit is contained in:
@@ -25,10 +25,8 @@ class BenchmarkStrategy:
|
||||
orders["Symbol"] = symbol
|
||||
orders["Order"] = ""
|
||||
orders["Shares"] = 0
|
||||
|
||||
orders.iloc[0] = [symbol, "BUY", 1000]
|
||||
orders.iloc[-1] = [symbol, "SELL", 1000]
|
||||
orders = orders[orders["Shares"] != 0]
|
||||
orders.iloc[-1] = [symbol, "SELL", -1000]
|
||||
|
||||
if self.verbose:
|
||||
print(type(orders)) # it better be a DataFrame!
|
||||
|
||||
Reference in New Issue
Block a user