So you guys may have seen some of my previous posts, where I shared several open sourced crypto trading algorithms that I coded. Many of you asked if they have been backtested and how that would work. So I created this quick tool to help you assess the profitablity of your trading strategy of trading bot if you're using one. Backtesting is a way of feeding your current trading strategy to a script that applies it on historical data, in order to determine how successful it could be in the future. Past performance does not always guarantee future returns, but it's good practice to test your strategy (or trading algorithm) before you go ham. The script downloads historical data for a coin of your choice, and at an interval of your choosing. This is then used by the script to determine how profitable a strategy can be, and whether it has the potential to beat a buy and hold. At the end of the testing phase, the tool will generate a plot showing each trade and final balance. Working with historical data since the start of this year, I fed it a simple strategy - buy if the price is up 1% in the last minute. Sell at 10% gain or 5% loss - but you can customise these parameters yourself. This strategy made a marginal loss on ICPUSDT, but then this is probably not the best coin to test on since it's been in decline ever since it was listed on Binance. Here's the same strategy on NANOUSDT, seems like we're $800 in profit. Happy Testing! Here's the guide on how to implement it: And here's the repo if you're a python wizard: https://github.com/CyberPunkMetalHead/backtesting-for-cryptocurrency-trading [link] [comments] |
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments