feat: Update imports for sample strategy

This commit is contained in:
Matthias
2024-08-17 16:28:19 +02:00
parent d6f96b2c53
commit 5bc8b02b0f
2 changed files with 16 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ import numpy as np
import pandas as pd
from datetime import datetime
from pandas import DataFrame
from typing import Optional, Union
from typing import Dict, Optional, Union
from freqtrade.strategy import (
IStrategy,

View File

@@ -2,17 +2,28 @@
# flake8: noqa: F401
# isort: skip_file
# --- Do not remove these libs ---
import numpy as np # noqa
import pandas as pd # noqa
import numpy as np
import pandas as pd
from datetime import datetime
from pandas import DataFrame
from typing import Optional, Union
from typing import Dict, Optional, Union
from freqtrade.strategy import (
IStrategy,
Trade,
Order,
PairLocks,
informative, # @informative decorator
# Hyperopt Parameters
BooleanParameter,
CategoricalParameter,
DecimalParameter,
IStrategy,
IntParameter,
RealParameter,
# Strategy helper functions
merge_informative_pair,
stoploss_from_absolute,
stoploss_from_open,
)
# --------------------------------