Update docs/strategy-advanced.md

Co-authored-by: Matthias <xmatthias@outlook.com>
This commit is contained in:
Erwin Hoeckx
2021-01-01 20:49:04 +01:00
committed by GitHub
parent e5840abaf9
commit 67ced6a53c

View File

@@ -29,7 +29,7 @@ from datetime import datetime
use_custom_stoploss = True
def custom_stoploss(self, pair: str, trade: Trade, current_time: datetime, current_rate: float,
def custom_stoploss(self, pair: str, trade: 'Trade', current_time: 'datetime', current_rate: float,
current_profit: float, **kwargs) -> float:
"""
Custom stoploss logic, returning the new distance relative to current_rate (as ratio).