Fast, interactive, backtest, framework of options strategies in a command shell using Cboe End-of-Day Option Quotes with Calcs
Supports trades with short/long underlying with for four short/long option legs.
Currently supported trades
- Buy and Hold
- Put (Short/Long)
- Call (Short/Long)
- Strangle (Short/Long)
Fiji is tightly coupled with hibernate + postgreSQL - as a software engineer, this is gross, but speed of implementation is priority over "really nice code."
This isn't trading or investment advice. Please see LICENSE, especially the sections Disclaimer of Warranty and Limitation of Liability.
There are probably errors in this code! As everything in life, take your time and start small. If something seems too good to be true, you're probably missing something.
There is no Cboe data in this repository and it won't be given away!
Where to find data
End of Day Option Quotes with Calcs, Market Implied Volatility and Greeks Cboe DataShop End-of-Day Option Quotes with Calcs Specifications
Fiji has been tested with symbol "^RUT".
https://datashop.cboe.com/option-quotes-end-of-day-with-calcs
https://python-backtest.blogspot.com/2019/10/cboe-data-review.html?m=1
https://www.baeldung.com/thread-pool-java-and-guava
https://www.baeldung.com/java-properties
https://www.baeldung.com/jackson-object-mapper-tutorial
https://www.baeldung.com/hibernate-criteria-queries
https://stackoverflow.com/questions/5272966/jfreechart-image
https://www.tutorialspoint.com/jfreechart/jfreechart_line_chart.htm
https://www.boraji.com/jfreechart-time-series-chart-example
http://hibernatepojoge.sourceforge.net
https://www.baeldung.com/a-simple-guide-to-connection-pooling-in-java
https://spring.io/projects/spring-cloud-dataflow
LocalDate to Date conversions https://stackoverflow.com/questions/22929237/convert-java-time-localdate-into-java-util-date-type
https://en.wikipedia.org/wiki/Sharpe_ratio
This project was originally created using MySQL, but alas, it was too slow.
-
Conversion
-
Create quotes table
/c/Program\ Files/PostgreSQL/13/bin/psql -h localhost -d fiji -U postgres -f quotes_create.sql
-
Importing Cboe DataShop End-of-Day Option Quotes with Calcs into PostgreSQL fiji Database
- https://www.postgresqltutorial.com/import-csv-file-into-posgresql-table/
- Create queries from CSV
./postgresql/quotes_import_csv.sh quotes /e/MyProjects/Cboe/RUT_2004-01_2021-01/ E:\\MyProjects\\Cboe\\RUT_2004-01_2021-01\\ > quotes_import_csv.sql
- Import CSVs
/c/Program\ Files/PostgreSQL/13/bin/psql -h localhost -d fiji -U postgres -f quotes_import_csv.sql
-
Used DBeaver for SQL editing / testing