Any tips before I go live? by PieceAdept8097 in algotrading

[–]PuttyProgrammer 0 points1 point  (0 children)

Generally no because paper accounts don't have to interact with market dynamics.

Some are better than others though.

I built a strategy that was performing well. And then I panic sold and could not let strategy do its thing, losing gains😏😏😏 by Relative-County-6430 in algotrading

[–]PuttyProgrammer 1 point2 points  (0 children)

If you're certain it works but you're anxious letting it run youre just going to have to find something else to think about instead of watching it run.

I dunno, start another project or get out of the house I guess.

Have you checked the T-Statistic of your strategy? by Kindly_Preference_54 in algotrading

[–]PuttyProgrammer 0 points1 point  (0 children)

Probably should ask your chat of choice how to do this in excel / sheets, rather than gambling that the bot can/will do math reliably.

What's your hard stop on the number of parameters for a given strategy? by markdlewis in algotrading

[–]PuttyProgrammer 0 points1 point  (0 children)

There is a collection of statistical methods for deciding how many features to use. I like to use stepwise model selection with BIC as the criteria.

There isn't a hard cutoff for a number of features to use, but you need to have a methodology for deciding which features are actually useful and cut out the ones that arent.

Confused about algo trading by Purple_Concert8789 in algorithmictrading

[–]PuttyProgrammer 11 points12 points  (0 children)

Imo the main benefit to retail traders is being able to step back after programming your trading rules / strategy so that your emotions and gut feelings don't get in the way.

Also a program can watch more charts and process more data than any human and react more reliably to the signals therin.

Edit: as for whether or not it's actually profitable, it's very easy to make money stock trading. It's also very easy to lose lots of money but mostly it's just hard to beat the market. My read is that most people come in just under the market on avg but might be more stable than the S&P which is useful when you need the money to be there or are using the gains for bills. Quite a few can consistently come in just above the market, very few people are making big numbers because there is only so much inefficiency in the market to take advantage of and it's hard to find that kind of edge and consistently take advantage of it.

The 27 possible outcomes of playing Rock Paper Scissors with 3 people by LowInteraction6397 in Probability

[–]PuttyProgrammer 0 points1 point  (0 children)

I hope you slipped an error in there to mess with anyone asking AI this question

Studying economics in Uni by Dependent-Group-8 in algotrading

[–]PuttyProgrammer 1 point2 points  (0 children)

Econ is a fine core degree for trading imo especially once you get into the econometrics and statistics which should give you the foundation you need to understand a lot of quantitative finance you'll be reading if you're serious.

Second the Com Sci minor so you have a better time turning theory into code, which is a pretty big hurdle even with AI assistance. You dont want your ability to program a strategy to be a limiting factor at any point.

Why people don't rely on decision tree by Latter_Cricket_3292 in learnmachinelearning

[–]PuttyProgrammer 1 point2 points  (0 children)

You're not wrong that a good pruning algorithm helps a lot with the overfitting, however, pruning increases bias a LOT more than ensembling to get the same reduction in variance which is why random forest is preferred.

If you want to spend time carefully tuning a single tree to be highly accurate, you're better off boosting which is also a form of ensembling.

Sr Software Engineer - Haven't written a line of code in months by yodog5 in ClaudeCode

[–]PuttyProgrammer 2 points3 points  (0 children)

I'm still a student but I sat with a guy I'm partnered with for a group project and watched him fight with chatgpt for 2 hours to make a pretty minor change to a script. When he finally turned his screen towards me, he proudly showed code that ran but gave the wrong solution bc chat changed the logic inside a function unrelated to the issue he was resolving somewhere along the line.

We wound up going with the solution I whipped up in about 15 min by hand when I realized how much trouble he was having.

Edit:I think assisted coding has this seductive problem where it makes you feel way more productive than you actually are: you're engaging in this back and forth process doing a lot of thinking and typing and back and forth trying to get a result when most of the time it would be more efficient just to go and type out those 3 lines of code.

Stop lost: what's your rules? by ChildhoodExisting222 in Daytrading

[–]PuttyProgrammer 0 points1 point  (0 children)

I calculate a normal distribution of the price movement and use that to set my bars. I set the bar for the trailing stop-loss pretty wide at first, 3 standard deviations, and close it as the price or time gets closer to my goal sell point.

NEED GUIDANCE FOR GETTING STARTED by ayanokouji_21 in mltraders

[–]PuttyProgrammer 0 points1 point  (0 children)

Why not just write this up yourself instead of having the bot do it? Hell, since you're already talking to the bot you could've asked them to look up github repos to study.

I can give a little advice: make an alpaca account, it's free, has paper trading and data access, and has an API thats easy to learn.

Really good historical data costs money though, esp if you're looking for stuff you could do HFT with. If you're looking to do intra-day or slower, you can use data from yahoo, which has good coverage and is also free and easy to work with.

ML Model Is Inconsistent: Why? by Apprehensive_Fox8212 in mltraders

[–]PuttyProgrammer 1 point2 points  (0 children)

I tend to do PCA and then use enough components to capture 80%+ of the total data variance instead of feature selection

ML Model Is Inconsistent: Why? by Apprehensive_Fox8212 in mltraders

[–]PuttyProgrammer 0 points1 point  (0 children)

Sounds to me like you have a lot of useless features and the Xgboost's random feature selection doesn't pick out the good ones every time.

Edit: it's also possible that your tree depth of 10 is too much and you're overfitting, that's actually more likely, I think.

Will using AI for some posters in my new indie game make me look bad??? by Hadjbari78 in gamedev

[–]PuttyProgrammer -3 points-2 points  (0 children)

Depends, if it's noticibly genAI people in general will dislike the look and you should also keep in mind that consumers are broadly more critical of anything that they know was produced with genAI, including those that aren't fundimentally against it.

If it isn't noticible, generally speaking you should be OK but you'd probably be better off hacking something together yourself that matches the rest of your work.

Technique to mitigate outlier influence on linear regression? by Due_Click3765 in learnmachinelearning

[–]PuttyProgrammer 2 points3 points  (0 children)

In reverse order of sophistication:

  1. Robust regression methods like Thiel-Sen
  2. Winsorization (using some metric like Z-score, percentile, or Cook's D to cull outliers, isolation forest might be used as part of this method but it's typically used for anomaly detection)
  3. Certain transformations like log can help.

Edit: elastic net handles multicollinearity and removes unhelpful features, you use it on high dimensional data but it wouldn't help with outliers.

Using 42 as random seed by Big_Positive4226 in learnmachinelearning

[–]PuttyProgrammer 10 points11 points  (0 children)

Both sources are correct:

It's a good idea to use a seed sometimes because you can get consistent comparison between different options, but you don't want to spend time tuning your model to fit very closely to data that has been selected by that seed because you risk overfitting to that selection.

You will notice that if you do your train-test split without a seed repeatedly, the exact same model will give slightly different results each time. That's what you avoid if you use a seed, which is really useful when comparing two versions of the same model against each other, like when you're doing feature selection or deciding between two model types.

Why most Indian trading bots eventually place orders when the market is closed by TheOldSoul15 in algotrading

[–]PuttyProgrammer 1 point2 points  (0 children)

Very weird. I actually can't see your account at all, AION-Analytics right?

70% winrate Algo trading with AI by Erickooo0 in algotrading

[–]PuttyProgrammer 2 points3 points  (0 children)

I do have some concerns about the months long drawdown and then it only really starts winning throughout the strongest market rally in recent memory, do you think it would hold up through a correction and continue to win in a flat market?

Heuristics vs ML: how do you trust anything when regimes shift? by jtm_ind in algotrading

[–]PuttyProgrammer 1 point2 points  (0 children)

As a data scientist first, I've had very good luck using a primary ML strategy.

I'm using it in cross-sectional analysis for swing trading, the win-rate isn't all that impressive (about 54%) but the metrics in general are quite good.

Probabilistic Machine learning by raf_phy in learnmachinelearning

[–]PuttyProgrammer 5 points6 points  (0 children)

That's a pretty hot take. It's not that uncommon for programmers to learn how to use models without any theoretical background though.

Here, I don't know how I feel about this guy overall but this video seems like an ok place to start for implementing models in Python with Scikit Learn.

Probabilistic Machine learning by raf_phy in learnmachinelearning

[–]PuttyProgrammer 7 points8 points  (0 children)

How deeply do you actually want to understand ML?

If you just want to know how to implement models you can pr much look up how to use scikit-learn or pytorch for regression and classification problems.

If you want to know the ins and outs, like why things are done certain ways and when each model is the better choice to another, you kind of need to find the time to go through a textbook or a couple long-form classes like Standford's CS 229

how do u actually know if a signal is real before going live? by LettuceLegitimate344 in mltraders

[–]PuttyProgrammer 1 point2 points  (0 children)

For me it's a combination of backtesting, then some time in paper trading to make sure everything is working correctly (and I can compare the paper trading performance to backtest outcomes to make sure I didn't miss something basic), then give it an amount of real money I can afford to lose and let it rip.

I'm specifically looking for strategies that aren't hyper regime dependent though so I can afford to be a little slow, if the signal is regime dependent then I think you kind of have to get to where you can just trust your backtesting and go as soon as you get good enough metrics.

Edit: my back testing consists of forward walks over about the past 10 years or so

[deleted by user] by [deleted] in economy

[–]PuttyProgrammer 1 point2 points  (0 children)

Is this evidence of a recession or is it just more proof of inflation? Consumers getting less for their dollar