This bot will trade on both LONG
and SHORT
position
with 2 signal options for entering into the trade
-
CDC Action Zone (ema12, ema26)
-
WaveTrend Oscillator
with Optional trend checking indicator
-
EMA50 - Only open
LONG
position when price trading above EMA50 andSHORT
when below. -
ADX - Only open position if ADX is greater or equal to 20.
-
HeikinAshi - Only open
LONG
|SHORT
position when HeikinAshi candle isgreen
|red
for specific period. -
RSI - Only open
LONG
position when RSI is greater or equal to 60 (Configurable) andSHORT
when less or equal to 40 (Configurable).
You can select trading signal you want in user.cfg
with signal_type
= wavetrend
or cdc
After bot enter the trade, it will calculate Exit price (ATR Trailing Stop price), Take profit price, Position Quantity based on
-
ATR value
-
Risk percentage
-
Risk/Reward Ratio
There are 3 situations that bot will close the position
-
When signal cross in opposite direction
-
When price trading below or above
ATR Trailing Stop price
-
When price reach
Take profit price
- Install dependencies
pip install -r requirements.txt
- Create configuration file by copy
sample.user.cfg
intouser.cfg
api_key - Binance API Key
api_secret - Binance API secret
telegram_token - Telegram token id (How to create a bot in telegram https://www.geeksforgeeks.org/create-a-telegram-bot-using-python/)
chat_id - Telegram chat id (How to find telegram chat id https://sean-bradley.medium.com/get-telegram-chat-id-80b575520659)
ticker - i.e. BTCUSDT initial ticker for trading
total_revenue - Total initial revenue
interval - i.e. 1h 4h 15m 1d
atr_multiplier - ATR multiplier for ATR Trailing Stop price calculation
risk_reward_ratio - Risk to reward ration to calculate Take profit price
begin_load_data_from - i.e. 10 day ago UTC (This should be around 30 candles from current time based on your interval)
leverage - Leverage that you want to use to open position
offset_top_coin_scouting - offset value to get coin from Binance
max_top_coin_scouting - Limit value to get coin from Binance
auto_scouting - true|false (if true, bot will use all_coins_list or get all coins from Binance. If false, bot will use only ticker)
trend_check - Want to do trend checking before open position or not
trend_mode - adx , ema or both
max_risk - i.e. 0.03 = 3% risk per trade
risk_mode - skip (will skip the trade ) or manage (will open position with lower quantity)
heikin_check - Want to use HeikinAshi for trend checking or not
heikin_look_back - Number of candle period to look back
rsi_check - Want to use RSI for trend checking or not
rsi_buy - LONG when RSI >= this value
rsi_sell - SHORT when RSI <= this value
all_coins_list - List of all coins you want to trade (If empty, bot will get all coins from Binance)
signal_type - wavetrend or cdc
- Run a bot
python main.py [Optional config name. if not specified, bot will use default config]