jordankzf / npns-scalperman

A simple Python-based algotrading bot for Binance with support for Discord bot integration and webhooks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPNS Scalperman

not profit NOT SELL - a surprisingly simple strategy that might just work.

Rules

  • Long ONLY
  • Close only with profit
  • Take profit at the first possible chance
  • No leverage
  • Buy the dips! (Buy low, sell high duh)
  • Average down
  • Many in, one out (exit all positions simultaneously)

Strategy

This is how the algorithm works:

  1. Monitor Stochastic indicator for low range.
  2. If favourable, long a small position using trailing stop buy.
  3. If the current prices drops by X%, long again with twice the initial position amount.
    1. Repeat if price drops further until running out of capital.
  4. If average cost basis price rises by 0.3%, close the position using trailing stop sell.

Class Diagram

Extra Features

  1. Volume monitoring
  2. Confidence adjustment

Acronyms

  1. NPNS - not profit NOT SELL
  2. MIMO - I'm in, I'm out
  3. FTW - Follow the whales
  4. RTD - Ride the dip
  5. JBAP - Just be a pussy

Instructions

  1. Create a Discord bot
  2. Add it to your server via https://discord.com/oauth2/authorize?client_id=852766365012983828&permissions=268823632&scope=bot

To-do list

  1. Implement Stochastic monitoring. ✅
  2. Implement live price data ✅
  3. Implement trailing stop buy. ✅
  4. Implement averaging down. ✅
  5. Implement MIMO sell. ✅
  6. Implement backtesting. ✅
  7. Clean up variable names. ✅
  8. Implement graceful exiting. ✅
  9. Refactor with OOP. ✅
  10. Integrate Discord bot support. ✅
  11. Instabuy / instasell based on Force Index. ❌
  12. Fix trailing stop. ❌
  13. Implement crash recovery. ❌
  14. DIY Range-bound Force Index ❌
  15. Compounding Interest

Known bugs

  1. $webhook command indiscriminately selects first existing webhook.
  2. config.WEBHOOK doesn't work when it's empty.
  3. Ctrl+C crash recovery doesn't exit gracefully. ❌
  4. buy() missing 1 required positional argument: 'self' ✅ Fixed
  5. current_purchase_size will double endlessly if quote asset runs out. ✅

To think about

  1. Aim for higher profit when there are more open positions?

Resources

  1. Live RSI Monitoring from Binance https://github.com/hackingthemarkets/binance-tutorials
  2. Backtrade Testing with Binance https://github.com/lth-elm/backtrading-python-binance

About

A simple Python-based algotrading bot for Binance with support for Discord bot integration and webhooks.


Languages

Language:Python 99.9%Language:Batchfile 0.1%