Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Check Binary Options Symbol

MetaTrader Experts, Indicators, Scripts and Libraries

In the market watch in MT4, there are several symbols. Some of them could be binary Options. 

Different brokers have different method of representing a binary Options symbols. 

For eg: 

some broker use   .bo  at the end 

Some broker use   _OP  in the names

Other broker may use some other methodology. 

so, it may become confusing to ensure whether a symbol is Binary Options or not. 

In the attached code, we use  MODE_PROFITCALCMODE to detect if a symbol is binary Option or not. 

This is very sure shot method of detecting a binary Option symbol

The code iterates through all the symbols in the market watch and detects those symbols which are binary Options.

20641