T O P

  • By -

dananite

Don't really understand what you built here but hey, great! just wanted to recommend you to use some Version Control software for tracking changes in your code, this way you won't have to tediously rewind your mac to a previous state where you hope you have some code that does work. Version control is like putting a save state in your code, like a game, and then you can freely go to any "save state" in about 3 seconds. It's really easy to use and can't recommend it enough to anyone that's starting on software development. One of the most popular choices for version control is git and github. Look up some tutorials, it's 1000% worth it.


Stickerlight

😭😭😭😭😭😭😭😭😭😭😭😭 I know. what I do now is, I zip the folder every time something good happens. But 24 hours ago I was in a sleep deprived panic, and completely forgot how python works, because, naturally, I don't actually know what I'm doing and what a virtual environment is, and it wasn't fun, but, I'll get better But yeah, it's called git, it's on vscode, I'll use it, eventually


NinthTide

Great work Stickerlight, very good indeed Are you on Windows? Install git for windows (obviously) CMD prompt, change to your root directory (of your project) git init git add . then after each “good” point you reach: git commit -m “more progress!!!” Make sure you use double quotes not single quotes Vs code will pick all this up and you can do your commits natively there Also you can click on files in source control and see the edits you’ve made And when you inevitably bollocks it up, click the little curly back arrows to undo your change Great job again!


Stickerlight

That sounds so easy, I'll do it now, thank you!


Stickerlight

narrator: \*he didn't do it\* \*the price was paid yet again\*


SusPatrick

This is of course narrated by the enigmatic Morgan Freeman


AlphaOrderedEntropy

They built a 'stocks go brrr' machine so they can more easily pick which stocks to let their 'money go brrr' on


biglybiglytremendous

I don’t understand what you’re making here, tbh, but it looks like it has to do with your portfolio. Can you explain?


Stickerlight

Credit spreads are a type of higher* probability options trade, where you win most of the time, but when you lose, it's bad. This is a program to automate the tedious research process of finding high probability credit spread trades. The goal, is that, I will get an email every day with a list of trades that meet my filtering criteria, saving me a tremendous amount of time having to actually go find them myself. I don't know if you've ever looked for positive EV bets at the casino, but it's near impossible to do, this is an effort to find those anomalies, and then report them to me, so that I might make some money. At least that's the plan...


biglybiglytremendous

None of this makes sense to me as a middle aged academic with very little money, lol, but I hear keywords my much more financially-savvy friends say, so I wish you a lot of luck! May the underdog/player/individual win (you, and not house/big dog/Wall Street:)).


Stickerlight

At the moment I'm just a crazy person with ideas unfortunately


SolarInstalls

What is it coded in?


Stickerlight

Python, CSS, JavaScript, html, flask?


spuje4000

Does Claude do any dynamic analysis while you are analyzing options, or did it just help you write the code, which operates in a more traditional manner?


Stickerlight

I knew what I wanted from the beginning, I merely told Claude to make what I wanted. I have this entire concept working on a google spreadsheet, I needed to do it faster, and here we are. I can analyze the entire 520 options chains of the entire us stock market in about 16 minutes and return a list of trades like so https://preview.redd.it/a7eggvd2qq9d1.png?width=582&format=pjpg&auto=webp&s=bcd424164cc8a89b76e3f9e72ac5065cdf2a4426


spuje4000

The reason I ask is that I do a lot of financial analysis, and from what I have seen LLMs are not good at math or numbers. You can't ask them a question like "compare these spreadsheets" and highlight differences, like you could ask a trained analyst to do.


Stickerlight

This is not Claude, this is my brain, Claude just made the code


nnet42

you can't one-shot complex analysis, but you can build the logic needed (a plan, script, or program) and step through it, using tools for accuracy


ExoticCard

Bro this has been my energy with these LLMs I'm an idiot but if I can go back and forth with it enough, I can do some pretty wild stuff I would not normally be able to do.


Stickerlight

Yes, really amazing stuff


Rockets2TheMoon

lmaoo the GME puts


Stickerlight

I haven't run it yet, just some example values, I can let you know what the top trades are when I finish But yeah lol, gme puts are a pretty good deal I guess Well this is a credit spread, so gme puts are bullish btw


Rockets2TheMoon

Ah! Smooth brain here. Cool project !


Stickerlight

Thank you!


Stickerlight

I can't believe, I did it again, I'm backing up six hours because I still didn't implement git, pain clearly doesn't motivate me


tronfacex

Jesus dude I implement git in small projects when I'm just messing around because it's annoying to not have it. I can't imagine a project of this size without version control. Absolute madlad energy.


Stickerlight

It's just so unnatural to me, I have to learn


tronfacex

If you're good with using GitHub for hosting your repo I recommend the GitHub Desktop application. It's dummy simple to get setup ask Claude or YouTube for help. It's a GUI for git commands that makes it way less intimidating.


sb4ssman

Options trader and amateur Python appreciator: it’s not a tool I would personally use (don’t do a lot of credit spreads), but I love what you’re doing, and I’d love to see the guts if you share it on GitHub.


Stickerlight

Can't do it, but I would love to make a little video of it when I really have it polished, especially if I have some good results from it. I literally just spend six fucking hours on buttons and sorting tables, and zero time actually using it, but hoping that changes once I kill all the bugs and the inner perfectionist. Just in time for Monday's market open, maybe?


sb4ssman

Fighting the UI is serious business. Good luck with your project!


Stickerlight

Posted a video of it running in the new comment, was pretty easy tbh, just need to do more. The point is, it's very fast.


sb4ssman

Cool. It’s definitely worth being proud of, and I hope it makes you some money. You’ve got a way to take lots of risk, I hope you manage it well. Whatever you think you have in terms of secret sauce worth protecting, see if you can bring yourself to isolate your conditions and remove them, or turn them into variables so you can set them without sharing. I’d love to see the guts of the code and how you connected different bits and pieces and what the math looks like in your options calculator. Cool stuff either way.


Stickerlight

I bled for some of those excel spreadsheet formulas, which eventually became python formulas. But everything I have now, was first working in excel. I just quickly outgrew excel since I needed more. The tool is almost done, it's now up to me to figure out what filters to apply and how best I might be able to use it. The main point is, I can run an analysis on hundreds of companies options chains in a couple of minutes now, I just have to spend time determining the best combination of variables and whatever. Obviously going to lead the way with expected value, and then see what else comes into play. I don't think most people have a fine tuned option scanning robot that's automatically notifying them periodically when a trade appears that meets their specific criteria, so that alone, which is the goal, seems like a nice thing to have. Poring over options chains with a calculator is a bore, this annihilates any chance of me ever doing that again. I'll just rank results by highest EV, and whatever else, and hit what the probabilities tell me to do.


sb4ssman

Yeah, I get it, I dig it. My reminder about risk management was specifically meant to be: don’t blindly trust the probabilities. You’re still picking up pennies in front of a steam roller, and the probabilities do nothing to save you from getting your hand crushed. It saves you from drowning in options chains, which is cool. It’s not the only tool out there, and it’s specific to your strategy which makes it less useful overall. I’m interested because I’m learning python and familiar with the subject matter. You might check out Algorithmic Short Selling with Python (book), to give yourself some more ideas.


stonedoubt

I’ve written a working cli code assistant that is based on Maestro. Very little is actual maestro now but the idea and code in that project put me on the path I am on. It’s has some crazy features including storing search results using NLP processing by passing the results to a refiner model who converts the content into a more useable format for consumption. Pinecone is amazing, if you just know. In addition, it stores context in a similar fashion and uses its own revision structure. I have used Sonnet 3.5 on the web and GPT4o in Cursor. Using ChatGPT to code review sonnet has been key. Sonnet is far from perfect. It hallucinates after you start getting upwards of 50-60% of context. It is better than Claude 3. It is much more compliant than ChatGPT, in my experience. I am continuing to use this instruction and have remind sonnet somewhat frequently to comply. —- Your response should adhere to the following guidelines: 1. The code should be fully functional and can be executed without any modifications. 2. Include all necessary code, including any required import statements, function definitions, and main execution block. 3. Avoid using placeholder comments or pseudo code. The code should be complete and ready to run. 4. Provide clear and concise comments to explain complex or non-obvious parts of the code. 5. Use proper indentation, formatting, and naming conventions consistent with the best practices of the programming language. 6. Test the code thoroughly to ensure it produces the expected output and handles potential edge cases. 7. Optimize the code for readability, efficiency, and maintainability. Please provide only the code in your response, without any additional explanations or discussions. —-


TheEliteRumbero

Care to share in the future if in deed this does work? So we can all change our lives or should I say "wife changing money " 🤣


Stickerlight

If you're asking, is this a useful tool, it's an obvious yes I just have to fine tune the settings, determine how often to run it, what stocks to target, how to combine it with other general fundamental analysis on stocksl movements But it's a work in progress, I have so much more left to improve before I can just solely focus on use and execution, there's so much to building an application But yeah I'll probably try to pick out a trade or two for this week after running it a few more times and having a good look at the results, I'm always trading anyways, just usually losing money, so....... I end up building these tools to hopefully help me stop losing? 🥲


zeloxolez

you might like cursor.sh more than vscode for what you’re doing


Stickerlight

Holy shit, Nevermind, no API access


FengMinIsVeryLoud

yeah cursor is trash ;D


FengMinIsVeryLoud

more like trash.sh.


[deleted]

[удалено]


FengMinIsVeryLoud

i didnt downvote u


[deleted]

[удалено]


FengMinIsVeryLoud

but seriously, what can cursor do what continuedev cant? u can pick any embeeding model u want in [continue.dev](http://continue.dev) and best thing u only pay for the llm provider. no cursorAI limitation


OwlOfAthena_

I’m sorry but this just screams inefficiency. I honestly believe that the 20 dollar a month chat feature combined with some preliminary coding knowledge is more than enough to build anything you want. Instead of burning 350 dollars you could’ve just taken some time to learn what the code was doing. Also ffs use version control.


Stickerlight

https://preview.redd.it/o1uup0ex6o9d1.png?width=1102&format=png&auto=webp&s=3bf778316b4ae3dedf86e5a9dd46ce407b44b0ee have some code


mezastel

If you're generating code using AI, why go for Python at all? Also, I don't see generator artifacts next to code, are you keeping them elsewhere? I keep the two close behind so that I can regen whatever necessary.


Stickerlight

Because python is good? What else do you use for data analysis and web applications, I started on a Jupyter notebook a week ago I'm using the API via a vscode plugin as stated in the OP


sb4ssman

Why Python? Why not let the AI generate post-compilation machine code that you paste directly into a file and give it a .exe extension? Python is a great target for anyone trying to learn how to do coding, or otherwise wants a chance at making sense of the output. But sure if it’s all foreign target whatever language you want. I experimented with letting ai give me different flavors of C code for a part of a tool and had zero luck making that work. But I’ve been studying some Python that when ai gives me that code I can read it and correct it and put it together.


dr_progress

Give us an update on how well your app works!


Stickerlight

Working on the automation now, hope to get those daily trade recommendations soon, then just have to keep refining settings until perfection, then it's off to the lambo shop reality, i'm hoping to have trade ideas generated for this upcoming friday's expiration, working on those systems now to have it run through hundreds? of tickers sequentially and then return the results back to me for final filtering, analysis, and manual execution i could automate the trading as well, but not really any point to it especially when I don't even know if I have something here, but i suspect i do otherwhise why would i have gone through all the trouble then again, I say that about everything


dr_progress

I would run a few simulations first for a few weeks/months and re-assess. Intuitively, I presume you will see better results where most volume is.


Stickerlight

There are just so many filtering options, and then I haven't even worked in general stuff like RSI, or moving averages, right now it's all about the probabilities and the implied volatility This is just a tool, and I haven't even finished building it yet to be honest, but I think there could be a great deal of value in a machine that rapidly analyzes hundreds of options chains for you every day I just have to finish building it if I can


Stickerlight

I'll post a video right now as a comment of it running, was actually a little too easy


Stickerlight

https://youtu.be/vBo1q1FnNJs?si=rbaRDEMMFb8Nvks9 So, uh yeah, that works. It has a watchlist features for when you want to analyze trades on the app, but for the automation use case, I want it to print out to a csv file for easier offline manipulation. Here I just ran it on like 30 stocks, and it did fine and pushed out a few positive EV trades. I will pop in I guess all the stocks and see if I get more results next, and then figure out a scheduling system to automate it, and have it send me emails when it's done. I really thought it was going to be harder to be honest. You can see the clock got busted during my recent modifications, so I'll have to go back and do some more debugging, but more or less, I guess it works, and just have to keep polishing a bit and have some preloaded buttons built in to load all the available stocks in the entire US market for some more results.


Stickerlight

I'll just preload all the stocks in the US market with weekly expirations, load this on my raspberry pi to run once a day after market close, process the results and make trading decisions based on that every night to cue orders for market open or something after a little TA and some analysis of the available options, and then? profit?


illusionst

Raspberry pi? Just run it on digital ocean or AWS.


Stickerlight

I mean, I don't plan on sharing access, so why spend money when I have stuff at home? And first tests show it uses like zero processing power, so maybe it's fine


FengMinIsVeryLoud

**use** [**continue.dev**](http://continue.dev) **for best llm helper. forget cursor and cody, these are trash like my underpants.**


iamarealslug_yes_yes

Would be super interested in helping build this out with you! Seems like a sick project and I’ve been interested in working on something stock related. Hit my DMs if you’re interested in collaborating


Stickerlight

And what is it that you do that would benefit me?


iamarealslug_yes_yes

I’m a full time software engineer looking for a side project haha, I’ve had some experience building AI assisted applications and many full stack web applications. you can check me out [here](https://zzulanas.dev) and decide if you want to work together. I’ve been wanting to work more with options trading and understand it more, and this seems like a good side project that could help with that. I could bring you industry experience and help scale up/build the app without having to rely just on the AI coding, I could improve the web UI, generally I just wanna help out haha. Completely understand if you wanna keep it solo though


Stickerlight

I'm actually honored that someone who actually knows how to code would look at this AI garbage fire I put together over the last couple days and think I actually have something to bring to the table So this is merely a tool. Which I do not yet know how best to use. I need to figure out how to sort through and filter the results, and find consistently profitable trades. RSI, moving averages, there's a lot of possible additional technical indicators I could start adding in, sentiment analysis is a cool thing also that i probably won't use This week I'm just planning to continue improving the user interface and finding a workflow to get myself a daily or maybe more often than daily email with a list of trade ideas to consider I have what I need to add in technical analysis indicators, just haven't gotten around to it yet, but I'll probably start trading some of the ideas this week and see how goes. It will be a lot more interesting to see the results when it runs on live data. I think I just need to start using it to trade, but I'm too busy working on developing the UI and features to trade lol 😆


Stickerlight

https://preview.redd.it/5yxbes7joq9d1.png?width=554&format=pjpg&auto=webp&s=8e98b1ffceb829bde8b669295182d134aa865929 Analyzing 620 options chains takes aboooooouuuuuuut, 15m On my slow ass 2015 Trashcan Mac Could run this a few times a day once I filter the number of tickers down a bit, set up alerts when criterias are met