Binary Flags – library MetaTrader 5

Binary Flags - library for MetaTrader 5
You can use binary flags to minimize bool parameters in a function signature. For example, MQL int size is 32 bits, so you can pack 32 1/0 parameters in a single int flag variable. Before: void Function(bool flag1,bool flag2,bool flag3,bool flag4,bool flag5,bool flag6,bool flag7,bool flag8,…flagN); After: void Function(int flags); BinFlags can be initialized with any … Read more