Transcript for:
Technical Analysis with TradingView in Python

what is going on guys welcome back in this video today we're going to learn how to do technical analysis with trading view in Python so let us get right into it not a g it's red all right so we're going to learn how to do technical analysis using trading view in Python today and this can be done very easily by using a package called trading view- SO trading view- technical analysis this is what it stands for and for those of you who don't know what trading view is it's essentially a platform that provides stock data and currency data and crypto data and allows us to do some technical analysis and one of the most popular tools on this platform is the charting tool the visualization tool which is very feature and you can use it to do some technical analysis and some visualization stuff the package we're going to use today is not going to do any of that it's not going to do any fancy visualizations it's just going to provide us with analyses that's going to provide us with recommendations quote unquote this is of course not Financial advice this video is just programming advice showing you how to do stuff programmatically none of this is to be considered investment advice you should not buy or sell something just because this package says so or the platform says so I'm just showing you how to use it but this package will give us the recommendation or the aggregated recommendations and it's going to give us a lot of interesting indicators we don't have to calculate anything ourselves it's a very easy to usee package so what we need to do first is we need to open up a command line and we need to install this package using pip so either pip or pip 3 install and then we're going to install trading view- ta once you have this installed you can start by importing from Trading view uh let me just see if it's underscore or Dash It's underscore of course since this is an import from Trading view undor ta import and we're going to import ta Handler exchange and IND the no actually not indicator we're going to import Port interval and what we can do now very easily to get information about one specific symbol about a stock for example is we can say something like Tesla equals and then we can say taore Handler and now we can specify a bunch of keyword parameters here and the first one of course is the symbol which in this case is obviously TSLA if you don't know the symbol you can just Google it uh and then we need to specify a screener and an exchange and for the screener now we're just going to specify here America and for the exchange we're going to specify uh NASDAQ like this uh and then we can also specify an interval which is why we import this interval up here so we can say interval equals and this basically defines how granular our data is going to be so how large the time gaps are between the individual data points and we can say here for example we want to have very granular data so interval do interval 1core minute which is quite granular um what we can do now with this Handler object is we can get information uh we can get an analysis from Trading view so we can say Tesla dogor analysis and you will see that this is just a trading view analysis object but what you can get from this object now is a bunch of different things or two very interesting things first of all you can get the summary and the summary is exactly what I said it's a recommendation to do something again not Financial advice here you should not buy sell or hold or anything because of this recommendation here make your own decisions if it was as easy as just following the recommendations and making money everyone would do it people are not doing it so don't rely on that um but what you get here is basically how many uh analyses or recommendations say buy how many say sell or neutral or strong buy or strong sell and then you get an overall aggregated recommendation from the the platform and you can change the ticker symbol here to something else like Microsoft to get in this case a cell again don't do it just because it says so but you can try this now for different stocks like Nvidia you can do it for AMD you can do it for maybe we can get a strong sell or strong buy maybe something like AMC what do we get here oh actually doesn't find it because it's not listed in a nastac uh but maybe we can get Goldman Sachs okay also probably not this in a ndaq um maybe we should go with is snap in a nest DEC I'm not sure no okay but we can go with let's go back to Tesla here you can get the summary like this what you can also get is you can get indicators and this is where the technical analysis actually happens because this is now just an recommendation what you can do is you can say Tesla get analysis and then you can get from this indicators and indicators is a list of a bunch of different technical analysis indicators now I'm not going to pretend that I understand all of them or even most of them but you can see stuff that we have already covered on this channel for example the relative strength indicator I hope it's indicator and not index um maybe it's index I don't know but then we also have the macd the macd signal uh signal so this is the moving average convergence Divergence then we also have exponential and simple moving average so depending on what you know and what you can do something with you also have the volume here High open low close stuff like that um but you just get a list of indicators and you can get a specific one if you're interested for example RSI and then you get the value so you can use this instead of doing your own technical analysis on the data you can just use this package to get it immediately from the platform to just get the raw value on demand of course you will need to have an internet connection but you can do it like that uh instead of calculating it yourself um so this is one thing that you can do the interesting thing is you can also do this for currencies and for crypto and you can can actually do this for a bunch of more things because there's a website I can copy paste it here the website is basically tvdb I think this stands for trading view database and then Brian the. def I think this is probably the username I'm not sure but this website essentially you can search it so for example I can say Nvidia and then you get a bunch of different uh combinations that you can use here so the ticker symbol The Exchange and the screener so those are the Val that you would actually use uh in here in the Constructor to get the respective um asset so this is something you can do you can also say Bitcoin for example BTC or maybe I can say Bitcoin I'm not sure if this is going to be listed here there you go you can say for example crypto Kraken and then BTC usdc um but this doesn't seem to be a complete list oh actually it is you just have to switch but then you can see here here you have the screener crypto different exchanges and then you have different symbols that you can ask for depending on what you're looking for so I can say Bitcoin USD okay actually doesn't work like this but maybe I can say BTC usdt and then you can see I get um for example here from this exchange uh but we can just go ahead and try it now so we can say for example that in specific um I'm interested in binance Bitcoin to usdt so I can say BTC usdt the screener is crypto and the exchange is binance and by doing that I basically get again the data for Bitcoin against usdt which in this case would be sell again doesn't have to be true we can change the interval I think it's one month should also be possible there you go in this case we get a buy because we have less granular data so that's also uh something that you might want to consider when doing the analysis or when getting the recommendation if you want to consider it at all um and of course now this works for currencies as well all you have to do is you have to go to the website you have to look for some something specific for some asset that you want to trade so for example we can say USD Euro for example um and then we can see here we have Forex uh FX IDC USD euro is going to be the dollar against Euro so you can just go ahead and try to get the data USD Euro screener is Forex and then we have the exchange now what you can also do instead of using the string is you can say exchange this is why we imported it exchange and then dot let me just see what the exact keyword was uh Forex like this this also works now this is still called Tesla you can ignore this we can just call it andler so that it's not necessarily a specific stock um but yeah you can see that you get the different indicators here you can also again say handler. get analysis indicators in general and you can use this to make decisions if you are confident that you should be doing that but again not Financial advice programming advice here so yeah this is how you can do technical analysis easily using trading view in Python so that's it for today's video I hope you enjoyed it and hope you learned something if so let me know by hitting a like button and leaving a comment in the comment section down below and of course don't forget to subscribe to this Channel and hit the notification Bell to not miss a single future video for free other than that thank you much for watching see you in the next video and bye