Don't force min_roi to have content
This commit is contained in:
@@ -148,7 +148,6 @@ CONF_SCHEMA = {
|
|||||||
'patternProperties': {
|
'patternProperties': {
|
||||||
'^[0-9.]+$': {'type': 'number'}
|
'^[0-9.]+$': {'type': 'number'}
|
||||||
},
|
},
|
||||||
'minProperties': 1
|
|
||||||
},
|
},
|
||||||
'amount_reserve_percent': {'type': 'number', 'minimum': 0.0, 'maximum': 0.5},
|
'amount_reserve_percent': {'type': 'number', 'minimum': 0.0, 'maximum': 0.5},
|
||||||
'stoploss': {'type': 'number', 'maximum': 0, 'exclusiveMaximum': True, 'minimum': -1},
|
'stoploss': {'type': 'number', 'maximum': 0, 'exclusiveMaximum': True, 'minimum': -1},
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
|
|
||||||
_ft_params_from_file: Dict
|
_ft_params_from_file: Dict
|
||||||
# associated minimal roi
|
# associated minimal roi
|
||||||
minimal_roi: Dict = {"0": 10.0}
|
minimal_roi: Dict = {}
|
||||||
|
|
||||||
# associated stoploss
|
# associated stoploss
|
||||||
stoploss: float
|
stoploss: float
|
||||||
|
|||||||
@@ -820,7 +820,7 @@ tc52 = BTContainer(data=[
|
|||||||
[2, 4900, 5250, 4500, 5100, 6172, 0, 0], # Order readjust
|
[2, 4900, 5250, 4500, 5100, 6172, 0, 0], # Order readjust
|
||||||
[3, 5100, 5100, 4650, 4750, 6172, 0, 0], # stoploss hit?
|
[3, 5100, 5100, 4650, 4750, 6172, 0, 0], # stoploss hit?
|
||||||
[4, 4750, 4950, 4350, 4750, 6172, 0, 0]],
|
[4, 4750, 4950, 4350, 4750, 6172, 0, 0]],
|
||||||
stop_loss=-0.03, roi={"0": 0.10}, profit_perc=-0.03,
|
stop_loss=-0.03, roi={}, profit_perc=-0.03,
|
||||||
use_exit_signal=True, timeout=1000,
|
use_exit_signal=True, timeout=1000,
|
||||||
custom_entry_price=4200, adjust_entry_price=5200,
|
custom_entry_price=4200, adjust_entry_price=5200,
|
||||||
trades=[BTrade(exit_reason=ExitType.STOP_LOSS, open_tick=1, close_tick=2, is_short=False)]
|
trades=[BTrade(exit_reason=ExitType.STOP_LOSS, open_tick=1, close_tick=2, is_short=False)]
|
||||||
|
|||||||
Reference in New Issue
Block a user