update name

This commit is contained in:
Claudio Maradonna 2021-07-29 16:40:54 +02:00
parent d70a30011e
commit 8158e199b0
Signed by: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9
1 changed files with 76 additions and 0 deletions

76
USDT/ADA-ETH-DOT.py Normal file
View File

@ -0,0 +1,76 @@
from freqtrade.strategy.interface import IStrategy
from typing import Dict, List
from functools import reduce
from pandas import DataFrame
import talib.abstract as ta
import freqtrade.vendor.qtpylib.indicators as qtpylib
import numpy
__author__ = "Kevin Ossenbrück"
__copyright__ = "Free For Use"
__credits__ = ["Bloom Trading, Mohsen Hassan"]
__license__ = "MIT"
__version__ = "1.0"
__maintainer__ = "Kevin Ossenbrück"
__email__ = "kevin.ossenbrueck@pm.de"
__status__ = "Live"
# CCI timerperiods and values
cciBuyTP = 47
cciBuyVal = -39
cciSellTP = 42
cciSellVal = 135
# RSI timeperiods and values
rsiBuyTP = 24
rsiBuyVal = 30
rsiSellTP = 15
rsiSellVal = 69
class ADAETHDOT(IStrategy):
timeframe = '15m'
stoploss = -0.291
minimal_roi = {
"0": 0.238,
"115": 0.131,
"272": 0.048,
"613": 0
}
def informative_pairs(self):
return []
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe['cci-'+str(cciBuyTP)] = ta.CCI(dataframe, timeperiod=cciBuyTP)
dataframe['cci-'+str(cciSellTP)] = ta.CCI(dataframe, timeperiod=cciSellTP)
dataframe['rsi-'+str(rsiBuyTP)] = ta.RSI(dataframe, timeperiod=rsiBuyTP)
dataframe['rsi-'+str(rsiSellTP)] = ta.RSI(dataframe, timeperiod=rsiSellTP)
return dataframe
def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[
(
(dataframe['cci-'+str(cciBuyTP)] < cciBuyVal) &
(dataframe['rsi-'+str(rsiBuyTP)] < rsiBuyVal)
),
'buy'] = 1
return dataframe
def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[
(
(dataframe['cci-'+str(cciSellTP)] > cciSellVal) &
(dataframe['rsi-'+str(rsiSellTP)] > rsiSellVal)
),
'sell'] = 1
return dataframe