|
|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement
|
|
|
|
|
# flake8: noqa: F401
|
|
|
|
|
# isort: skip_file
|
|
|
|
|
# --- Do not remove these libs ---
|
|
|
|
|
# --- Do not remove these imports ---
|
|
|
|
|
import numpy as np
|
|
|
|
|
import pandas as pd
|
|
|
|
|
from datetime import datetime
|
|
|
|
|
from datetime import datetime, timedelta, timezone
|
|
|
|
|
from pandas import DataFrame
|
|
|
|
|
from typing import Dict, Optional, Union
|
|
|
|
|
from typing import Dict, Optional, Union, Tuple
|
|
|
|
|
|
|
|
|
|
from freqtrade.strategy import (
|
|
|
|
|
IStrategy,
|
|
|
|
|
@ -20,6 +20,10 @@ from freqtrade.strategy import (
|
|
|
|
|
DecimalParameter,
|
|
|
|
|
IntParameter,
|
|
|
|
|
RealParameter,
|
|
|
|
|
# timeframe helpers
|
|
|
|
|
timeframe_to_minutes,
|
|
|
|
|
timeframe_to_next_date,
|
|
|
|
|
timeframe_to_prev_date,
|
|
|
|
|
# Strategy helper functions
|
|
|
|
|
merge_informative_pair,
|
|
|
|
|
stoploss_from_absolute,
|
|
|
|
|
|