Lurker News

Comments (337) 101 threads

Earlier comments
SirLJ2 replies#
Stock market trading systems, so I don't have to watch screens, also backups and also constantly improving monitoring for smooth operations
kensoh2 replies#
I used to write trading systems for Amibroker. This one signaled the 2009 march bull market in equities and oil. But it is a swing/longterm trading system. I was a daytrader so it is not really useful for that.

https://github.com/tebelorg/Tump/blob/master/trading_z.js

SirLJ1 reply#
Thanks, Looks very interesting, my hobby is to back test different trading systems, so I will take a more deeper look into it next week...
kensoh#
Have fun! This one is a trend-following system for swing/position trading. It hasn't been backtested to factor new market behavior for the last 6-7 years, so it'll probably do badly now. My failure was not being able to convert that for daytrading timeframe.

PS: anyway, sorry for digressing away from the topic of the HN thread lol

dmak2 replies#
Reading into this, and this seems pretty dense. Any suggestions for beginners who are Software Engineers but need more explanation in this domain?
kensoh1 reply#
The trading domain knowledge can be found from various online resources. I used to make a 200+ slide powerpoint on the technical analysis aspect of trading but it is probably irrelevant now as markets had changed much since the introduction of algorithmic and high-frequency trading.

I was writing that script for Amibroker platform (https://www.amibroker.com) but I believe the market leader is probably something like MetaTrader (https://www.metatrader4.com). Also, for developers or software engineers familiar with Python, Quantopian might be something you'll enjoy using (https://www.quantopian.com).

Continue this thread — 1 reply

SirLJ1 reply#
You can check my older posts for books I have recommended to get you started

Continue this thread — 1 reply

dmak2 replies#
How can I get started with this? Did you create machine learning algorithms too?
SirLJ#
First you need data 20 years will do and then you start back testing every trading system you can find with the main focus on limiting losses when you figure this part out you just need to find a slight edge in the market and the compounding will make you rich in the comming years...
sumedh#
Google "Trend Following Systems". The simple systems follow the moving average and triggers a call if the share price goes up or down the average value.
natch#
Many things. Trivial one, recently wrote a script to electronically sign six documents from my divorce and related tax paperwork using ImageMagick. Just to avoid having to do it with Gimp or Preview or some other GUI tool, and then re-do it when there are revisions. Yes there are online tools but I'm working with people who don't use those, nor do I want to upload these documents anywhere I don't have to.

Often I'll spend as much time writing an automated solution as it would take to do the task manually, even if I'm only going to run the automated solution once. The work is way more fulfilling, and I can fix mistakes easier, and can learn and develop new techniques.

jessedhillon2 replies#
I have a script that downloads bank and credit card transaction data, then applies rules to create a journal in GNU Ledger format.
tokenizerrr6 replies#
Do you use an API? Or just scraping? I've done the same, but stopped using it. Afraid my bank, if they detect it, might not like it.
rb8082 replies#
I want to do this too. Details would be handy. Even if its extracting data from PDF statements or saved HTML pages.
kensoh#
Basically use a web automation tool to simulate the login process and then grab the data you want, save it to .csv file or something. For saved HTML pages, web automation tools generally can work with them. For saved PDF I'm not sure what is good.
tokenizerrr#
I used CasperJS to download a specific CSV file, providing the chrome user agent. Then I used a simple NodeJS script to parse this.
kensoh1 reply#
I did the same lol (via scraping), run every midnight to multiple bank accounts, then sync to google spreadsheet. I was writing web automation scripts the hard way for a while, until I made a tool to simplify the process of writing web automation scripts - https://github.com/tebelorg/TagUI (frankly I am surprised why my banks never banned or send me a letter)
dmak#
I clicked it expecting a basic script, but this is pretty comprehensive. Nice work!
ams61102 replies#
Your bank would object to you accessing your own transaction data?
kensoh#
In theory they shouldn't, though I believe many financial websites explicitly declare in their terms of use that automated access or web scraping data is not allowed.
tokenizerrr#
Do a careful reading of your banks terms of service and you will likely find a clause either barring you from doing this completely, or voiding fraud protection.
dmak#
Whole businesses like Yodelee and Plaid do this.
tmerr1 reply#
I use Selenium to drive a firefox browser under the assumption that banks don't care enough to detect it: https://github.com/tmerr/bank_wrangler . I am also slightly worried about banks not liking it, but if they do care I guess I will receive a scary cease and desist in the mail and I will cease and desist.
tokenizerrr1 reply#
My concern is about what will happen if fraudulent activity happens, such as my account getting hacked somehow. Then they look into my account, discover I've been doing this somehow, tell me I've broken their TOS and I'm on my own.

Continue this thread — 1 reply

jessedhillon#
I used to use pyofx and a lot of custom scraping to get this, but now I use Plaid. I work at Plaid now, but I used it before I got this position.
leksak1 reply#
This sounds incredibly rude, but why? Maybe my income is too small for me to see the benefit (student) :p
jessedhillon#
It can be eye-opening to track and categorize every dollar spent, even if just for a few months. Especially for younger people who are earning serious money for the first time.

Load more comments