The idea was to have an Excel spreadsheet that can answer questions I had about certain patterns and probabilities, in a statistical fashion.
For example:
- Most & Average consecutive days trending up
- Most & Average consecutive days trending down
- Most & Average consecutive days with no trend
- Probability tomorrow is an up day/down day
I created a simple Ninja script to dump data to a text file containing basic information:
Date, Instrument, Open price, Close Price
Then I imported that into Excel and built formulas around it.
Going forward, I would enhance the Ninja script to use a MySQL database instead, and same with Excel - I would attach it to a DB so I don't have to constantly pull new figures into the spreadsheet.
I just want to load the spreadsheet, and it has the most recent info ready to go. This would still require running the Ninja strategy once per day or whenever I want to update the values, but I can live with that.
The ultimate goal of this project was for me to see if there were any useful probabilities that I could apply to my strategies. Such as using weighted expressions if the odds say today was going to be a down day, etc.
This is sort of "step 1" in my ultimate longer-term and much bigger project of building a self-adapting, self-learning strategy that determines what works and what doesn't, and adapts in real time to accommodate.
The next post will contain the files.
Mike
Comment