MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / exit_short

Method exit_short

simulator/trading_agent.py:33–39  ·  view source on GitHub ↗
(self, price, datetime=None)

Source from the content-addressed store, hash-verified

31 self.date_time_entry_long = None
32
33 def exit_short(self, price, datetime=None):
34 self.trading_history.append({'Type': 'Short', 'Entry_Short': self.date_time_entry_short, 'Price_Entry_Short': self.short_price,
35 'Exit_Short': datetime, 'Price_Exit_Short': price})
36
37 self.short_inventory = 0
38 self.short_price = 0
39 self.date_time_entry_short = None

Callers 1

backtestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected