2020-09-02 17:58:26 +00:00
|
|
|
# flake8: noqa: F401
|
2024-04-09 18:32:15 +00:00
|
|
|
from typing import Dict, List, Optional, Union
|
|
|
|
|
2024-05-12 13:18:32 +00:00
|
|
|
from freqtrade.exchange import (
|
|
|
|
timeframe_to_minutes,
|
|
|
|
timeframe_to_msecs,
|
|
|
|
timeframe_to_next_date,
|
|
|
|
timeframe_to_prev_date,
|
|
|
|
timeframe_to_seconds,
|
|
|
|
)
|
2024-04-09 18:32:15 +00:00
|
|
|
from freqtrade.persistence import Order, PairLocks, Trade
|
2021-09-12 15:26:41 +00:00
|
|
|
from freqtrade.strategy.informative_decorator import informative
|
2020-09-02 17:58:26 +00:00
|
|
|
from freqtrade.strategy.interface import IStrategy
|
2024-05-12 13:18:32 +00:00
|
|
|
from freqtrade.strategy.parameters import (
|
|
|
|
BooleanParameter,
|
|
|
|
CategoricalParameter,
|
|
|
|
DecimalParameter,
|
|
|
|
IntParameter,
|
|
|
|
RealParameter,
|
|
|
|
)
|
|
|
|
from freqtrade.strategy.strategy_helper import (
|
|
|
|
merge_informative_pair,
|
|
|
|
stoploss_from_absolute,
|
|
|
|
stoploss_from_open,
|
|
|
|
)
|
2024-04-09 18:32:15 +00:00
|
|
|
|
|
|
|
|
2024-08-17 14:25:47 +00:00
|
|
|
# Imports to be used for `from freqtrade.strategy import *`
|
2024-04-09 18:32:15 +00:00
|
|
|
__all__ = [
|
|
|
|
"timeframe_to_minutes",
|
|
|
|
"timeframe_to_next_date",
|
|
|
|
"timeframe_to_prev_date",
|
|
|
|
"informative",
|
|
|
|
"IStrategy",
|
|
|
|
"Trade",
|
|
|
|
"Order",
|
|
|
|
"PairLocks",
|
|
|
|
# Parameters
|
|
|
|
"BooleanParameter",
|
|
|
|
"CategoricalParameter",
|
|
|
|
"DecimalParameter",
|
|
|
|
"IntParameter",
|
|
|
|
"RealParameter",
|
|
|
|
# Strategy helper functions
|
|
|
|
"merge_informative_pair",
|
|
|
|
"stoploss_from_absolute",
|
|
|
|
"stoploss_from_open",
|
|
|
|
# Typings
|
|
|
|
"List",
|
|
|
|
"Optional",
|
|
|
|
"Union",
|
|
|
|
"Dict",
|
|
|
|
]
|