Allow multiple ROI in detail-backtest tests

This commit is contained in:
Matthias
2019-10-05 10:40:59 +02:00
parent 2c0d2c1532
commit 885edc9768
3 changed files with 24 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
from typing import NamedTuple, List
from typing import Dict, List, NamedTuple
import arrow
from pandas import DataFrame
@@ -25,7 +25,7 @@ class BTContainer(NamedTuple):
"""
data: List[float]
stop_loss: float
roi: float
roi: Dict[str, float]
trades: List[BTrade]
profit_perc: float
trailing_stop: bool = False