unnecessary libraries removed + arg help enriched
This commit is contained in:
parent
0767718a17
commit
5d73b303fe
@ -202,7 +202,8 @@ class Arguments(object):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--stoplosses',
|
'--stoplosses',
|
||||||
help='defines a range of stoploss against which edge will assess the strategy'
|
help='defines a range of stoploss against which edge will assess the strategy'
|
||||||
'the format is "min,max,step" (without any space). example: --stoplosses=-0.01,-0.1,-0.001',
|
'the format is "min,max,step" (without any space).'
|
||||||
|
'example: --stoplosses=-0.01,-0.1,-0.001',
|
||||||
type=str,
|
type=str,
|
||||||
dest='stoploss_range',
|
dest='stoploss_range',
|
||||||
)
|
)
|
||||||
|
@ -4,25 +4,14 @@
|
|||||||
This module contains the backtesting logic
|
This module contains the backtesting logic
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import operator
|
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
from copy import deepcopy
|
from typing import Dict, Any
|
||||||
from datetime import datetime, timedelta
|
|
||||||
from pathlib import Path
|
|
||||||
from typing import Any, Dict, List, NamedTuple, Optional, Tuple
|
|
||||||
from freqtrade.edge import Edge
|
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
from freqtrade.edge import Edge
|
||||||
|
|
||||||
import freqtrade.optimize as optimize
|
|
||||||
from freqtrade import DependencyException, constants
|
|
||||||
from freqtrade.arguments import Arguments
|
|
||||||
from freqtrade.configuration import Configuration
|
from freqtrade.configuration import Configuration
|
||||||
from freqtrade.exchange import Exchange
|
from freqtrade.exchange import Exchange
|
||||||
from freqtrade.misc import file_dump_json
|
from freqtrade.strategy.resolver import StrategyResolver
|
||||||
from freqtrade.persistence import Trade
|
|
||||||
from freqtrade.strategy.interface import SellType
|
|
||||||
from freqtrade.strategy.resolver import IStrategy, StrategyResolver
|
|
||||||
import pdb
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -56,7 +45,8 @@ class EdgeCli(object):
|
|||||||
floatfmt = ('s', '.10g', '.2f', '.2f', '.2f', '.2f', 'd', '.d')
|
floatfmt = ('s', '.10g', '.2f', '.2f', '.2f', '.2f', 'd', '.d')
|
||||||
tabular_data = []
|
tabular_data = []
|
||||||
headers = ['pair', 'stoploss', 'win rate', 'risk reward ratio',
|
headers = ['pair', 'stoploss', 'win rate', 'risk reward ratio',
|
||||||
'required risk reward', 'expectancy', 'total number of trades', 'average duration (min)']
|
'required risk reward', 'expectancy', 'total number of trades',
|
||||||
|
'average duration (min)']
|
||||||
|
|
||||||
for result in results.items():
|
for result in results.items():
|
||||||
if result[1].nb_trades > 0:
|
if result[1].nb_trades > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user