The Quant Nomad has over 6 years’ experience in the quantitative trading industry (15+ years in programming).
He has helped more than 200 traders and companies create/optimize their algorithmic trading models.
How to concatenate strings in Pine Script
No Comments

String concatenation is the main string feature in any programming language. It allows multiple strings to be joined together to form one larger string. This is used in many programming languages to create more complicated strings. String concatenation can be used to combine strings of different lengths, as well as to concatenate strings of text and numerical data.

How to loop/iterate through an array in Pine Script with a “for/in” statement
No Comments

Arrays are pretty crucial for Pine Script. From the time of their release, it immediately became Pine’s essential feature. Some time ago, I published an article about how to loop through an array in Pine Script. But language evolves quite quickly, and there is already a much more convenient way to iterate through an array. How to loop/iterate through an array in Pine Script with a “for/in” statement Read More →

Sorting an array in Pine Script
2 Comments

Sorting is an essential feature of arrays in programming, as it allows the user to organize data easily. In this article, I’ll show you how you can quickly sort arrays in Pine Script. First, let’s define an array we want to sort: The primary function to sort arrays in Pine Script is array.sort. You can Sorting an array in Pine Script Read More →

Pine Script Strategy trading at specific days of the week.
2 Comments

In this article, I’m showing how to work with days of the week in Pine Script and an example of a simple strategy built with only days of the week signals. To know the current day of the week, I’m using “dayofweek()” function. It outputs numbers from 1 to 7 depending on the day of the week. Be careful with the values, 1 is Sunday, and 7 is Saturday here.

Add a parameter to allow Pine Script Strategy to be long or short.
No Comments

Trading strategies can vary greatly when applied to long and short positions. So traders might want to use different parameters for both sides. Furthermore, traders may develop different strategies for managing risk when taking a long or short position. By understanding the differences in strategies for long and short sides, traders can make informed decisions Add a parameter to allow Pine Script Strategy to be long or short. Read More →

Creating an alert directly from the TradingView chart
No Comments

Alerts are an essential feature of TradingView that can help traders stay on top of their trading activity. With the ability to create an alert directly from the chart, traders can set triggers for key levels, patterns or indicators. For example, if a trader is looking for a break of a support or resistance line, Creating an alert directly from the TradingView chart Read More →