Tag Archives: programming

Stock dynamics and entropy

This entry is part of 15 in the series Grails Finance

Grails Finance 1.4
Entropy is the central entity in thermodynamics. The equivalent in finance would be information entropy. However, you don’t hear much about it. One could argue, that entropy is a measure of risk just like volatility. What are the [...]

Share
Posted in programming | Tagged , , , | 1 Comment

Daily and weekly cycles of the Dow Jones

This entry is part of 15 in the series Grails Finance

Grails Finance 1.3
The Elliott Wave Principle posits that there are at least 5 waves to be reckoned with. NBER has its own definition of business cycles, which are measured in months. I had a look at daily and weekly historical [...]

Share
Posted in programming | Tagged , , , | Leave a comment

What are the periods of stocks?

This entry is part of 15 in the series Grails Finance

Grails Finance 1.2
Or indices if they have any, that is. I invented my own algorithm to approximate periods of waves. Of course, there is also the Fast Fourier transform, which is a much better algorithm so I used that too.
Monte [...]

Share
Posted in programming | Tagged , , | Leave a comment

Scraping 10 years of historical data per security from NASDAQ

This entry is part of 15 in the series Grails Finance

Grails Finance 1.1
You can like request 10 years of historical OHLC data from the NASDAQ website. That seems more than enough for all intents and purposes. Also you can download index composition details of the Dow Jones Industrial Average Index [...]

Share
Posted in programming | Tagged , , | Leave a comment

Overfitting to polynomials

This entry is part of 15 in the series Grails Finance

Grails Finance 1.0
Overfitting occurs when a fit to historical data only works for the dataset used to fit the data. I am using polynomial fits up to the 4th degree, but in principle you could use any other sort of [...]

Share
Posted in programming | Tagged , , | Leave a comment

Are stock markets efficient?

This entry is part of 15 in the series Grails Finance

Grails finance 0.9
According to theory a market is efficient, if it has random prices. So tests for market efficiency come down to testing for randomness. Obviously the same goes, if stock prices follow some distribution that is not random.
Services
So [...]

Share
Posted in programming | Tagged , , | Leave a comment

Can we predict stock prices with Grails Finance?

This entry is part of 15 in the series Grails Finance

Grails Finance 0.8
Yes, we can. Not always correctly, of course. One way to predict things, is to try to find the probability distribution for a phenomenon. Usually a distribution is charted as a histogram, so that is what I did. [...]

Share
Posted in programming | Tagged , , | 3 Comments

Grails Finance Services

This entry is part of 15 in the series Grails Finance

Grails Finance 0.7
I should have started with Grails services from the beginning. Services are just another layer in the architecture. Services can easily be injected, wherever you need them. I also ran into some trouble, because of upgrading to a [...]

Share
Posted in programming | Tagged , , | Leave a comment

Grails Finance 0.6 Testing

This entry is part of 15 in the series Grails Finance

Testing, testing, 123 …
Test a little, code a little, go home, eat a little, sleep a little. This is the lifestyle recommended by the League of Agile Methodology Experts. That and wearing t-shirts with agile slogans printed on them and [...]

Share
Posted in programming | Tagged , , | Leave a comment

Grails Finance 0.5

This entry is part of 15 in the series Grails Finance

Birth of a simulation engine
Mmm, okay, so it’s back to the drawing board for Design Phase Deux. I want to run trading simulation sessions using different strategies. Each session will consist of different runs, where certain parameter values will be [...]

Share
Posted in programming | Tagged , , | Leave a comment