Skip to main content

Posts

Showing posts from September, 2021

How to Draw Lines in TradingView Pinescript

 How to draw lines in TradingView pinescript? There are 3 ways that I know of on how to draw lines in TradingView  pinescript. And, these are: hline() plot() line.new() hline() The hline() or Levels are used to plot horizontal lines across the chart. It is commonly used in RSI to indicate the oversold and overbought levels . Let's say we have an oscillator that is very similar to RSI and we want to plot the oversold and overbought levels,  we can do that easily by calling the hline function: hline (price, title, color, linestyle, linewidth, editable) → hline And here's the example of trying to use the function: And here's the result when plotted to chart RSI + Levels (30, 50, 70) plot() The plot() function is often used to draw almost all lines in TradingView pinescript.

How to Change Bar Colors in TradingView / Pine Script?

 How to change bar colors in TradingView / Pine Script? There are basically two ways to change the color of the candles in tradingview. Here are they: Opening the Chart Settings Using a Script Opening the Chart Settings Click the settings in tradingview chart, the one with the cog icon . Click the Symbol tab on the chart settings. Easily modify the colors by changing the candle's settings (body, borders, wick). Chart Settings - Bar Colors Using a Script First let's hide the current bar colors by unticking the checkbox on chart settings > symbol. Hiding the Default Bar Colors After we hide the default candle colors we can now create our own custom c

How to Add an ATR Trailing Stoploss to Your Strategy - TradingView Script (+ Source Code)

How to Add an ATR Trailing Stoploss to Your Strategy in TradingView Risk Disclaimer ❗ The information provided on this post does not constitute investment advice, financial advice, trading advice, or any other sort of advice, and you should not treat any of the posts's content as such. Free Trading View Scripts does not recommend any cryptocurrency should be bought, sold or held by you. Do conduct your own due diligence and consult your financial advisor before making any investment decisions. Introduction As promised, in this post we are going to add a trailing stoploss strategy to avoid giving back the profits to the market. Out of all the strategies available for trailing stop, I am choosing the ATR . The main reason I chose this is that the ATR changes based on the volatility of the candles. It takes into account the huge movements of the candle to avoid being whipsawed more often . You’ll see what I’m t

Source Code - Simple 3-EMA Crossover + ATR Trailing Stoploss - TradingView Strategy

Source Code of Simple 3-EMA Crossover + ATR Trailing Stoploss TradingView Strategy Script Related links Link to the blog post Youtube video Source Code A Little Favor From You 😅 Since I give everything for free in this blog, please have time to support the blog by following or subscribing to some of my social media accounts: 👉 Youtube Channel 👉 Blog

Source Code - Simple 3-EMA Crossover TradingView Strategy

Source Code of Simple 3-EMA Crossover TradingView Strategy Script Related links Link to the blog post Link to youtube video version Source Code A Little Favor From You 😅 Since I give everything for free in this blog, please have time to support the blog by following or subscribing to some of my social media accounts: 👉 Youtube Channel 👉 Blog

Simple 3-EMA Crossover Trading Strategy - Free Profitable TradingView Strategy Script (+ Source Code)

SIMPLE 3-EMA CROSSOVER TRADING STRATEGY FOR BEGINNERS Risk Disclaimer ❗ The information provided on this post does not constitute investment advice, financial advice, trading advice, or any other sort of advice, and you should not treat any of the posts's content as such. Free Trading View Scripts does not recommend any cryptocurrency should be bought, sold or held by you. Do conduct your own due diligence and consult your financial advisor before making any investment decisions. Introduction In this post, I’m gonna show you a simple yet profitable trading strategy that anyone can use to trade crypto. We’ll only be using one type of indicator and that is the Exponential Moving Average. Later in this post i’ll help you code this strategy using tradingview pinescript so that we can easily backtest historical data and see if this strategy has a chance or not. Before we start, you might want to use my referral link on Binance