ChatGPT Trading Indicator Example for TradingView

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
guys in today's video let's see if we can get a chat GPT to create a trading indicator for us and I'll be using trading view for this which uses a pine script as the backend coding language okay so um yeah let's get this started uh okay so while it checks my browser yeah okay please create a trading View indicator in Pine script with the following approach so what I wanted to do is um I wanted to create a Buy Signal when show a Buy Signal with an arrow pointing up when the price is uh two standard deviations away from or rather it should be below the 20-day moving average 20 or rather than day should be the 20th period moving average and um a cell signal with an arrow pointing down when price is above the 20 period moving average allowed the user to change the number of standard deviations and the moving average period um standard should be a flow okay let's see what it gives us and um so my personal experience has been that um while it's able to create something that's close to the required output because there have been a lot of changes to Pine script recently and um and the I think the training data for check GPT was done earlier um that it does seem a bit outdated so like this one okay let's see oh okay first of all instead of Buy Arrow and cell Arrow just call it by and sell yeah and then so you want to buy when and the cell is cross under um yeah they should this should be the opposite of that so that's a mistake um Okay so the cell signal looks wrong it should cross above oh this is cell signals looks wrong because it should yeah because and even this M A minus SD devs ft Dev yeah this this is okay but there shouldn't be a step so let's correct that as well so as you can see there's there's a number of things that uh chat GPT gets wrong with uh Trading algorithms more so than the simple VBA so okay let's see uh why does SD players right because you just yeah you don't need a step for standard deviation okay call the study test um Okay so yeah I'm still not liking this code too much to be honest uh okay call the let's call the study test okay I don't think you need to buy underscore I don't think you'd be able to buy sick and sell sick you could just uh to the Arrow on by and sell yep so yeah this this seems unnecessary um so let's see okay okay so it's yeah okay and it didn't plot the the parents to apply the moving average as well as the standard dirt bands now quite a lot of iterations with um paint script to be honest and I'm pretty sure after this we'll probably still need to do some when we actually do the copy and paste okay but it um for the most part it does seem that seem okay Okay so well I think this is version one of uh something that's decent enough to be copy and paste that uh let's try that out okay let's save and I'm pretty sure there'll be some errors dial Okay so so it's saying there are some errors with the plot uh let's do this instead uh personally for for the arrow for the arrow what I I do prefer to do is to use plot Arrow instead of um sort of plot so let's just do that so let's try the Buy Signal plot Arrow by and then we will do the color up and uh yeah that's all so keeps things simpler color up equals to just color it green or teal yeah and then just skip the cell signal for now okay let's save that uh unidentified color gray Okay so yeah this could just be great yeah okay let's save the color of red oh red okay so save that and there you go so I guess you can see here we have a uh very simple uh trading indicator that that will give you a Buy Signal when your um when you're the price of your whatever you're interested in is in this case two standard deviations and we could modify that we could um so instead of two we could put it as three standard deviations and then you can see uh yeah if it closes below the third standard deviation on the next bar it will put in an arrow to buy yep so um hope you guys found this useful um as you can see there's quite a lot of editing to do with pine script and chat GPT but hopefully in future versions the um the code base is more up to date and there will be less editing to do
Info
Channel: Ctrl-Shift-Run
Views: 5,293
Rating: undefined out of 5
Keywords: chatgpt, trading
Id: _TRXHFs_k2E
Channel Id: undefined
Length: 11min 43sec (703 seconds)
Published: Tue Feb 07 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.