Join our fan page
- Views:
- 4473
- Rating:
- Published:
- 2021.12.17 12:37
- Updated:
- 2022.02.03 11:17
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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](https://c.mql5.com/i/code/expert.png)
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](https://c.mql5.com/i/code/expert.png)
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](https://c.mql5.com/i/code/indicator.png)
This indicator draws coloured histograms to identify bullish and bearish bars.
![Check Trading time](https://c.mql5.com/i/code/expert.png)
This code base is a simple function to check if current time lies within two specified times.