Moving general stock ohlcv stuff to a securities package so that they
can be accessed by any module we create in the future. Basically they
don't belong solely to IBD50 or IndexBacktesting, so I'm going to put
them in a separate package.
Created securities repo and service
Finished creating symbol and security ohlcv model, repo, and service
Reorganized the code into core, idb50, spring, and soon to be created
backtesting. Still need to remove database and indexbacktest. But I'm
going to remove them as I rewrite them for Spring Data JPA
Creating the backtest init logic.
Attempting to setup abstract model and rule classes so that future
models can be more modular...the only thing I can't figure out just yet
is how these things will all interact.
added a mysql script for use with MySQL Workbench. Should improve
debugging.
Adding abstract model repo and service
code runs. default model is generated. Need to continue adding pieces to
the model.
Trying to work out how to apply rules and the conditional relationships.
Next will be to actually create some rules.
BacktestModelLogic is needed so I can get the OHLCV data from the DB.
Spring doesn't manage JPA objects, so the autowired annotation doesn't
work.
But now I have a method that returns an abstract class that it doesn't
like.
DefaultStats are now calculated in the abstract model. Per model stats
can also be calculated in the extended model. Currently working in the
IndexBacktestingModel.
Program Runs. Worked on the rules. Created d day and follow thru rules.
Removed empty Above30Day rules that I created for testing.
Program saves the model, which automatically saves the rules associated
with the model.
Does not RUN. Created the d day and churn methods in the sell rule.
Need to develop a method to save parameters for each rule in the DB.
Implemented the rule parameters.
Rules run, but fail to combine because the lists are not the same size.
Need to figure out a way to combine the lists. It will hinge on the
common dates in the list.
Combined the resultLists. Now it won't add everything to the DB, the
cascade isn't working. So I'm going to manually add things until it
works.
It finally saves to the DB. However, the rule_id is not set in the
children tables. AKA the cascade.ALL is not doing what I think it should
be doing.

Just wanted to get this code state saved into git before I trouble shoot
anymore.
I think I've figured out the problem. I didn't create a repo or service
for rule parameters or rule results. That is probably why the rule id is
not making it into those tables...hopefully.
Created repo's and services for rule parameters and results...still
doesn't work.
I can't figure out why the ID isn't cascading down through. So I'll just
save them seperately. I've created a for loop in the saveModel method of
the BacktestModelLogic, but maybe it needs to go in the ModelService
create model method.