I taught ChatGPT to use PINE SCRIPT

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 98

  • @TheArtOfTrading
    @TheArtOfTrading  Před rokem +4

    🚩 My Socials & Email Newsletter: theartoftrading.com
    🚩 Play with ChatGPT: chat.openai.com

    • @owlmaster1528
      @owlmaster1528 Před rokem

      It was trained on data until 2021 so it doesn't know the version 5. You can correct it to use in all future iterations of a code correct versions of syntax.

    • @alextop1850
      @alextop1850 Před rokem +1

      Be great to see update with chat gpt4 and get it to watch all vids on CZcams so it learns it

    • @alextop1850
      @alextop1850 Před rokem

      ​@@owlmaster1528 like to see more

    • @One-way
      @One-way Před 8 měsíci

      I wonder how it has progressed in the last 11 months.

    • @darnelljohn7077
      @darnelljohn7077 Před 7 měsíci

      @TheArtOfTrading I have very little coding experience but have a script I wrote with the help if chat gpt. I think it would be cool if you want over it. It's just a learning experience for me but maybe you can help me turn it into something cool some day 😎 probably too long to comment? 😜
      It's a MACD Q Leaning test

  • @tradingconbots
    @tradingconbots Před rokem +4

    ChatGPT is updated until December 2021 (I think) so V5 probably is not working. Its needed to update manually, but its very close to good version.

  • @clausbjornsten5068
    @clausbjornsten5068 Před rokem +1

    great video, matt - inspiring indeed ! .. this is what I got when asking about PineScript (and this explains the challenges wrt v5 syntax) :
    Q: tell me about pinescript ==> "PineScript is a programming language used to create custom indicators and trading strategies for the TradingView financial charting and analysis platform. It is based on the Pine programming language and is designed to be easy to learn and use, even for those without programming experience. The language includes features such as variables, loops, and conditional statements, as well as built-in functions for common technical analysis indicators and charting tools. PineScript can be used to create a wide range of indicators and strategies, including moving averages, RSI, and Bollinger Bands, as well as more advanced algorithmic trading strategies.
    Q: which versions of pinescript exist
    There are currently two versions of PineScript: version 1 and version 2. PineScript version 1 is the original version of the language and is the one most commonly used by traders and analysts. It is a synchronous and interpreted language and supports most of the common technical indicators and charting tools.
    PineScript version 2 is a more recent version of the language that was introduced to improve performance and add new features. It is an asynchronous and compiled language and includes new features such as the ability to define custom data types and improved error handling. Additionally, it also includes features such as multi-timeframe support and improved optimization for backtesting and strategy execution.
    Both versions are compatible with the TradingView platform and can be used to create custom indicators and strategies. However, some features and functionality are only available in version 2.
    Q: can you learn about pinescript version 5 ?
    I am not aware of a PineScript version 5. My knowledge cutoff is 2021 and up to that date, the latest version available was PineScript version 2. It's possible that a new version of PineScript has been released since then, but I do not have access to that information.
    I suggest you to check the official documentation or the TradingView website for the latest version of PineScript and its new features.

  • @eaglethree1
    @eaglethree1 Před rokem +28

    CHAT GPTs engine was originally loaded with data from before V5 came out, I think it may have even been cut off at 12/31/2021

    • @citizentraderx1741
      @citizentraderx1741 Před rokem +3

      This is correct, it's "knowledge" is based on old data. Pre 2022.

    • @MarcGyverIt
      @MarcGyverIt Před rokem +1

      Getting chatgpt to do pinescript v5 is very challenging for someone who doesn't code themselves. It's helped me do some stuff and I'm learning, but it really sucks.

  • @stephenmccurdy239
    @stephenmccurdy239 Před rokem

    It’s very intriguing. I used it myself the other day for about eight hours! I was able to create a usable strategy, that made money! It had a lot of trouble with certain aspects of code, Like creating code for a fixed stoploss, a trailing stop loss and a fixed target. It worked, but not perfectly.
    From what I read, it does not know pine editor version five yet. And when you’re teaching it in a chat, it keeps everything in context. So, if it remembers it for the next person, I do not know.

  • @amn357
    @amn357 Před rokem +1

    I took it a step further and started to teach it version 5... by copypasta trading view site to chat... It started to write a thankyou for the new info then crashed mid way and just said "Sorry.. I cant complete the response."

  • @danietrader3519
    @danietrader3519 Před rokem +2

    Oh wow.....this was soooo funny, been following your channel and busy with your Pine Script course and seeing this made our day. Massive thank you for the hard work you put in, we learning so much from you.

  • @Haradeas
    @Haradeas Před rokem

    I never heard someone say this sentence as positive as you did: "well there goes my job" haha. Good vid m8

  • @umeshmardolcar5274
    @umeshmardolcar5274 Před rokem +1

    Very impressive. Nice video.

  • @toddnedd2138
    @toddnedd2138 Před rokem +1

    ChatGPT was trained with data until end of 2021, there was no pine script version 5. Even with pine script V4 chatGPT does not always produce correct answers (so, we are not doomed, the intelligence needs to be in front of the screen furthermore).
    What you can do, is to give chatGPT the language definition. I did this for MCode (it is an exotic language to control motors). Then it produced astonishing results.

  • @davidrol5864
    @davidrol5864 Před rokem

    The reason version 5 didn't work is its new and the input of this AM was cut off at 2021. Version 5 hasn't been added yet.

  • @trendlab22024
    @trendlab22024 Před rokem +1

    Enjoyed this video very much! Good timing, since I also just heard of ChatGPT and am testing it out myself. The model appears to have learned on pre-2021 data. PS version 5 came out in October 2022, so that may explain why it used version 4. Still not sure if it can permanently retain real-time "learning" or if it's in true learning mode. It said something about the OpenAI team having to manually update it...

  • @schimmi72
    @schimmi72 Před rokem

    Funny video. ChatGPT is trained with 2021 data. Is version 5 perhaps newer?

  • @sameermokashi7106
    @sameermokashi7106 Před rokem

    Can it tell us to take strike price of nifty option for INTRADAY or positional for buy or sell

  • @emon8779
    @emon8779 Před rokem

    Mastery course grad, here. ChatGPT is an amazing tool in the hands of someone who knows how to prompt it and correct the errors it kicks back. Things which would have taken me weeks have taken me minutes with ChatGPT and my knowledge.

    • @Andrew-dj1wd
      @Andrew-dj1wd Před 9 měsíci

      How many hours or months did it take to complete the Mastery Course? Can you comment of the course?

  • @floridalaureen
    @floridalaureen Před rokem

    Very interesting, entertaining and scary all at the same time! Thanks!

  • @Derrywerry
    @Derrywerry Před rokem

    Well, then we are at least two traders/coders giving it input :D Great vid!

  • @PrestonedTucson
    @PrestonedTucson Před rokem

    yo known this guy for years in the troll boxes at trading view... I like the hunger he has, always putting up data, always hitting the "author" front page. He understands the grind, even though i don't agree with most of his posts, but RRR is each to their own :D Keep trading and trade safe everyone! The art of Trading GGWP, C ya in the troll boxes - Prestoned

    • @PrestonedTucson
      @PrestonedTucson Před rokem

      oh yeaa. Guys do know it uses crypto tokens like ADA GABBAGE DeVinchi and another one i cant remember, this "free" session is a big burn. Don't get chopped on the relief rally :P. DYOR go to pricing on their homepage. :D it's very interesting to see the Utility tokens actually being used in their Chuckee Cheese Environments :D

  • @jacobking6223
    @jacobking6223 Před rokem

    now how good can it be at converting pinescript strategies to m1l4 or 5

  • @MTorch-oq6nl
    @MTorch-oq6nl Před rokem +2

    Chat GPT cannot code anything complicated without errors. it even forgets what version it is coding in. Even when you have it read the whole version 5 manual. You'll spend days just trying to convince it it made mistakes

  • @Nowheredotcom
    @Nowheredotcom Před rokem

    I've been using this alot... and yes its always references old syntax. Its annoying

  • @zilibabwei
    @zilibabwei Před rokem

    I'm all tied up at work, but I can't wait to watch this later to see how you did! I've been trying out chatGPT+pinescript for the last few weeks and my take away has been... it will always give you an answer, even if it has no idea what its talking about. Yep, its THAT guy. And so then I'd say to it, "actually thats not right... it won't compile." or "that won't work. It will return an error." and EVERY time it'll say something like, "oh sorry. You're right. The correct way to do it would be to ___." And THAT would be wrong too! And it would do the same thing again with new, equally incorrect code/info! Over and over. Its like a malignant narcissist- it just can't admit it doesn't know! (I also think it was getting pinescript and python confused? But im not sure about that.) HOWEVER! I actually like using it because its smart enough to know how to give you suggestions that can redirect your thinking to discover clever ways to solve problems or design strategies. So in a more broad strokes way, I found it useful. But its a little ways off from being able to code for you. Bottom line tho is... I enjoy talking to it as I code! Its fun, and there were moments where I thought.. "oh, you're right GP! (I call it GP) That WOULD be a good way to accomplish that!" So in the AI world as in my personal life, I'm ignoring all the red flags and running straight to the pathological liar! No, but seriously... its brand new tech. Its decent for brand new. And I think its not too far off to where it will become terrifyingly useful and then... yeah... maybe put us all out of work and take over/destroy the world. We shall have to wait and see.

    • @zilibabwei
      @zilibabwei Před rokem

      @theartoftrading Great video - finally had the chance to watch it! I honestly didn't try to teach it as much as you did (guess its that teaching compulsion you were talking about) and I'm pretty impressed that it started to use the correct syntax. I didn't even bother because I assumed it wasn't able to 'learn' at all, or at least not in that way. Based on what it often says, I assumed it was in a fairly static state. I thought after it started using the ta.____ syntax, it would revert back to its "programmed way" in subsequent responses... but it didn't - it, after a fashion, learned that ta.___ was the correct structure. I'll reiterate what I said above: its pretty good for a beta and a 'first version' of a real publically accessible AI (not counting cleverbot and things like that.) It says very often that it does not have access to the internet and can't really look things up. With self-teaching algoriths in place and fast processors creating millions of iterations a minute, it honestly does kind of scare me a bit. What AI is going to be capable of really is or should be cause for concern and I hope those at the forefront of this tech are... aware of the gravity of the situation and proceeding cautiously and ethically. It seems a no brainer that AI will become self aware without too much difficulty. Lots of ethical/philosophical questions and debates are about to be reasked and rehashed. I liked your responses to it during the AI-armageddon portion of the video. After all of its responses I thought, "That's exactly what a AI bent on world domination WOULD say!" Well... god help us and all that. Great video - thanks!

  • @TradeFav444
    @TradeFav444 Před rokem +1

    Great video DEREK

  • @lifestylehealthwealthhappiness

    if you simply had asked it to tell you version of PS it is trained on it will TELL YOU V4 is the only version it was trained on.

  • @mariocollado5072
    @mariocollado5072 Před rokem

    Amazing video! Incredible surprised for ChatGPT's AI intelligence level. Loved when you called it Dobby. 😂😂😂

  • @saralkatna9142
    @saralkatna9142 Před 10 měsíci

    9 months later, it has surely improved a lot. From throwing incorrect syntax at every line to almost completely correct full strategies, it has come a long way.

  • @Roshangfsghsfh
    @Roshangfsghsfh Před rokem

    Is it possible to set lot size on pine script based on equity avilable on mt5?

  • @juhalanta456
    @juhalanta456 Před rokem +1

    It only learns , based on your current chat. If you close all these chats and start over again it didn't learn anything new it will use again same database as before. I think it's a security feature so it's not misused for something illegal.

    • @bodanerius
      @bodanerius Před rokem

      I was gonna mention that too. t seems like it gets stuck in a loop. If it makes an error early it really has a hard time undoing that. Its better to just close the window and start afresh with a more specific question

  • @TienTran-dn3jl
    @TienTran-dn3jl Před rokem

    Interesting video! They have a lot of thing to do to get Chat GPT better 😁

  • @Nasimabdalla2014
    @Nasimabdalla2014 Před rokem

    thanks for useful info but chatbot doesn't support any data farther than 1/2022

  • @victorbuster1
    @victorbuster1 Před rokem

    gtp 4 has created me a profit factor of 1.7 177 000% on a 15min chart 123 total trades and 64% profitable trades. When using on a negative protection brooker it once went over 100% drawback, 102% to be presice but there's such potential to make huge money with spuper low risks

  • @kennyoh534
    @kennyoh534 Před rokem

    GREAT session! have a question. do you have any tutorials that show how to backtest combined indicators in pinescript, for example, combine rsi + ichimoku ( set parameters by users and so on) combine new indicator with sma etc please guide me if there are such tutorials in your videos, thank you so much

  • @gb-wq5ob
    @gb-wq5ob Před rokem

    Nobody can teach chatGPT from the outside, just in the frame of current chat/conversation up until the conversation is available, since it do not have memory over a chat, that is a painful limitation, but reasonable: in a chat a user can finetune by "teaching" what and how to focus on, out of chat it would be dangerous, like if you teach him something bad and its spreading, bad spreads everywhere.

  • @MrBabadude
    @MrBabadude Před rokem

    Note that Chat was only trained on data up to September 2021. If version 5 came out after that it would know nothing about it.

  • @eaglethree1
    @eaglethree1 Před rokem

    This is how I started to learn to code in Pine script. But it didn’t quite complete the syntax. Like you said it’s v4 or something.

  • @radityawaliulu
    @radityawaliulu Před rokem

    please explorer more chatgpt to optimize pinescript.

  • @damonsams
    @damonsams Před rokem +3

    I wonder if it would have given better responses if you told it to reference the Pine Script v5 User manual with the prompts. There are studies and education on how to learn what is called prompt engineer, which is all about how to talk to an AI to get the answers you want. In the future it may be that the AI can actually run the code to see the errors and auto fix on it's own.... Crazy! It's an amazing learning partner along with you of course 🙂

    • @illernpiller
      @illernpiller Před rokem +2

      Would matter, v5 was launched after chatgpt has info from. You could however paste in the entire v5 manual and it would know it for that conversion.

    • @philosophyze
      @philosophyze Před rokem +1

      I tried that and it didn't. However with the new plugins that type of exercise should be possible. Tell it to read the manual, test the output in a debugger, and correct it's previous training. This would have to be done per session since I doubt they want their model retrained by random people. I mean look at Wikipedia!

    • @victorbuster1
      @victorbuster1 Před rokem

      @@philosophyze just tell it to convert the whole script to version 5

    • @MarcGyverIt
      @MarcGyverIt Před rokem

      I've done this, it didn't help much.

  • @yawvoon2941
    @yawvoon2941 Před rokem

    Impressive!!

  • @billmietelski
    @billmietelski Před rokem

    ChatGPT is not up-to-date. Last time I asked ChatGPT how current its knowledge was, it responded 2021. I didn't ask for anything more specific than that. My guess is that ChatGPT has never seen version 5. At least, not yet. You might be able to teach it version 5 yourself. That would be fun. :)

  • @2WhiteOwls
    @2WhiteOwls Před rokem +1

    Wow this was really impressive. I heard the chatgpt database is at least 1year behind, so it doesn't know about pinescript v5 yet.
    Main question I have, can this thing come up with a profitable automated strategy? Hehehe imagine that...

  • @Andrew-dj1wd
    @Andrew-dj1wd Před 9 měsíci

    Çan you ask ChatGpt to use only your Library of Scripts to answer your questions? That would likely give better results.

  • @cms231
    @cms231 Před rokem

    Great video...though the title of the video misled me. I almost did not watch, thinking "this guy claims to have taught ChatGPT Pine Script", knowing that ChatGPT already produces Pine Script v4. A better title would have been to call it "I taught ChatPGT to update code from Pine Script v4 to v5". As stated by others, the ChatGPT database(?) was cut off at a date in 2021, before v5. My understanding too is that it only learns within the session. In some areas it would be great if it learned from everyone, for everyone, but I think the ramifications would be dangerous, as the "hackers" would try to do more harm than good.
    For fun, I would call ChatGPT as HAL, not Dobby, though I get your joke.
    Check out articles and videos that interview Sam Altman and Greg Brockman. ChatGPT is (in my mind) a lion cub, and we are keeping it contained as we train and develop it but know it cannot be let loose on the world just yet.

  • @jorgeam0897
    @jorgeam0897 Před měsícem

    how about creating a gpt agent??

  • @neeladrishekharmondal3087
    @neeladrishekharmondal3087 Před měsícem

    I try many times but chatgpt fail again and again. It mistake same mistake after rectify the same mistake in same code when it correct other error.

  • @sibonelelohlatshwayo7753
    @sibonelelohlatshwayo7753 Před 5 měsíci +1

    😂 this was funny. This guy is crazy

  • @BartCee
    @BartCee Před rokem

    I tried ChatGPT to use with pine script before I saw this. Great summary of what I experienced. It just keeps crafting stuff and literally makes s&!t up. Helpful but you are safe as an educator m8.

  • @mikescarborough9196
    @mikescarborough9196 Před rokem

    Fun fact: Chat GPT doesn't suck at Python as much as it sucks with Pine Script. But I REALLY wish it was an expert with Pine Script.

  • @ExpensivePizza
    @ExpensivePizza Před rokem

    ChatGPT is like that guy that does well in the job interview but can't actually do the job.

  • @Bilo-rp2nc
    @Bilo-rp2nc Před rokem

    Hi, I created a script with the help of chatGPT but can't be sure if it will work. Pine editor recognises it and no errors are found.
    I would like to back test it but no data is showing...
    I believe it's essential to backtest in order to see how good your strategy is.
    Can anyone help me understand why the back testing does not seem to work ? Thanks

  • @mirrorcube3709
    @mirrorcube3709 Před 8 měsíci

    thanks to you, the machine has learned how to replace you. i would like to thank you for training chatgpt because i use it to code pinescript for me.

    • @mirrorcube3709
      @mirrorcube3709 Před 8 měsíci

      so funny too, i spent all night using chatgpt ALSO trying to create script that can detect divergences on the RSI

  • @MrJaybird0730
    @MrJaybird0730 Před rokem

    Can't describe the level of enjoyment on the various dimensions, for me personally, but I'm glad that you pushed into AI with PScript v.X, and you have job security for a while, is my guess.

  • @spiki_x6863
    @spiki_x6863 Před rokem

    As helpful and convenient this tool might be, I always struggle with it. It gives me commands that don‘t exist like subplot() or array [] [] , just so I later find out that arrays in pinescript are one dimensional only.

  • @Stacyjtyler
    @Stacyjtyler Před rokem

    Can you ask it if it will take your advice into account next time?

  • @gundemkripto2344
    @gundemkripto2344 Před rokem

    I’ve asked chatgbt to code a strategy entry and exit as soon as the signal received without waiting bar close in version 4 but failed :)

  • @pandya36
    @pandya36 Před rokem

    Is your indicator work in Indian market?

  • @deva8496
    @deva8496 Před rokem

    those who have knowledge will know chatgpt focuses on speed but not accuracy. any chatgpt won't learn from us, we need to use another model for training.

  • @rickyp1834
    @rickyp1834 Před rokem

    I never ever works for me a code made for chatgpt in pine script

  • @philosophyze
    @philosophyze Před rokem

    Yeah, I tried Chat GPT 4 with Pinescript before I saw this and it isn't going to replace a good programmer yet.
    Machine Learning is dumb pattern matching at this point and the training data needs to be strategicly created to be up-to-date and version aware. ChatGPT is neither.

  • @Sovereignphoenix
    @Sovereignphoenix Před rokem +1

    It’s over for humans it will at best let us live as slaves

  • @DC-uf6ve
    @DC-uf6ve Před rokem

    Of course it's old, v5 wasn't out when the AI was trained. It's an AI not a fkin time machine.

  • @daspec
    @daspec Před rokem

    Its funny that it says it has no feelings, yet at the end said it was a pleasure (aka a feeling) to work with you. The devil is in the details!

  • @ITS_DAY_TRADING_THING
    @ITS_DAY_TRADING_THING Před rokem +1

    I don't know how to code anything but still I want to develop 1 indicator. Anyone interested in coding the indicator?
    If anyone interested then please let me know so I can record a video to explain the logic for the indicator.
    Please don't abuse but I am trying to get the indicator which will help me a lot to improve my trading

  • @mustavogaia2655
    @mustavogaia2655 Před rokem

    I experience the same kind of imprecision in legal documents. It can revoer some general info in the text but it is not able to summarise or extract the relavant elements on a case or compare with precedents or proper procediment issues. Sometimes I worrt it is not ready for prime time. It can be impressive for someone not used with some field. but as this video shows, a experienced human would do tha sema task faster. Maybe in five years AI willl read this comment and laugh, but himans are save for now.

  • @Stacyjtyler
    @Stacyjtyler Před rokem

    You can ask it to stop apologizing!

  • @robriste
    @robriste Před rokem

    Hey Matt, can you write me a script, plz, thx

  • @rainerrain9689
    @rainerrain9689 Před rokem

    You aren't teaching it anything ,believe me I've been going at it for a while now with pine 5 and pine 4. It just makes errors and all you have to do is copy paste the error line and it'll correct it {most of the time}. Most annoying thing about ChatGPt is when asking it to write a pine code and it won't finish the code if it's too long. No it doesn't have char limitation. I tried everything ,there's even threads on Reddit and still can't get it to complete the code,even if you ask it to pick up where it left off ,even if you mention the line it needs to start at. If you found a way around this please let us know. Thanks.

  • @Bleyenhoeve
    @Bleyenhoeve Před rokem

    You taught ChatGPT? 😂

  • @sinan_islam
    @sinan_islam Před 11 měsíci

    I keep saying this everywhere, but nobody gives a shit. ChatGPT is AI model that has been trained on the internet data. So when you ask it to develop a trading system, it has already seen the stocks. This causes lookahead bias, or atleast, the backtesting wont be real!

  • @illernpiller
    @illernpiller Před rokem

    You need to type pinescript not pine script.

    • @illernpiller
      @illernpiller Před rokem

      But basically what you did is teach it that when you gave it an example you taught it you write pike script instead of pinescript.
      You need to be extremely precise with your requests. Also learn about prompting, such as "act like a pinescript expert" .

    • @edreilley4539
      @edreilley4539 Před rokem

      According to Chat GPT, the correct way is PineScript.

    • @illernpiller
      @illernpiller Před rokem

      @@edreilley4539 yep exactly. Of you type pine script it gets hella confused.

  • @carlosmena7983
    @carlosmena7983 Před rokem +1

    Hi i want to automate a strategy can i have contact with you i need your help.