Add INterface_version to all strategies
This commit is contained in:
@@ -27,6 +27,7 @@ class BreakEven(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
"0": 0.01, # at least 1% at first
|
||||
|
||||
@@ -55,6 +55,7 @@ class Diamond(IStrategy):
|
||||
# Config: 5 x UNLIMITED STOCK costume pair list,
|
||||
# hyperopt : 5000 x SortinoHyperOptLossDaily,
|
||||
# 34/5000: 297 trades. 136/156/5 Wins/Draws/Losses. Avg profit 0.49%. Median profit 0.00%. Total profit 45.84477237 USDT ( 33.96Σ%). Avg duration 11:54:00 min. Objective: -46.50379
|
||||
INTERFACE_VERSION: int = 3
|
||||
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
|
||||
@@ -38,6 +38,7 @@ class GodStra(IStrategy):
|
||||
# | * Best | 2/500 | 10 | 7 0 3 | 18.76% | 983.46414442 USDT (187.58%) | 360.0 m | -4.32665 |
|
||||
# | * Best | 5/500 | 9 | 8 0 1 | 21.83% | 1,060.11476586 USDT (196.50%) | 3,440.0 m | -7.0696 |
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
'buy-cross-0': 'volatility_kcc',
|
||||
|
||||
@@ -29,6 +29,7 @@ class Heracles(IStrategy):
|
||||
########################################## RESULT PASTE PLACE ##########################################
|
||||
# 10/100: 25 trades. 18/4/3 Wins/Draws/Losses. Avg profit 5.92%. Median profit 6.33%. Total profit 0.04888306 BTC ( 48.88Σ%). Avg duration 4 days, 6:24:00 min. Objective: -11.42103
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_crossed_indicator_shift": 9,
|
||||
|
||||
@@ -49,6 +49,7 @@ class HourBasedStrategy(IStrategy):
|
||||
# {KDA/USDT, BTC/USDT, DOGE/USDT, SAND/USDT, ETH/USDT, SOL/USDT}, 1000$x1:100days, ShuffleFilter42
|
||||
# 56/1000: 63 trades. 41/19/3 Wins/Draws/Losses. Avg profit 4.60%. Median profit 8.89%. Total profit 11596.50333022 USDT ( 1159.65%). Avg duration 1 day, 14:46:00 min. Objective: -5.76694
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_hour_max": 24,
|
||||
|
||||
@@ -20,6 +20,7 @@ class Strategy001(IStrategy):
|
||||
> python3 ./freqtrade/main.py -s Strategy001
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -21,6 +21,7 @@ class Strategy002(IStrategy):
|
||||
> python3 ./freqtrade/main.py -s Strategy002
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -21,6 +21,7 @@ class Strategy003(IStrategy):
|
||||
> python3 ./freqtrade/main.py -s Strategy003
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -20,6 +20,7 @@ class Strategy004(IStrategy):
|
||||
> python3 ./freqtrade/main.py -s Strategy004
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -20,7 +20,7 @@ class Strategy005(IStrategy):
|
||||
How to use it?
|
||||
> python3 ./freqtrade/main.py -s Strategy005
|
||||
"""
|
||||
INTERFACE_VERSION = 2
|
||||
INTERFACE_VERSION = 3
|
||||
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
|
||||
@@ -34,7 +34,7 @@ rsiSellVal = 88
|
||||
|
||||
|
||||
class SwingHighToSky(IStrategy):
|
||||
INTERFACE_VERSION = 2
|
||||
INTERFACE_VERSION = 3
|
||||
|
||||
timeframe = '15m'
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ class ASDTSRockwellTrading(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -18,6 +18,7 @@ class AverageStrategy(IStrategy):
|
||||
buys and sells on crossovers - doesn't really perfom that well and its just a proof of concept
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -19,6 +19,7 @@ class AwesomeMacd(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# adjust based on market conditions. We would recommend to keep it low for quick turn arounds
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
|
||||
@@ -19,6 +19,7 @@ class BbandRsi(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# adjust based on market conditions. We would recommend to keep it low for quick turn arounds
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
|
||||
@@ -22,7 +22,7 @@ class BinHV27(IStrategy):
|
||||
strategy sponsored by user BinH from slack
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
minimal_roi = {
|
||||
"0": 1
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class BinHV27(IStrategy):
|
||||
),
|
||||
'enter_long'] = 1
|
||||
return dataframe
|
||||
|
||||
|
||||
def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
||||
dataframe.loc[
|
||||
(
|
||||
|
||||
@@ -18,7 +18,7 @@ def bollinger_bands(stock_price, window_size, num_of_std):
|
||||
|
||||
|
||||
class BinHV45(IStrategy):
|
||||
INTERFACE_VERSION = 2
|
||||
INTERFACE_VERSION: int = 3
|
||||
|
||||
minimal_roi = {
|
||||
"0": 0.0125
|
||||
|
||||
@@ -26,6 +26,7 @@ class ClucMay72018(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -14,6 +14,7 @@ class CofiBitStrategy(IStrategy):
|
||||
taken from slack by user CofiBit
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_fastx": 25,
|
||||
|
||||
@@ -20,6 +20,7 @@ class CombinedBinHAndCluc(IStrategy):
|
||||
# so it is better to increase "stake_amount" value rather then "max_open_trades" to get more profit
|
||||
# - if the market is constantly green(like in JAN 2018) the best performance is reached with
|
||||
# "max_open_trades" = 2 and minimal_roi = 0.01
|
||||
INTERFACE_VERSION: int = 3
|
||||
minimal_roi = {
|
||||
"0": 0.05
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ class DoesNothingStrategy(IStrategy):
|
||||
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# adjust based on market conditions. We would recommend to keep it low for quick turn arounds
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
|
||||
@@ -15,6 +15,7 @@ class EMASkipPump(IStrategy):
|
||||
basic strategy, which trys to avoid pump and dump market conditions. Shared from the tradingview
|
||||
slack
|
||||
"""
|
||||
INTERFACE_VERSION: int = 3
|
||||
EMA_SHORT_TERM = 5
|
||||
EMA_MEDIUM_TERM = 12
|
||||
EMA_LONG_TERM = 21
|
||||
|
||||
@@ -14,6 +14,7 @@ import freqtrade.vendor.qtpylib.indicators as qtpylib
|
||||
|
||||
|
||||
class Freqtrade_backtest_validation_freqtrade1(IStrategy):
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
minimal_roi = {
|
||||
"40": 2.0,
|
||||
|
||||
@@ -20,6 +20,7 @@ class MACDStrategy_crossed(IStrategy):
|
||||
and CCI > 100
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -14,6 +14,7 @@ class MultiRSI(IStrategy):
|
||||
based on work from Creslin
|
||||
|
||||
"""
|
||||
INTERFACE_VERSION: int = 3
|
||||
minimal_roi = {
|
||||
"0": 0.01
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ class Quickie(IStrategy):
|
||||
momentum based strategie. The main idea is that it closes trades very quickly, while avoiding excessive losses. Hence a rather moderate stop loss in this case
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -20,6 +20,7 @@ class ReinforcedAverageStrategy(IStrategy):
|
||||
buys and sells on crossovers - doesn't really perfom that well and its just a proof of concept
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -27,6 +27,7 @@ class ReinforcedQuickie(IStrategy):
|
||||
only buy on an upward tending market
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -18,6 +18,7 @@ class ReinforcedSmoothScalp(IStrategy):
|
||||
we recommend to have at least 60 parallel trades at any time to cover non avoidable losses
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -16,6 +16,7 @@ class Scalp(IStrategy):
|
||||
Recommended is to only sell based on ROI for this strategy
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -20,6 +20,7 @@ class Simple(IStrategy):
|
||||
https://www.amazon.com/Simple-Strategy-Powerful-Trading-Futures-ebook/dp/B00E66QPCG/ref=sr_1_1?ie=UTF8&qid=1525202675&sr=8-1&keywords=the+simple+strategy
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# adjust based on market conditions. We would recommend to keep it low for quick turn arounds
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
|
||||
@@ -23,6 +23,7 @@ class SmoothOperator(IStrategy):
|
||||
a none completed peak shape.
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# we only sell after 100%, unless our sell points are found before
|
||||
minimal_roi = {
|
||||
|
||||
@@ -22,6 +22,7 @@ class SmoothScalp(IStrategy):
|
||||
we recommend to have at least 60 parallel trades at any time to cover non avoidable losses
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Minimal ROI designed for the strategy.
|
||||
# This attribute will be overridden if the config file contains "minimal_roi"
|
||||
minimal_roi = {
|
||||
|
||||
@@ -21,7 +21,7 @@ class TDSequentialStrategy(IStrategy):
|
||||
|
||||
Created by @bmoulkaf
|
||||
"""
|
||||
INTERFACE_VERSION = 2
|
||||
INTERFACE_VERSION: int = 3
|
||||
|
||||
# Minimal ROI designed for the strategy
|
||||
minimal_roi = {'0': 5}
|
||||
|
||||
@@ -5,6 +5,7 @@ from freqtrade.strategy import IStrategy
|
||||
|
||||
|
||||
class TechnicalExampleStrategy(IStrategy):
|
||||
INTERFACE_VERSION: int = 3
|
||||
minimal_roi = {
|
||||
"0": 0.01
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ class CustomStoplossWithPSAR(IStrategy):
|
||||
|
||||
the populate_entry_trend() function is pretty nonsencial
|
||||
"""
|
||||
INTERFACE_VERSION: int = 3
|
||||
timeframe = '1h'
|
||||
stoploss = -0.2
|
||||
custom_info = {}
|
||||
|
||||
@@ -29,6 +29,7 @@ class FixedRiskRewardLoss(IStrategy):
|
||||
losses by setting it to the buy rate + fees.
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
custom_info = {
|
||||
'risk_reward_ratio': 3.5,
|
||||
'set_to_break_even_at_profit': 1,
|
||||
|
||||
@@ -12,6 +12,7 @@ class FOttStrategy(IStrategy):
|
||||
# Buy params, Sell params, ROI, Stoploss and Trailing Stop are values generated by 'freqtrade hyperopt --strategy Supertrend --hyperopt-loss ShortTradeDurHyperOptLoss --timerange=20210101- --timeframe=1h --spaces all'
|
||||
# It's encourage you find the values that better suites your needs and risk management strategies
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# ROI table:
|
||||
minimal_roi = {"0": 0.1, "30": 0.75, "60": 0.05, "120": 0.025}
|
||||
# minimal_roi = {"0": 1}
|
||||
|
||||
@@ -23,6 +23,7 @@ class FSupertrendStrategy(IStrategy):
|
||||
# Buy params, Sell params, ROI, Stoploss and Trailing Stop are values generated by 'freqtrade hyperopt --strategy Supertrend --hyperopt-loss ShortTradeDurHyperOptLoss --timerange=20210101- --timeframe=1h --spaces all'
|
||||
# It's encourage you find the values that better suites your needs and risk management strategies
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_m1": 4,
|
||||
|
||||
@@ -14,7 +14,7 @@ class hlhb(IStrategy):
|
||||
More information in https://www.babypips.com/trading/forex-hlhb-system-explained
|
||||
"""
|
||||
|
||||
INTERFACE_VERSION = 2
|
||||
INTERFACE_VERSION: int = 3
|
||||
|
||||
position_stacking = "True"
|
||||
|
||||
|
||||
@@ -536,6 +536,7 @@ class DevilStra(IStrategy):
|
||||
# #################### RESULT PASTE PLACE ####################
|
||||
# 16/16: 108 trades. 75/18/15 Wins/Draws/Losses. Avg profit 7.77%. Median profit 8.89%. Total profit 0.08404983 BTC ( 84.05Σ%). Avg duration 3 days, 6:49:00 min. Objective: -11.22849
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_spell": "Zi,Lu,Ra,Ra,La,Si,Pa,Si,Cu,La,De,Lu,De,La,Zi,Zi,Zi,Zi,Zi,Lu,Lu,Lu,Si,La,Ra,Pa,La,Zi,Zi,Gu,Ra,De,Gu,Zi,Ra,Ra,Ra,Cu,Pa,De,De,La,Lu,Lu,Lu,La,Zi,Cu,Ra,Gu,Pa,La,Zi,Zi,Si,Lu,Ra,Cu,Cu,Pa,Si,Gu,De,De,Lu,Gu,Zi,Pa,Lu,Pa,Ra,Gu,Cu,La,Pa,Lu,Zi,La,Zi,Gu,Zi,De,Cu,Ra,Lu,Ra,Gu,Si,Ra,La,La,Lu,Gu,Zi,Si,La,Pa,Pa,Cu,Cu,Zi,Gu,Pa,Zi,Pa,Cu,Lu,Pa,Si,De,Gu,Lu,Lu,Cu,Ra,Si,Pa,Gu,Si,Cu,Pa,Zi,Pa,Zi,Gu,Lu,Ra,Pa,Ra,De,Ra,Pa,Zi,La,Pa,De,Pa,Cu,Gu,De,Lu,La,Ra,Zi,Si,Zi,Zi,Cu,Cu,De,Pa,Pa,Zi,De,Ra,La,Lu,De,Lu,Gu,Cu,Cu,La,De,Gu,Lu,Ra,Pa,Lu,Cu,Pa,Pa,De,Si,Zi,Cu,De,De,De,Lu,Si,Zi,Gu,Si,Si,Ra,Pa,Si,La,La,Lu,Lu,De,Gu,Gu,Zi,Ra,La,Lu,Lu,La,Si,Zi,Si,Zi,Si,Lu,Cu,Zi,Lu,De,La,Ra,Ra,Lu,De,Pa,Zi,Gu,Cu,Zi,Pa,De,Si,Lu,De,Cu,De,Zi,Ra,Gu,De,Si,Lu,Lu,Ra,De,Gu,Cu,Gu,La,De,Lu,Lu,Si,Cu,Lu,Zi,Lu,Cu,Gu,Lu,Lu,Ra,Si,Ra,Pa,Lu,De,Ra,Zi,Gu,Gu,Zi,Lu,Cu,Cu,Cu,Lu",
|
||||
|
||||
@@ -459,6 +459,7 @@ def condition_generator(dataframe, operator, indicator, crossed_indicator, real_
|
||||
|
||||
class GodStraNew(IStrategy):
|
||||
# #################### RESULTS PASTE PLACE ####################
|
||||
INTERFACE_VERSION: int = 3
|
||||
# ROI table:
|
||||
minimal_roi = {
|
||||
"0": 0.598,
|
||||
|
||||
@@ -33,6 +33,7 @@ class Zeus(IStrategy):
|
||||
# "timeframe": "4h",
|
||||
# "dry_run_wallet": 0.1,
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_cat": "<R",
|
||||
|
||||
@@ -45,6 +45,7 @@ class wtc(IStrategy):
|
||||
# "timeframe": "30m",
|
||||
# "dry_run_wallet": 0.1,
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# Buy hyperspace params:
|
||||
buy_params = {
|
||||
"buy_max": 0.9609,
|
||||
|
||||
@@ -14,6 +14,7 @@ import talib.abstract as ta
|
||||
|
||||
class mabStra(IStrategy):
|
||||
|
||||
INTERFACE_VERSION: int = 3
|
||||
# #################### RESULTS PASTE PLACE ####################
|
||||
# ROI table:
|
||||
minimal_roi = {
|
||||
|
||||
Reference in New Issue
Block a user