You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each algo code should be easily unit tested. The concept of unit test is not very known to the type of users here. Rather than asking them to build their own unit test, we should provide some high level template that does:
provide local fake backend
provide fast replay executor
use real (past) market data
with a pre-defined small set of symbols, simulate a (constant) day using the historical data quickly, basically smoke test to catch any issues like typo.
The text was updated successfully, but these errors were encountered:
I will add a pylivetrader command called smoke
it will have 2 options:
generate a smoke test file for a gived algorithm
2.. it will execute the generated smoke test upon the user's algorithm
so the workflow will be as such: pylivetrader smoke generate --in-file algo.py --out-file smoke_algo.py
and execution will be pylivetrader smoke run -f smoke_algo.py
Each algo code should be easily unit tested. The concept of unit test is not very known to the type of users here. Rather than asking them to build their own unit test, we should provide some high level template that does:
The text was updated successfully, but these errors were encountered: