Category: Algo Trading Using Pine Script

MarketSecrets - Learn To Trade Like a Pro

How To Plot HTF EMA in TradingView Chart using Pine Script?

Mar-How To Plot HTF EMA in TradingView Chart using Pine Script? Today’s lesson will cover how to access higher timeframe price data in your custom Pine Script indicators. As always, this lesson builds on the knowledge from previous lessons, so if anything doesn’t make sense here please go back through the other lessons where everything we’re…
Read more

How To Identify Candle Patterns Automatically in TradingView using Pine Script?

In this episode I’ll show you how to detect basic candlestick patterns using Pine Script. We’ll focus solely on Engulfing Candles for now, but the process involved in identifying them is similar for all other candle patterns such as pinbars, shooting stars and hammers, dojis, higher-high higher-close and lower-low lower-close candles. If you’re inexperienced with…
Read more

How to create custom indicator in TradingView using Pine Script?

In this episode, we are going to create a multi time frame indicator. Sometimes, we want data from one TF on another timeframe. Simple example is daily pivot point. Regardless of any timeframe we are trading like 5M, 15Min, 1 hour, we always want out pivot points to be plotted based on the daily timeframe…
Read more

How to modify Algo-Trading scripts without coding in TradingView?

How to modify our scripts without coding? A cool feature about Pine script is that we can create custom inputs to easily change the parameters of our strategies and indicators. We have discussed about this in detail in one of the earlier episodes. Let’s take it a step further now Take a look at any…
Read more

How to create algo strategy to automatically trigger reversal trades when a stock moves a certain %?

This can be used as base for 52 Week HL Strategy and as a base for any breakout trade as well. But in this episode, we will be focussing on triggering reversal trades when a stock moves by 3%. So if a stock moves up by 3%, we will short it and viceversa. This is…
Read more

How to set targets and stop losses dynamically in TradingView using PineScript?

How to set targets and stop losses dynamically? In our last episode, we created a simple crossover strategy. In that strategy, the trade execution was determined by moving average crossovers and crossunders. We will now build on that script and set specific stop losses and take profits instead of waiting for crossovers to happen to…
Read more

Creating and Testing a Algo (or) Strategy in TradingView using PineScript

Sept-Creating and Testing a Algo (or) Strategy in TradingView using PineScript At the start of the series, I mentioned there are 2 types of pine script. 1. Study 2. Strategy Study is simply indicators, where as strategies are the real core which can be used for algo-trading. Whatever we have seen in the last 4…
Read more

How to Calculate and Plot SMA in TradingView using PineScript?

In the previous episodes, we have learnt the basics. Now it’s time to take it up a little further technically. How to get and plot the SMA? In the previous episodes,w e learnt how to plot the price chart in trading view. Now, we can use that as a base to plot the SMA. The…
Read more

How to Work With Custom Inputs in TradingView using PineScript?

Most indicators you make will not be suited to permanently hard-coded variables. Often you will want to change certain settings on the fly such as the time period, the timeframe, overbought/oversold thresholds, etc. Having it in the code will make things complicated unnecessarily while customizing it, so an option to change the variables or inputs…
Read more

How to plot the Highest High and Lowest Low in the TradingView Chart using PineScript?

In this lesson we’ll learn how to plot the highest high and lowest low on your chart for the past 50/100 candles. Drawing To The Chart First, start a new script and name it whatever you want. I am calling mine “Episode 2”. Note, this is the same script we used in the previous episode as…
Read more

error: Content is protected !!