OtherPairs MQL5 Indicator
From a given currency pair, determine the base currency, then determine how many of
the "other" pairs having that base currency have 20EMA above 50EMA.
In cases that the base currency is actually the quote currency of the test pair,
reverse the order, i.e. 20EMA below 50EMA.
For example: USDCAD has base currency USD.
- If USDCAD has 20EMA above 50EMA, that's +1.
- If EURUSD has 20EMA below 50EMA, that's also +1, because USD is the quote currency
Download the MQL5 source code of OtherPairs.
This is a good example of how to program a multi-currency indicator in MQL5.