Begin work on increasing position size
This commit is contained in:
@@ -283,6 +283,15 @@ class ActiveManagementTestCase(StrategyMixin, SymbolPriceMock, TestCase):
|
||||
},
|
||||
)
|
||||
|
||||
def test_position_size_violated_increase_only(self):
|
||||
pass
|
||||
|
||||
def test_position_size_violated_decrease_only(self):
|
||||
pass
|
||||
|
||||
def test_position_size_violated_increase_decrease(self):
|
||||
pass
|
||||
|
||||
def test_protection_violated(self):
|
||||
self.trades[0]["takeProfitOrder"] = {"price": "0.0001"}
|
||||
self.trades[0]["stopLossOrder"] = {"price": "0.0001"}
|
||||
|
||||
@@ -203,6 +203,15 @@ class ActiveManagementLiveTestCase(ElasticMock, StrategyMixin, LiveBase, TestCas
|
||||
trades = self.account.client.get_all_open_trades()
|
||||
self.assertEqual(len(trades), 0)
|
||||
|
||||
def test_ams_position_size_violated_increase(self):
|
||||
pass
|
||||
|
||||
def test_ams_position_size_violated_decrease(self):
|
||||
pass
|
||||
|
||||
def test_ams_position_size_violated_increase_decrease(self):
|
||||
pass
|
||||
|
||||
def test_ams_protection_violated(self):
|
||||
self.active_management_policy.when_protection_violated = "close"
|
||||
self.active_management_policy.save()
|
||||
|
||||
Reference in New Issue
Block a user