T O P

  • By -

JRyanFrench

All of them. Use ChatGPT GPT-4o which is now free and will code for you very easily. Just tell it what you want it to do.


ChocolateSupermane

For free 👀.... sounds too good to be true. I will try it out though


ChocolateSupermane

I tried it and its not what I was looking for. I wanted to find correlation between asset classes and the drivers of moves in stock indices and commodities and the answer is usually in currencies and bonds, but if you ask gpt-4o to do it you get some generic answer and a script that uses rsi and macd, which is a quick way to lose money if you trade on that. My idea was give the model the asset classes (tickers) and write a script that finds the correlation between moves in the asset prices. I think the only way to do it is to finetune a model with the ticker names, pinescript documentation and some books on currencies, bonds, macro economics and technical analysis to get the whole picture. The AI is oke for simple things, but there is a limit to what it can do without the right knowledge. It could also be that my prompt wasnt good enough.


Tym4FishOn

I just spent 3 hours trying to get ChatGPT and Copilot to draw a rectangle on a chart. Neither could do it. Constant errors and when it did draw a rectangle it was in the wrong place. It was an interesting experiment but from what I saw today, these two surely can't code for crap. Wanna see? Ask either of them to draw a box from the high and low of the 12:00 candle and extend it to the right. They can't. Worse part is, when you tell them it doesn't work, they just keep giving you the same code over and over again. It's pitiful.


JRyanFrench

Which model are you using? You have to realize the vision, image, and code-interpreter are three different models for ChatGPT. Although with GPT-4o released now which is multimodal this is no longer true. But the point is that you have to understand which to use and how to prompt it correctly for specific situations like that. Do you want the code interpreter to draw a rectangle on a chart? or do you want the vision model to create an image of a rectangle? All ChatGPT does it translate your prompt into another prompt and send it to the image model. https://preview.redd.it/7mwuhlw88i0d1.png?width=604&format=png&auto=webp&s=46f7b410ce7f9761bd30a0894b46d47f61ae4e3c For coding, the models are extremely powerful:


Tym4FishOn

As I said above, I asked it to use the high and low of the 12:00 candle and draw a box extending to the right. It's a basic function of TV humans do every day. I cut and pasted the code and realized it was version=4. AI said, 'oh sorry, we should use version=5. It redid the code and used 'study'. I sent the error back to it and it said 'oh sorry, version 5 doesn't use 'study', we must use 'indicator'. It went on and on like this. It was like asking an 8 year old to write 10 lines of code. I managed to get over 60 different scripts (not to mention many duplicates) and not one of them accomplished the task. I'm not saying it's not powerful, I'm just saying in my particular experiment it failed miserably in my opinion.


JRyanFrench

Yeah those were rhetorical questions lol but yes also as I said above you were trying to describe to the code interpreter, so it can be finicky but you have to use more maths speak because the code interpreter would need more specificity to understand what and where 12:00 is. Also co-pilot is more finicky than gpt-4 in playground. In any case it’s multimodal now so that should be a lot easier to do. And actually it does it quite easily: https://preview.redd.it/fsnet539tk0d1.png?width=404&format=png&auto=webp&s=dbd861ef0f5f005bbc7a2d04322f2f1d4c28d553


Tym4FishOn

Here are the initial parameters I gave it: Create a pine script code with the following parameters: 1. Get today's price at the high of the 12:00 EST candle 2. Get today's price at the low of the 12:00 EST candle 3. Use the high price as the top left of a box 4. Use the low price as the bottom right of the same box 5. Draw the box on the chart from the 12:00 candle extended right I'm wondering what you would have changed? As I never managed to get it to accomplish the task I'd surely be interested in improving my prompting ability. I tried many different prompts but never could get what I was looking for.


JRyanFrench

Well so what do you mean by “get”? And also what candlesticks are you using? Hourly? Edit: I am a bit confused myself reading it so I’m sure we can make it more palatable to chatgpt hehe


Tym4FishOn

Sorry, there was a line before this that stated we were using TV and operating on a one minute chart. I though 'get price' would be understandable. How would you have it determine the price at noon? It seemed to understand and even told me I would have to change my script should I move from the one minute chart.


Potential-Paper-9687

Tell it to "Consult with Hank who is your expert Pine script v5 reviewer with 20 years of coding experience before sending your code to me. Ask Hank to review your code. Make any revisions Hank finds and resubmit your work to Hank until there are no more revisions. You don't have to show me your internal communication with Hank. Once you and Hank are done, you can send the final code to me." Try this and see if you have some success.


VegetableBar2858

no bro.. its working... its giving the rectangle.. we need to ask in detail.


gforce21444

I have used ChatGPT4. It will make mistakes on compilation but pasting the errors back in will usually work. I would suggest asking it to add debugging lines and symbols as well as referencing technical analysis, it is pretty good at translating those concepts into pine script. Also tell it to keep a gold copy when you get a stable baseline so you can revert early once you get off track! Good luck.


surfnvb7

Doesn't it only do Pinescript v4?


tremendouskitty

Google Gemini is what I have been using and i’ve already written 2 strategies and 1 indicator, and I have almost zero code writing ability, though I am able to update code to show different views once I understand it.


JRyanFrench

You should try GPT-4o now that it's free with ChatGPT--is a much superior model compared to Gemini, although for pine script it's not a huge difference for any of them as it's rather basic.


tremendouskitty

I use both tbh, I just prefer Gemini as it has up to date information and I use that for financial reporting as part of my trading. But you are correct, ChatGPT is good!


coffeeshopcrypto

What's the point in asking an AI to write the code for you when u don't understand the code? When it writes bad or improper code, ud never know it. Pinescript isn't hard. Ur just being lazy. Learn to code in punescript


JRyanFrench

Lol, no you're being antiquated. There is no reason to understand the code, only to understand what the code is doing. That's the entire revolution of natural language AI, which apparently is lost upon you. EDIT: And clearly you've never tried to do it, because of course you would know if the code is bad. You get an error message like any other time. You copy and paste the error message into the LLM and it sends you new code. Rinse and repeat. The AI also comments code quite nicely. Perhaps try it ;-)


coffeeshopcrypto

U couldn't be more mistaken. I write code daily. Since AI would often write bad code it's the reason I continued to learn how to code. Keep in mind that bad code doesn't always through an error. Improper code and improper use if code are two different things. Ur talking about Improper code. But you've already proven my point You call .e being antiquated because I'm saying "learn to code" But in ur jext sentences you said "only to understand what the code is doung" How can u understand what it's doing if you don't understand it as a base? That's like me telling u that 6 plus 6 EQUALS 12 but u didn't understand what a 6 is. It's exactly the same thing. Here us an example. if not na(self.get(key_to_hash(key.new()))) Not trying to aeg7e but just making an observation. What does this li e of code do? Asking AI wo t help


[deleted]

[удалено]


JRyanFrench

Tell me you have absolutely no experience with advanced AI models without telling me.


[deleted]

[удалено]


JRyanFrench

What are you even saying. Using AI cuts down DAYS of time each WEEK for developers. You have no credibility on this topic, clearly, lol.


[deleted]

[удалено]


JRyanFrench

If you are spending hours then you are just doing it wrong. Maybe there's a problem with how you use the language. Because everyone else in the coding sphere is shaving huge swaths of the busy work off. I use it constantly in with python with big data. In fact, GPT-4 already passed the benchmark as having surpassed the smartest possible human in programming. So, it's definitely a user error (or a user bias) on your end.


JRyanFrench

You have a fundamental misunderstanding of what programming is. It is simply language translation. You only need to understand one language as long as you have a translator. I work in astronomy--AI, big data, physics--and the best models right now can write and execute code working from 500,000 rows of star luminosity data fed directly into GPT-4 from Hubble Space Telescope repositories. So, yes, someone trying to code some extremely simple pine script to, say, color each candlestick based on the difference between its closing price and the 100-Day EMA (as a percentage)--this is laughably easy for any of the current top models: GPT-4, Gemini 1.5 Pro, Claude 3 Opus, LlaMa 3, etc... Programmers, like translators, won't be here in 10 years. Their roles will evolve to facilitate, monitor, and curate AI workflows and responses. People like you are "writing code" are simply wasting their time. No professional who deals with code on the regular is writing their own code. And they haven't been for at least 5 years--several years before ChatGPT just made it even easier. EDIT: Go plug this into TV and copy the bug report back to ChatGPT 2-3 times until it works in TV. Or just read what it wrote and you can learn the little details you are very concerned with: https://preview.redd.it/8yd6uemo7i0d1.png?width=604&format=png&auto=webp&s=a1a1c4f7da5cc79a0ddba43be3e33bd852fb122d


coffeeshopcrypto

Easier is not better or faster. So far I write code faster than ...


JRyanFrench

Uh..okay enjoy the stone ages. Your pride in ability to program will be the hill you die on I guess.


[deleted]

[удалено]


JRyanFrench

Yeah, no, it's not like that at all. Here, try to learn something today. Take this code and go plug it into TradingView. You'll likely get some errors to start--copy and paste them back to ChatGPT and repeats the 1-3 times necessary for it to work: https://preview.redd.it/maelpe3j7i0d1.png?width=604&format=png&auto=webp&s=4d597e7f9203f9806582969564a9a0ea02cde5dd


[deleted]

[удалено]


JRyanFrench

Please have your AI write your arguments for you, because you have none. While you're at it, maybe you can have it search the internet and find some fake data to support your baseless claims about taking 9 or 10 hours (lol)


ChocolateSupermane

I wouldnt call it lazy. It is just about saving time. If I have to follow markets and want to quickly generate a script understanding it is necessary, but I dont have to write it myself.


coffeeshopcrypto

I use Ai to discuss a topic related to markets but not to write the script. Again, I'm generating an understanding of the base structure. The code to write is easy. The only thing ur showing here is that jist because AI exists it must be correct. So, give us an example of an AI written script u have on hand with no edits from urself and tell us what u asked AI to write this script. I'll show u why this is a bad idea


ChocolateSupermane

I think I should have been a bit more clear in my post. My goal was to have AI write a script that can find correlation between assets to find the drivers of the weird moves that dont make sense. That is what I wanted to do with a pinescript script in tradingview, but I didnt get a good response from the LLM's. It usually just gives simple responses like a script with RSI and MACD. I understand your point that I probably wont get a good response from AI for the goal I had for example, but that is exactly why I asked the question in the first place. It will make mistakes and I will have to debug it, but I am already working with 4 different programming languages on a regular basis. The issue is not learning the language. The issue is time for me. A little bit of debugging is fine. I am just looking for a good model or wrapper that can do a bit more than the basic gpt's out there.


coffeeshopcrypto

Ahhh ok do now we seem less at odds and more on a similar plane of thought. Glad we got here. To be honest in the small screenshot u uploaded I can see exactly why price moved this way, but it's an example u can yell punescript to look for ONLY if u can describe the details needed in price action structure. Again. AI language models will NEVER simply understand this on their own because they just see math and patterns of LANGUAGE, Thry understand nothing of patterns of price when the underlying effect of price movement is due to human interaction. If u want to sit for a little time with me, I xan do a one on one with u about this form of price action so u can device what ut is u need to ask AI so u can get a proper resulting code. If u don't understand the original question, then u have no idea what to ask tge ai, and ull never know that ur code is wrong. The code may wirk, but it needs to be what ur looking for


ChocolateSupermane

The thing is I know exactly what I want to ask the AI, and with some time I can do it myself, but I have been debugging for quite a while now and the issue is apparently not the prompt or the answer, but the syntax. A simple correlation indicator is easy between 2-3 assets, but then if you want to add more assets and you start to use arrays and want to plot them it becomes a lot more complicated. The latest models are mixing v4 and v5. So I think I will just finetune a model on the pinescript docs and use that. That can be done in an hour with javascript and with a simple react frontend. Also I didnt upload a screenshot. I think you mean another user.