How To Create A TradingView Indicator | Easy Pinescript 5 Tutorial

preview_player
Показать описание

In this Tradingview indicator tutorial I demonstrate how to create a moving average indicator with alerts using Pinescript 5.

00:00 TradingView Indicators
00:17 Pinescript Basic Indicator
01:30 Custom Bitcoin Indicator
02:50 Adding Labels & Alerts
06:28 Pinescript 5 Updates
07:46 Conclusion

Subscribe to the channel for updates ✅

The content I create is to document my journey and for entertainment purposes. It is not under any circumstances investment advice. I am not an investment or trading professional and am learning myself while still making plenty of mistakes along the way. Any code published is experimental and not production ready to be used for financial transactions. DYOR and do not play with funds you do not want to lose.

Did I mention please hit the like button for the YouTube algorithm.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

This is an amazing video i was really looking for exactly this and lemme tell you brother there are not much videos like this you did a great got and we appreciate it thanks alot for educating me i would love to learn from you

amritpalsirari
Автор

Hi, thanks for the tutorial... I'm having an issue with line nr. 9. Always get this error "Mismatched input 'wait' expecting 'end of line without line continuation" I've triple checked code.

mr.bouncealot
Автор

for me in Line 11 "x=bar index" is not highlighted in red. and i get an error: Add to Chart operation failed, reason: line 11: Syntax error at input 'bar'.... ok found the problem... x=bar_index is the one to go

kingmonk
Автор

Hi sir james i have a tradingview premium buy i have a problem to how to share my script to my friends

CryptoMLan
Автор

Is it possible to make a library of indicators, like you can make a library of functions? (I realise indicators returning only one value - like QQE - can be in a library, but what if you have two or three values, like in channels?). I suppose I'm asking for something equivalent to procedure calls that occur in other languages. Can you call an indicator script from a strategy script, for example? It occurs to me that this would help make scripts shorter and neater, and stop a lot of "copying and pasting" between scripts. Thank you :)

GlynisDance
Автор

Hi James, I was just watching your pinescript tutorial and was wondering is there any way to code Williams Fractals as a trigger to enter the trade? Essentially getting you in on a higher low during a correctional period

jackgill
Автор

Hlo james plz make a indicator for indian stock market itz humble request

sukhpreetsingh
Автор

Hello I want to create a indicator containing following condition, last five 1 minutes obv in 5 minute chart.
And coded it as follows

Study (title = "OBV", overlay = false)
len1 = input(5, title = "Length")
Out1 = security(tickerid, "1", volume)
a = (change(close)>0 ? out1 : change(close)<0 ? -out1 : 0*out1)
b = sum(a, len1)
Plot(b)

Here I want obv of last five 1 minutes not previous obv' s
That means if I am checking a 5 minute chart at 12.13, I want obv values starting from 12.10 to 12.13. (the 12.10 candle)
If I am checking at 12.17, I want obv values starting from 12.15 to 12.17(the 12.15 candle)
But if Check at 12.13 trading view fetch last five 1 minutes obv starting from 12.9 to 12.13
If Check at 12.17 trading view fetch last five 1 minutes obv values starting from 12.13.
Here I want the five obv values for a specific 5 minute period . If the 5 minute candle is half formed (checking a 5 minute candle before it is completely formed that is checking a 12 .30 five minute candle at 12.32) That means checking a five minute 12.30 candle at 12.32 we can see only three one minute candles and their obv . So I want the obv of that 3 candles. If Check the at 12.33, we can see four one minute candles and I want that 4 one minute candles obv sum and as follows.
How to code it please reply ...
..

thestorysaga-tss
welcome to shbcf.ru