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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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).