Watch how to download trading robots for free
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Check Binary Options Symbol - expert for MetaTrader 4

Views:
1460
Rating:
votes: 24
Published:
2021.12.17 12:37
Updated:
2021.12.25 15:58

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.

    Check Trade Time Check Trade Time

    This code base is a simple function to check if current time lies within two specified times. Many times it is required by the Ea to enter trades between two specific time of the day only. This code takes two inputs, one is the start time and second is the end time. The code will check if the current time is in between start time and end time and will return accordingly.

    One click close One click close

    The code is used to demonstrate how one can create a button on the chart and assign a function to it. The code is used to delete all orders after clicking on the button. The deletion takes care of various scenarios and shows error messages.

    Bullish Bearish Color Bullish Bearish Color

    This indicator draws coloured histograms to identify bullish and bearish bars.

    Check Trading time Check Trading time

    This code base is a simple function to check if current time lies within two specified times.