mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
feat: Update imports for sample strategy
This commit is contained in:
@@ -14,7 +14,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
from typing import Optional, Union
|
from typing import Dict, Optional, Union
|
||||||
|
|
||||||
from freqtrade.strategy import (
|
from freqtrade.strategy import (
|
||||||
IStrategy,
|
IStrategy,
|
||||||
|
|||||||
@@ -2,17 +2,28 @@
|
|||||||
# flake8: noqa: F401
|
# flake8: noqa: F401
|
||||||
# isort: skip_file
|
# isort: skip_file
|
||||||
# --- Do not remove these libs ---
|
# --- Do not remove these libs ---
|
||||||
import numpy as np # noqa
|
import numpy as np
|
||||||
import pandas as pd # noqa
|
import pandas as pd
|
||||||
|
from datetime import datetime
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
from typing import Optional, Union
|
from typing import Dict, Optional, Union
|
||||||
|
|
||||||
from freqtrade.strategy import (
|
from freqtrade.strategy import (
|
||||||
|
IStrategy,
|
||||||
|
Trade,
|
||||||
|
Order,
|
||||||
|
PairLocks,
|
||||||
|
informative, # @informative decorator
|
||||||
|
# Hyperopt Parameters
|
||||||
BooleanParameter,
|
BooleanParameter,
|
||||||
CategoricalParameter,
|
CategoricalParameter,
|
||||||
DecimalParameter,
|
DecimalParameter,
|
||||||
IStrategy,
|
|
||||||
IntParameter,
|
IntParameter,
|
||||||
|
RealParameter,
|
||||||
|
# Strategy helper functions
|
||||||
|
merge_informative_pair,
|
||||||
|
stoploss_from_absolute,
|
||||||
|
stoploss_from_open,
|
||||||
)
|
)
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user