Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Freqtrade - sell after x candels

from freqtrade.exchange import timeframe_to_minutes

class AwesomeStrategy(IStrategy):

    timeframe = "1d"
    timeframe_mins = timeframe_to_minutes(timeframe)
    minimal_roi = {
        "0": 0.05,                             # 5% for the first 3 candles
        str(timeframe_mins * 3)): 0.02,  # 2% after 3 candles
        str(timeframe_mins * 6)): 0.01,  # 1% After 6 candles
    }
Comment

PREVIOUS NEXT
Code Example
Python :: python create dynamic 2d array 
Python :: Streaming upload requests python 
Python :: round up 
Python :: password protected mongo server 
Python :: count wit for loop pthoon 
Python :: python assertRaises with class property 
Python :: pvector python processing 
Python :: how to print a text 
Python :: line to curve dynamo revit 
Python :: python which __divs__ are there 
Python :: convert from python code to c++ code 
Python :: df sum 
Python :: url python 
Python :: finding anagrams in python 
Python :: how to change directory in python 
Python :: unban member using ID discord.py 
Python :: python file io 
Python :: signup view django 
Python :: palindrome python 
Python :: python interpreter 
Python :: how to iterate over rows in pandas 
Python :: pyplot.plot 
Python :: python official documentation 
Python :: how to sort nested list in python 
Python :: get chrome version with python 
Python :: python key 
Python :: how to debug python code in visual studio code 
Python :: pip for python 
Python :: python __new__ 
Python :: python elif 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =