Check Binary Options Symbol – EA MetaTrader 4

Check Binary Options Symbol - expert for MetaTrader 4
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 … Read more

Check the time periods used – EA MetaTrader 5

Check the time periods used - expert for MetaTrader 5
The function takes two arrays of integers as parameters: “allowedPeriods” and “periodsToCheck”. “allowedPeriods” is an array containing all the time periods allowed by the system, while “periodsToCheck” is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the “periodsToCheck” array and checks if each … Read more

Check if there are any new bar – library MetaTrader 5

Check if there are any new bar - library for MetaTrader 5
1、There is only one class function without additional variables. Please declare class CCheck before use class CCheck   { public:    bool              isNewBar(const string symbol,const ENUM_TIMEFRAMES period);      }; 2、Program variables are used to store corresponding data, while historical bar variables need to be statically modified for data storage //— Static variables used to save history bar … Read more

Simple check open orders filter boolean function for Expert Advisors – EA MetaTrader 4

Simple check open orders filter boolean function for Expert Advisors - expert for MetaTrader 4
It is common for novice developers to face the challenge of making the Expert Advisor able to detect if there are open orders independently, without using the OrdersTotal() function, as this does not recognize if an order was opened by an EA or if it was opened manually, since it returns the total amount of … Read more