Commit Graph

120 Commits

Author SHA1 Message Date
Mark Veidemanis 848f69da5e
Exits are exits, not entries 2022-12-01 21:13:21 +00:00
Mark Veidemanis 66a18a6406
Implement closing positions and refuse to post rejected trades 2022-12-01 20:36:58 +00:00
Mark Veidemanis 5c2eeae043
Implement crossfilter to protect against stupidity 2022-12-01 20:36:32 +00:00
Mark Veidemanis c0c1ccde8b
Add schemas for more commands 2022-12-01 20:36:09 +00:00
Mark Veidemanis 682d141b8a
Begin implementing exit executor for strategies 2022-12-01 19:33:06 +00:00
Mark Veidemanis bdae8ab093
Make callbacks handle signals 2022-12-01 19:32:50 +00:00
Mark Veidemanis 4527a9d04b
Reformat migrations 2022-12-01 19:32:29 +00:00
Mark Veidemanis 21b9585192
Validate strategy entries and exits 2022-12-01 19:32:08 +00:00
Mark Veidemanis 851d021af2
Make signals configurable 2022-11-29 07:20:21 +00:00
Mark Veidemanis f7242f4dd8
Fix off by one issue in OANDA 2022-11-29 07:20:39 +00:00
Mark Veidemanis f240c4b381
Improve navigating trades and positions by cross-linking 2022-11-29 07:20:39 +00:00
Mark Veidemanis 4e1b574921
Fix position list validation 2022-11-29 07:20:39 +00:00
Mark Veidemanis 6321fb9089
Increase max requests 2022-10-18 07:22:22 +01:00
Mark Veidemanis 87c794e9ac
Bump UWSGI processes 2022-10-18 07:22:22 +01:00
Mark Veidemanis 8ce0066c38
Switch to UWSGI and improve Docker definitions 2022-10-18 07:22:22 +01:00
Mark Veidemanis d3694d1821
Describe all model fields 2022-11-28 20:42:07 +00:00
Mark Veidemanis 06865d0aa9
Make the debug toolbar show 2022-11-28 20:14:30 +00:00
Mark Veidemanis 3a6c3cee1f
Fix login redirect 2022-11-28 20:05:48 +00:00
Mark Veidemanis 0fc7c5c712
Implement more advanced 2FA library 2022-11-28 19:45:22 +00:00
Mark Veidemanis 7a64759ceb
Implement permission checking in views and forms 2022-11-28 18:09:41 +00:00
Mark Veidemanis bb7d6d1b41
Rename test 2022-11-28 17:09:53 +00:00
Mark Veidemanis 974deeafaa
Add missing space 2022-11-25 22:15:27 +00:00
Mark Veidemanis 4973582bdf
Implement trading time limits 2022-11-25 19:28:21 +00:00
Mark Veidemanis 69a2b269ad
Link trading times to strategies 2022-11-25 18:05:02 +00:00
Mark Veidemanis baa8e4fead
Implement configuration of trading times 2022-11-25 18:01:34 +00:00
Mark Veidemanis bcb3272064
Re-render invalid forms and fix space handling 2022-11-25 18:01:13 +00:00
Mark Veidemanis b525611aaa
Clarify value and quantity in position table headers 2022-11-22 07:20:37 +00:00
Mark Veidemanis cb88cf33c2
Prevent rounding errors in value calculation 2022-11-22 07:20:37 +00:00
Mark Veidemanis 3f8fb66656
Fix price bound logic 2022-11-22 08:10:38 +00:00
Mark Veidemanis 46bba54cb7
Allow absent price 2022-11-21 07:20:12 +00:00
Mark Veidemanis f6b5652268
Update Drakdoo API format 2022-11-21 07:20:12 +00:00
Mark Veidemanis ca434b8cf0
Remove offset panel 2022-11-15 07:20:17 +00:00
Mark Veidemanis d7e81dedb2
Implement trailing stop loss 2022-11-15 07:20:17 +00:00
Mark Veidemanis 5c68191e5b
Calculate price slippage more reliably and allow specifying order type and time in force 2022-11-15 07:20:17 +00:00
Mark Veidemanis c8f776e2a8
Set the type back to market 2022-11-15 07:20:17 +00:00
Mark Veidemanis 2aac7d1bb5
Add controls boilerplate to main page 2022-11-14 18:29:07 +00:00
Mark Veidemanis d2e0137c8d
Fix widgets in pages 2022-11-14 17:14:47 +00:00
Mark Veidemanis e3d57c9aa8
Fix HTMX widgets and tweak display of some titles 2022-11-13 13:22:31 +00:00
Mark Veidemanis 781de3c772
Convert everything to Decimal 2022-11-11 07:20:00 +00:00
Mark Veidemanis 9fc5d2f4d7
Initialise inverted variable in currency conversion 2022-11-11 07:20:00 +00:00
Mark Veidemanis 67404fc161
Don't convert between the same currency 2022-11-11 07:20:00 +00:00
Mark Veidemanis 3f855dfb59
Remove some debug statements 2022-11-11 07:20:00 +00:00
Mark Veidemanis afb0504dca
Documented the market system properly, squashed some bugs 2022-11-11 07:20:00 +00:00
Mark Veidemanis c3d908341a
Refactor and ignore n/a exchange callbacks 2022-11-10 07:20:20 +00:00
Mark Veidemanis 8b52063473
Refactor execute_strategy into functions and send a price bound 2022-11-10 19:52:52 +00:00
Mark Veidemanis af9f874209
Improve posting trades to OANDA and make everything more robust 2022-11-10 19:27:46 +00:00
Mark Veidemanis bf863f43b2
Check exchange name and remove redundant code, use IOC orders for OANDA 2022-11-10 07:20:28 +00:00
Mark Veidemanis 40f6330a13
Remove asset filter and begin implementing posting trades 2022-11-10 07:20:14 +00:00
Mark Veidemanis 47384aed5f
Update webmanifest 2022-11-10 09:52:30 +00:00
Mark Veidemanis e8a2f9b0fa
Update strategy defaults 2022-11-06 07:20:24 +00:00