Introduction

For those of you who are yet to decide on which programming language to learn or which framework to use, start here!

Languages and Frameworks

Laying the foundations Before we can build any house, we must first dig the foundations. In our world, the foundations

Read More »

Pick your poison!

Now you have read the series introduction, you are ready to move on to the platform specific tutorials.

Backtrader

Tradingview

QuantConnect

Backtrader

The following posts are specifically for getting started, see the main blog for more code snippets, reviews, advanced content. 

Getting Setup: Python and Backtrader

Getting Setup: Python and Backtrader

Time to get our hands wet… In this post, we will take a look at downloading Python, where you can

Read More »
Backtrader: First Script

Backtrader: First Script

Now that we have our environment setup, it time to write our first script! Scope This tutorial aims to set

Read More »
Using Analyzers in Backtrader

Using Analyzers in Backtrader

Once you have figured out how to write a basic strategy, you then need to be able to quantify whether it

Read More »
Optimize Strategies in Backtrader

Optimize Strategies in Backtrader

Once you have created a basic strategy and analysed it, the next logical step would be to optimize it. Optimization is the

Read More »
Developing Sizers in Backtrader – Part 1

Developing Sizers in Backtrader – Part 1

This is part 1 of a look into the world of sizers. Originally, I intended this to be a single

Read More »
Backtrader: Multiple Data Feeds & Indicators

Backtrader: Multiple Data Feeds & Indicators

If you have read through the Backtrader: First Script post or seen any of the other code snippets on this site, you

Read More »
Backtrader: Oanda Margin and Leverage

Backtrader: Oanda Margin and Leverage

The concept of margin and leverage can be a tricky one to setup correctly in a backtest environment. Each country

Read More »
Backtrader: Commission Schemes

Backtrader: Commission Schemes

Once you have started to get to grips with the basics, the logical next step is to add another level

Read More »
Backtrader: Making modular code

Backtrader: Making modular code

This weeks post is not directly related to Backtrader but will definitely come in useful as our journey into backtesting

Read More »
Backtrader: Creating Analyzers

Backtrader: Creating Analyzers

We have covered using Backtrader’s analyzers in an earlier post. At that time, we looked at using the built-in TradeAnalyzer and

Read More »
Backtrader: Data Replay

Backtrader: Data Replay

One of the reasons backtesting often does not provide an accurate indication of real-world performance is that we receive a

Read More »
Developing Sizers in Backtrader – Part 2

Developing Sizers in Backtrader – Part 2

This is the second post covering the development of sizers in Backtrader. The first post provided an introduction to the basics, looked

Read More »
Backtrader: Working with Heikin Ashi

Backtrader: Working with Heikin Ashi

If you have ever pulled up a Heikin Ashi chart on a trading platform, you were probably awed at the

Read More »
Backtrader: Target Orders and Stop Losses

Backtrader: Target Orders and Stop Losses

Today we are going to take a look at how to use target orders as part of an almost “all

Read More »
Backtrader: Bracket Orders

Backtrader: Bracket Orders

In this post, we are going to take a look at bracket orders. Bracket orders are a special type of

Read More »
Backtrader: Manage Dividends and Splits with Adjusted Close Data

Backtrader: Manage Dividends and Splits with Adjusted Close Data

This post follows on from Backtesting 101: Dividends and Adjustments. In that post, we discussed the importance of accounting for and

Read More »

Tradingview

The following posts are specifically for getting started, see the main blog for more code snippets, reviews, advanced content. 

Tradingview: First Script

Tradingview: First Script

Tradingview Pine Script Beginner Tutorial: Tradingview is fast becoming one of the most popular charting tools in the industry. With

Read More »
Tradingview: Understanding lookahead, historical and realtime data

Tradingview: Understanding lookahead, historical and realtime data

As good as the pine script documentation is, there are still those times when things get lost in translation. Other

Read More »
Tradingview: Create an Indicator

Tradingview: Create an Indicator

This post also forms part of the getting started series for Tradingview. In this tutorial, we shall follow similar steps

Read More »
Tradingview – Adding Quandl Data sources

Tradingview – Adding Quandl Data sources

You may have seen the Quandl tab when searching in Tradingviews’ instrument search panel and wondered just how some of

Read More »
Tradingview: Ternary Conditional Operators ?:

Tradingview: Ternary Conditional Operators ?:

For myself, coming from a Python background, reading the syntax on a Tradingview script can sometimes feel a little alien.

Read More »
Tradingview: Tracking Time

Tradingview: Tracking Time

Tradingview has a few handy time-based variables and functions which allow you to manually keep track of time, events, sessions

Read More »
Tradingview: Creating Functions

Tradingview: Creating Functions

It is time to add another feather to our pine script bow. In this post, we are going to take

Read More »
Tradingview: Line Wrapping

Tradingview: Line Wrapping

In last week’s post, we looked at creating functions. In it, I noted that line wrapping a long line in

Read More »
Tradingview: Creating Alerts

Tradingview: Creating Alerts

In this post, we are going to look at Tradingview alerts, how to create them and address some questions you

Read More »
Tradingview: Indicator Repainting

Tradingview: Indicator Repainting

I recently received a question regarding indicator repainting in Tradingview and quickly came to realize that it would make a

Read More »
Tradingview: How to create a For Loop

Tradingview: How to create a For Loop

In this post, we are going to take a look at pine script’s for loop, how to use it and

Read More »
Tradingview: Pinescript Debugging, Plotting, Tips and Tricks

Tradingview: Pinescript Debugging, Plotting, Tips and Tricks

Anyone who has coded in pine-script will no doubt agree that debugging can be a pain in the backside. Without

Read More »
Tradingview: Pine Script Indexing

Tradingview: Pine Script Indexing

In this post, we are going back to basics. Turn away now if you are anything but a complete beginner!

Read More »
Tradingview: Track when something happened

Tradingview: Track when something happened

As we saw in the Indexing tutorial, every variable in Pine script is actually a long list of values. One

Read More »
Tradingview: Stop Losses

Tradingview: Stop Losses

This weeks post comes courtesy of CryptoJoncis, a Backtest Rookies reader who got in touch via Twitter looking for some help

Read More »
Tradingview – Working With Ticks

Tradingview – Working With Ticks

In this weeks post, we are going to take a look at working with ticks in Tradingview. In particular, we

Read More »
Tradingview: Trailing Stop Mechanics (Beware Version 3)

Tradingview: Trailing Stop Mechanics (Beware Version 3)

This week we are going to take a look at Tradingview’s built-in trailing stop loss functionality. In particular, we are going

Read More »
Tradingview: Strategy Tester – Performance Summary

Tradingview: Strategy Tester – Performance Summary

At Backtest Rookies, we love to hear from our readers. Some time ago we received an article request from a reader who

Read More »
Tradingview: Pyramiding

Tradingview: Pyramiding

Today we take a look at pyramiding on Tradingview. We will discuss what it is, how it affects your strategy

Read More »
Tradingview: Strategy Forward Testing – Upper Timeframe Repainting Fix

Tradingview: Strategy Forward Testing – Upper Timeframe Repainting Fix

In our previous repainting explanation and overview, we discussed the fundamentals of repainting and how this can affect you. In

Read More »

QuantConnect

The following posts are specifically for getting started, see the main blog for more code snippets, reviews, advanced content. 

QuantConnect: Getting Started Introduction

QuantConnect: Getting Started Introduction

As regular readers will know, the content on this site has been centered around two platforms. To be more specific, those

QuantConnect: First Script Tutorial

QuantConnect: First Script Tutorial

Welcome to the first QuantConnect tutorial in the getting started series. This post will attempt to guide readers through every

QuantConnect: Plotting Our First Script

QuantConnect: Plotting Our First Script

In this post, we are going to build on the RSI script we created back in the first tutorial. Those

QuantConnect: Adding Other Timeframes

QuantConnect: Adding Other Timeframes

In this tutorial, we shall cover how to add different timeframes to an algorithm. You may have noticed that QuantConnect

QuantConnect: Trading Multiple Stocks or Assets

QuantConnect: Trading Multiple Stocks or Assets

In our previous getting started tutorials for QuantConnect we have focused only on trading a single stock. That stock was

QuantConnect: Accessing Previous Values

QuantConnect: Accessing Previous Values

If you are coming to QuantConnect from other platforms, you might be wondering how to access the previous close price or

QuantConnect: Handling Dividends

QuantConnect: Handling Dividends

As we learned in Backtesting 101: Dividends and Adjustments, dividends are a fundamental part of Investing. Yet they are often

QuantConnect: Working with Heikin Ashi Data

QuantConnect: Working with Heikin Ashi Data

This week we return to QuantConnect for an article on working with Heiken Ashi data. We will cover how to

QuantConnect: Create an Indicator – Awesome Oscillator

QuantConnect: Create an Indicator – Awesome Oscillator

Continuing with the QuantConnect series, we shall turn our attention to indicators. There are actually a lot of cool things

QuantConnect: Adding a Library

QuantConnect: Adding a Library

Anyone who has managed to get a little further than a simple “Hello World” tutorial in Python will have had