timelyart / Kairos

Kairos aims to help you save time by automating repetitive tasks on TradingView such as scanning markets for setups, and refreshing alerts as well as creating new ones.
GNU General Public License v3.0
71 stars 31 forks source link

Added some safety checks #76

Closed mrcrdwd closed 2 years ago

mrcrdwd commented 2 years ago

Sometimes the properties tab wouldn't load and cause the backtest to crash.

@timelyart how could we force a retry for the symbol when a the export has failed?

timelyart commented 2 years ago

Unfortunately, this is one of the big draw backs of using Kairos instead of using some kind of API and storing your own data and coding your own indicators as there is no guarantee that (parts of) a website will load (correctly). In the past, I got worse performance on Sunday. Really long backtests (double digit hours) may fail as a session may expire/reset after a certain amount of time.

Storing the state (and resulting data) of a backtest and then being able to restore the state within the same/new run of Kairos is definitely something I would love to have. It requires quite a bit of work and probably would introduce the use of a relational database as well.

mrcrdwd commented 2 years ago

Makes sense. That there is no way to know for sure if an element has fully loaded. But is there a way to trigger a retry on a symbol when the reading of an element has failed?

By the way, I have an alternative for getting the currency value from the list of trades rather than the properties tab. That eliminates one interaction as you said and speeds the backtest up. But it feels hackier to get it from the list trades.