Skip to main content

Source Code - Changing Bar Colors in TradingView / Pine Script

Source Code of Changing Bar Colors in TradingView / Pine Script

Related links

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:


👉 Blog

Comments

Popular posts from this blog

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

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.

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