rezahussain

Joined 6 years ago

Karma
46
Submissions
17
Member since
Jan 25
github.com/rezahussain
View on Hacker News

Recent submissions

Comment · 19 days ago
I dont think he knows about second Ultra, pippin
Comment · 1 year ago
These apps should have never been on the app store, the app submission guidelines say you cant make an app that rates people.
Comment · 1 year ago
Comment · 1 year ago
ml program for stocks
Comment · 4 years ago
This is really sad, I also share Chris's sentiment that the direction of the language is not going in a direction where it is simple and composable.
Comment · 5 years ago
youtube-dl didn't work when I tried it 3 weeks ago
Comment · 5 years ago
Yes, I just want to see some tensorflow specific benchmarks on the m1 max with 32 gpu cores vs 3080.
Comment · 5 years ago
I am very interested in hearing the opposite side against GME. Can you provide some points on why the main premise(that there is still a large short position which is underwater) could be false?

The DTCC new rules + ongoing restrictions at brokerages suggests to me something is going on. For instance tdameritrade makes me call in to sell covered calls on my GME position while they allow me to sell covered calls through the web interface for my other positions.

Comment · 5 years ago
Yes, model predictions on volume+price data from 2019+2020
Comment · 5 years ago
I used it in live trading last year, I couldn't really make it work.

I precalc my stoplosses + stopgains then use a simulation to get the win/loss probabilities on training data.

What I observed is the kelly formula really prefers the tiny stoplosses, so when you sort your predictions by kelly score it will pick the ones with tiny stoplosses.

What happened to me in the live test is the tiny stoplosses triggered, when a stopgain would have triggered later.

I know someone is going to say "thats a problem with your stoplosses+stopgains OOS performance" and they are right, but OOS stoploss+stopgain calculation isn't trivial for me to calculate :\

Comment · 5 years ago
I think its the issues they are seeing here https://forums.swift.org/t/differentiable-programming-for-gr...

Until the video of the last meeting is posted im guessing maybe its bc the execs set a deadline and it got passed

Comment · 5 years ago
I was using this project for my stock trading bot.

Way nicer to use Swift than python for this, and I have rewritten this bot several times in different languages + frameworks (objc php java python swift tf1.0 theano keras s4tf) since 2012.

Doing authentication for brokerage apis + correctness from pulling from the db is easier to get right in Swift than python bc of the static typing + grand central dispatch for parallel queries.

It is also way more productive for me to have the compiler catch issues at the beginning instead of 6 hours into a data generation job where the python interpreter sees a None for something I didn't think of.

Comment · 5 years ago
Comment · 6 years ago
I cant really tell what I am looking at, can you give an explanation?
Comment · 6 years ago
Yes!

1. I would start in the numerai tournament, I did this for 3 years after the first two years of me by myself on the market. It's useful because they provide ml ready data, and you can iterate very quickly. If you do not have ML experience numerai will teach you about many different types of overfitting and the many correct and incorrect ways to deal with them. An example would be some ML people always apply dropout, but when you have a small signal to begin with, dropout can dropout the signal, and then there is only noise left for the model to fit and of course it will then perform poorly. The other thing it will help with is the hopelessness that you will encounter from hitting a wall(hitting a wall is common in ML, and should be expected), the scoreboard shows individuals who have broken through that wall so you can know it is possible. I stopped participating after stabilizing in the top 20 because they change the format of the tournament every so often and I wanted my Saturdays back. You don't need to reach top 20, I hit a wall around rank 100 back when they used actual bitcoin to pay people. You just need to do well in one of the rounds where everyone else fails so you can go through the process of 'what did I do that I'm not aware of that made me succeed where everyone else failed'

2. Read Advances in Financial Machine Learning by Marcos Lopez de Prado. This goes over the false assumptions that outsiders make, and then outlines rookie mistakes(I made many of the mistakes described in the book, then read this book when it came out). It also will break you out of the thinking that leads to typical approaches and why it is unrealistic to expect them to work.

3. Become familiar with retail trader mistakes like overtrading, improper sizing, and emotions as well as the fact that you cannot rely upon regulating bodies to prevent fraud from occurring, they only act after it has occurred.(This is for scenarios where your models says short this stock, then you see that the stock is fraudulent but it continues to exist.) Learning blackjack probabilities + sizing helps with developing a strategy. Things like, do you want a trading system that has 60% accuracy and 10% profit each time, or one that has 45% accuracy but 200% profit each time. It's interesting because even if you have a 50% accurate 200% profit/50% loss strategy, you still need to calculate the probability of what number of losses you will see in a row that will still bankrupt you if you have the wrong size. In college for me this was covered under the Discrete Math Class.

After steps 1+2+3 I think people who have some level of control over their emotions have the right foundation to code a system. There are people that should not trade because they don't have the right personality profile.

4. Find a way to fit the data you encounter into a DB. Early on I had to pay 100 a month to get daily csvs for stock data. I wrote code that answered questions for me from the csvs. This was wasted time, because you can write SQL to answer so many questions. Keep this DB on a separate computer from the one you do ML dev on. Because the computer that ML dev happens on inevitably gets wiped(it will happen to you).

Then for you its a matter of just leveraging python+pandas etc to code a solution that meets your criteria. There are three categories that you have to operate across, infrastructure+forecasting+trading strategy. When you see one of your models predictions become true it really is a different feeling. But to ease my conscience I should warn you, if you are the curious type and you try this once, you will always be curious about it.

For timeseries data im currently using iextrading even though it has downsides(they only have data for trades that route through their exchange). I used to use kibot, alphavantage,scrape yahoo, download stock data csvs from ebay,and save etrade realtime quotes. For placing trades I am currently using alpaca.(I've used IB,etrade,and robinhoods private api before they blocked it).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton