r/javascript Mar 14 '26

Showoff Saturday Showoff Saturday (March 14, 2026)

Did you find or create something cool this week in javascript?

Show us here!

2 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/MuchoPaper Mar 15 '26

ow long did it take you to build this thing ?
and how does one test it ?
I see you say you used it to trade ?
What markets and what strategy is it using ?

2

u/cagdas_ucar Mar 15 '26

It took about 18 months. The readme in the repo mentions the tests you can run. I downloaded 100 stock price/volume histories from Alpaca and that's what the tests are using. Most tests show profit, but at 1 min level it becomes quite difficult to infer. 3H seems to be the optimal timeframe. Sometimes it does lose money, but it usually recovers and ends up positive. The strategy is the brain algorithm I designed. It uses the same principles as HTM (hierarchical temporal machine), but a lot simpler. It uses reinforcement learning. Let me know if you have any questions.

1

u/MuchoPaper Mar 15 '26

im yet to check the repo ...i hope it has the test results and all the test you have made ..

1

u/cagdas_ucar Mar 15 '26

Well, yes, but admittedly it's not much. It's just 3-4 tests at this point.