Alexey Chernysh / Publications
Forum
How to sort a struct by field in MQL5?
Greetings! I have a Ruby / Python background so it is a little bit hard for me to switch in C++ way. I'm working on EA which selects some symbols based on a specific criteria. In Ruby I will make a hash like this: {symbol_name: "GBPCAD", action: "SELL", spread: 15} and then sort it by "spread"