Timeframe
5m
Direction
Long Only
Stoploss
-1.5%
Trailing Stop
Yes
ROI
0m: 2.0%
Interface Version
N/A
Startup Candles
50
Indicators
0
freqtrade/freqtrade-strategies
author@: lenik
from freqtrade.strategy import IStrategy
from pandas import DataFrame
import openai
openai.api_key = "YOUR_OPENAI_API_KEY_HERE"
class NeuroStrike(IStrategy):
timeframe = '5m'
minimal_roi = {"0": 0.02}
stoploss = -0.015
trailing_stop = True
trailing_stop_positive = 0.005
trailing_stop_positive_offset = 0.015
use_custom_stoploss = False
process_only_new_candles = True
startup_candle_count = 50
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return dataframe
def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[:, 'buy'] = 0
dataframe.loc[
(dataframe['close'] > dataframe['open']),
'buy'
] = 1
return dataframe
def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[:, 'sell'] = 0
dataframe.loc[
(dataframe['close'] < dataframe['open']),
'sell'
] = 1
return dataframe