Pine Script

Loop through a set or all historical bars in Pine Script

August 2022

Loop through a set or all historical bars in Pine Script

I receive quite a lot of questions about how to loop over the bars in Pine Script. Many of the indicators require this kind of calculation you might have these questions yourself as well. If you’re not very familiar with the way Pine Script works you might implement your code in a very inefficient way. Loop through a set or all historical bars in Pine Script Read More →

Loop through a set or all historical bars in Pine Script Read More »

Exporting Paper Trading Data in TradingView with a Free Account

TradingView just recently added a feature to download your paper trading data. Unfortunately, it works only with pro accounts. But in this article, I’ll show you a hack that will allow you to export this data with any account. So you already did a bunch of trades in your Paper Account and you have some

Exporting Paper Trading Data in TradingView with a Free Account Read More »

Backtesting intraday stock strategies in Python with vectorbt

Creating trading bots these days on intraday data become more and more popular days. For simple backtesting trades usually go to Pine Script. But with libraries like vectorbt backtesting in Python become quite simple. Also, not many people know that you can get intraday data for stocks from Yahoo Finance for free. So in summary

Backtesting intraday stock strategies in Python with vectorbt Read More »

Backtesting Pine Script Strategies on entire history with Deep Backtesting

If you backtest a lot of strategies in TradingView you most likely know that that TradingView is a bit limited in terms of backtesting. If you run backtest in a standard way you get your backtest computed on the last ~ 20k bars only for the most expensive account. And that’s not enought for majority

Backtesting Pine Script Strategies on entire history with Deep Backtesting Read More »