Forum

Help with iBarShift

Hi. I was hoping someone could help me to understand iBarShift as it should do exactly what I'm looking for based on the documentation, but it's actual results are not what I'm expecting. In particular, I had understood by setting the parameter exact to true that the given time must line up to the

How do you define a custom comparer

Hi. I am trying and failing to create custom comparers for generic collections of objects in MQL5. Can someone please help me work out what I'm doing wrong? Here is a minimal example of what I've tried. #property indicator_chart_window #include <Generic/ArrayList.mqh> #include