An automated strategy executor using the ByBit API (PyBit)
This simple strategy is SMA cross on 15 minute time frame for SOLUSDT. When the Fast SMA (7) cross over or under the Slow SMA (25) then place an order. The order has a Take Profit of 1% and a Stop Loss of 1.5%. The order will close when either of these prices are met. While an order is active, the strategy is paused (to prevent repeat orders)
New Strategy - SMA Bounce When the Fast SMA (7 candles) is above the Slow SMA (25 candles) and the close price goes BELOW the Slow SMA, place a LONG order When the Slow SMA is abobe the Fast SMA and the close is ABOVE the Slow SMA place a SHORT order
A crontab is to be created to execute this script every minute
To be added:
- Database Queries Done "python3 db_queries.py" gives some performance results
- Update Logs with order closure details (currently the TP and the SL aren't recorded, to monitor performance, this will be needed)
- Ability to switch coin pairs (will currently cause issues with rounding of qty, tp and sl)
- Option to turn on trailing stop loss (potentially higher gains than 1%)