https://blog.mathquant.com/2019/04/22/3-3-how-to-implement-strategies-in-m-language.html
3.3 How to implement strategies in M language