Skip to content

Simple trading bot for Poloniex cryptocurrency exchange using MACD indicator to place buy/sell orders.

Notifications You must be signed in to change notification settings

albertocevallos/trading_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

trading_bot

Simple trading bot for Poloniex cryptocurrency exchange. Bot places order to buy BTC/USD when the moving average (MACD) is negative and 1st derivative equals zero (local min). Bot places order to sell BTC/USD when the moving average (MACD) is positive and 1st derivative equals zero (local max).

The Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of prices. The MACD is calculated by subtracting the 26-day exponential moving average (EMA) from the 12-day EMA.

Next Steps

Although MACD allows accuracy for buying and placing orders, divergence movements (2nd derivative inflection points) are difficult to predict over time. "Crossovers" (time from local min to local max) range from 30 min to 24 hours. We hope to plot an average sentiment line using another twitter sentiment analysis script to predict how long each crossover period will last, and add script for improved holding period.

We can also add the RSI Indicator (Relative Strength Index) to improve the bots behaviour during bear and bull markets. We can establish a set of parameters based on momentum (magnitude of recent gains and losses over a specified time period to measure speed and change of price movements of a coin). Thresholds can determine if an asset is overbought or oversold. If RSI is high, the bot's holding period can increase to 48 hours as the likelihood of a market soar increases.

About

Simple trading bot for Poloniex cryptocurrency exchange using MACD indicator to place buy/sell orders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages