pareeohnos / ktrade

A simple UI for managing your trades
MIT License
7 stars 5 forks source link

LOD bug still present #38

Open pareeohnos opened 2 years ago

pareeohnos commented 2 years ago

There is still a bug with the LOD calculations that is messing up entries, and it is extremely obvious when trying to enter an EP setup. It seems the app is loading yesterdays LOD values. One possibility is that TWS is not reporting the latest values when fetching historical data, so we need to change the time unit from days to something smaller. As small as possible would be best

pareeohnos commented 2 years ago

Implemented a (hopeful) fix. When the app loads or new feeds are requested, it now requests 2 sets of historical data

The LOD is then calculated from the second set of data, which should be most accurate as it will be every second since the market opened