isolated conditionals in interface stoploss method
This commit is contained in:
@@ -3238,11 +3238,11 @@ def test_execute_trade_exit_market_order(
|
||||
"""
|
||||
amount
|
||||
long: 60 / 2.0 = 30
|
||||
short: 60 / 2.02 = 29.70297029
|
||||
open_value
|
||||
short: 60 / 2.02 = 29.70297029
|
||||
open_value
|
||||
long: (30 * 2.0) + (30 * 2.0 * 0.0025) = 60.15
|
||||
short: (29.702970297029704 * 2.02) - (29.702970297029704 * 2.02 * 0.0025) = 59.85
|
||||
close_value
|
||||
close_value
|
||||
long: (30 * 2.2) - (30 * 2.2 * 0.0025) = 65.835
|
||||
short: (29.702970297029704 * 2.3) + (29.702970297029704 * 2.3 * 0.0025) = 68.48762376237624
|
||||
profit
|
||||
|
Reference in New Issue
Block a user