YouTube Video Transcript
[Music] hey this is David for big bits in this video we’re gonna continue our trading view pine script development series that we started in the last video where we began covering our basic indicator which was just a simple moving average that we plotted onto the chart we just had one simple moving average on the chart now in our second video we’re gonna add three moving averages but before we get started I just want to show you I’m not sure if I showed you this in the last video you’re not but when you’re working on your scripts and I showed you how to start working on them I’m not sure if I showed you how to have them show up on your screen but make sure you save them when you’re working on them so you don’t lose any changes but then also just as important if you want to see what you’re doing hit add to chart it’s gonna add the indicator to the chart and then as you make saves it’ll update the chart with the changes that you’ve made once you save those changes so in the last video we went over pretty much all the basics to the scripting for Indian indicator and in this one we’re going to be adding in two more indicators and honestly I know it’s not that difficult if you’re a developer but for those of you following along who don’t know what’s going on it’s good that we take this kind of slow the next video there’s gonna be a lot more changes which means the next video is gonna be a lot longer but for now we’re still trying to get a grip on what’s going on so let’s take a look here in the last video we only had one input and that was for our only moving average for the period the look-back period on that moving average now in this one we have three moving averages so obviously we will need three inputs that way users can configure each moving average and to be able to configure it you need to go up to the settings in your script and you can toggle that data or you can type in other ones and it’ll affect the indicator and that’s because as you can see we are doing the indicator calculation based on that input so in this particular case I changed our simple moving average to an exponential moving average and this is another built in moving average part of tradingview and it’ll tell you here when you hover over it it’ll give you some pretty detailed tooltips over what’s going on with these built-in functions and if you want you can actually hold down the control key and click these functions and it should come up with this reference so even though I’m giving you the links here you can also just control click some of these things now which is great I didn’t know about that the other day and it’s really detailed and give you quite a bit of information some of these things don’t make sense so you’re probably still gonna have to Google some things that aren’t super clear but it’s really handy if you kind of have an idea of what you’re doing so in the last video we only had the one moving average it was a simple moving average and it had the exact same code other than the the II wasn’t s so I mean it’s really easy to change what indicator you’re using if you’re just in here coding it say we want to actually change us to a weighted moving average that’s all you would have to do to change the moving average there I’m going to turn that back to an exponential moving average and you can see we did the same thing for the other indicators and we had different variables of course because these are all different indicators we need a different period for each one so we also need a different value spit out for each one so you can see on this one bar where these three dots are this is the m83 value this is the ma2 value and this is the ma1 value this one’s calculated a 50 period this one’s at 100 and this one’s at 200 by default so when we do these built-in moving average calculations it’s going to spit out the current value which is where we’re at right now these kind of operate in succession from beginning to end this is time series data so you can see the calculations are performed one after the other all the way through the script or all the way through the data I should say until we get to here and you can see the most recent version of these and there’s actually these are actually kind of an array and if we wanted to if we wanted to plot the previous value so we wanted to kind of offset it we could spit in the value of the array there and look at the previous version but we’re not doing anything like that now we’re just kind of doing a standard indicator just showing our exponential moving averages and we can see on the charts where they cross and get an idea of where maybe some support or resistance might be based on these moving averages and then beyond that the only thing left in the video is plotting the other moving averages and I said this video is really simple it really is the plots are probably the simplest thing you can do here you’re passing in the data that you want to plot so I told you just a time series so over time it’ll continue to plot and connect them with this and you can see we use a green color for the 50 period and the line width was 2 now I changed the line width and color for each one so they would stand out more from one another but that’s all there is to having three indicators on a single chart and changing some of this other information around and having a an input for each particular indicator so that we can change and configure this how we need to now this is just getting started there’s obviously a lot of things that we can change and configure about this and in the next video we’re actually going to take a look at making it to where we can configure the lines to select which moving average we want you can see the scripting tutorial 3 I rename this into triple many moving averages because in the next video we’re going to start looking at how we can allow the user to select different moving averages for each of these lines so instead of this happen to be a fixed value where it’s always an exponential moving average when they come in to edit the indicator settings not only will they be able to choose the period they’ll also be able to choose the the moving average type so they can choose simple moving average exponential moving average weighted moving averages they’ll get to choose through a number of moving averages that they can just quickly change in the settings here for the indicator but that’s all for this video like I said this one was going to be pretty quick if you’re curious you can always check out my trading view profile which I’m going to try to keep up to date I’ve been posting ideas and scripts left and right so that’s in the description of the video you can also find a source code for these there I’m also going to be posting these and my github account eventually they aren’t there as of the time of making this video but they will be shortly and just follow and like on YouTube here and I’ll see you in the next video we got a lot of great stuff coming up in fact I’ll give you a sneak peek I almost forgot so let’s load one of these new ones sorry this one what’s load more than the new ones go way ahead you can see we’ve got quite a lot here there’s a lot of input now and it’s also spitting out a lot of stuff too these are the outputs you can see it’s actually forecasting data past the end so there’s a lot of things we were going to go into including crossovers so stay tuned there’s a lot of great things coming and I appreciate you watching [Music]
YouTube Video Description
< br/> 🔻🔻🔻🔻 IMPORTANT LINKS BELOW 🔻🔻🔻🔻
In this TradingView Pine Script Tutorial we discuss adding more than one indicator onto a single indicator in TradingView with Pine. Multiple Indicators in One is an excellent way to bypass the limit on free accounts to only show up to 3 indicators at once. With Pine Script it is very easy for even beginners to create their own indicators that have many other indicators within them. Once we have completed the script, we can see our results immediatly and begin working with more functions and indicators before eventually moving on to creating our own strategies.
Social and other public profiles
💻 Website: https://www.bigbits.io
🎮 Discord: https://discord.gg/rapMn4z
🐦 Twitter: https://twitter.com/BigBitsIO
📔 Facebook: https://www.facebook.com/BigBitsIO/
📈 Buy, Sell and Trade Crypto on Binance.US with LOW fees: https://www.binance.us/?ref=35105151
🙋♂️ Want to buy crypto? Get $10 of bitcoin w/ your first purchase over $100: https://www.coinbase.com/join/johnso_dxz
📈 Sign up for a paid plan at TradingView and receive a $30 credit: https://www.tradingview.com/gopro/?share_your_love=BigBitsIO
💻 Browse privately and get rewarded with Brave Browser: https://brave.com/big406
🕹 Receive bonus perks when purchasing Lightnite Game: https://lightnite.io/ref=BigBits
VIEW ALL HERE: https://bigbits.io/bigbits-referrals/
DISCLAIMER: All my videos are for educational and entertainment purposes only. Nothing in this or any of my videos should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto coins and tokens. Consult with a professional financial advisor before making any financial decisions. Investing in general and particularly with crypto trading especially is risky and has the potential for one to lose most or all of the initial investment. In simple terms, you are responsible for your actions when trading.
#bitcoin #crypto #cryptocurrencies #tradingview #binance #binanceUS #coinbase
This channel focuses on Bitcoin, Ethereum, LiteCoin, Ripple, Link, Basic Attention Token and almost all cryptocurrencies that demand attention. Please like the video if you liked the video, and subscribe if you like these types of videos. David from BigBits is an experienced Software Engineer, but no one is perfect, If you find any issues with any of the open-source, free code, or code shown in videos please comment to let us know what to fix, we listen to our viewers!