If you’re even slightly interested in trading or investing you probably heard about WallStreetBets. I’s a huge community of retail traders on Reddit with 9.5M followers. This community can influence the market quite significantly these days. Here is a chart of Gamestop, the most famous stock in the community. As you can see community triggered Paring WallStreetBets in Python in Few Lines of Code (Reddit API) Read More →
It’s fairly simple to add a session to PineScript Strategies, you can do that just in few minutes adding just a few lines of code to your script. Forst create an input variable that will store the definition of our session. Later you’ll be able to change session variable from parameters without changing your code. The Easiest Way to Add a Session to PineScript Strategies Read More →
Pretty often it can be interesting to backtest a strategy across several timeframes. In the simple case you want to have a signal on one timeframe and just want a confirmation for another higher timeframe. In this video, I will show you how easy it is to use multiple timeframes in Backtrader backtests in Python. Calculating Multi-Timeframe Backtests in Python with Backtrader Read More →
Pretty often you want to backtest your strategy on multiple instruments and you’re interested in how it will work together. In this article, I will show you how easy it is to do that in Python using Backtrader. To load multiple data sources to Backtrader you can use the following code: The idea is pretty Running Backtesting for Universe of Stocks in Python with Backtrader Read More →
With the new update of PineScript language, it’s become very easy to add a backtesting range to TradingView Strategies. You can do that in 3 easy steps: Insert the following code in your strategy. You can add it after the last input you have in the code, this way you’ll have range inputs last in Adding Backtesting Range to TradingView Strategy in 3 lines of code Read More →
ByBit is of the most popular crypto exchanges on the market, and many people trade on it. It’s important to use historical data to backtest trading strategies. So I decided to create an article showing you how you can download historical bars from ByBit with Python. Libraries used: Function to get bars from Bybit: Example Getting Historical Bars from ByBit API with Python Read More →