Pine Script

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

QuantNomad

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

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 →

Pine Script Strategy trading at specific days of the week.

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.

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 →

Download all US stocks from EODHD API for only 20$/month.

I’m happy that market data APIs are becoming increasingly accessible to everyone. This democratizes the market and gives everyone a better chance to make informed investments and trading decisions. With services like EODHD, you can now access US stocks for as little as $20 a month. Eodhistoricaldata.com does not sponsor this post, it’s just an Download all US stocks from EODHD API for only 20$/month. Read More →

TradingView Alerts – Get Notified Of Important Price Movements

Introduction Tradingview alerts are an excellent way to ensure you don’t miss out on any important price movements. The best feature of TradingView alerts is that they allow you to set them for multiple symbols at once. This means you can easily track your stocks’ performance across various exchanges without manually checking each time. You TradingView Alerts – Get Notified Of Important Price Movements Read More →