Codes

Check if there are any new bar for MetaTrader 5

The purpose is to check whether new bar are generated This is a class file that can be used as a class or copied to EA or scripts for use

Moving Average-RMA for MetaTrader 5

RMA Relative Moving Average is a variant of EMA

Forum

How to accurately get total positions

Hello everyone , I have encountered a problem and hope to receive everyone's help , thank you ! My question is very simple, just is to get the total positions My code : #include <Trade\Trade.mqh> CTrade m_trade; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason)

About topic replies check

If someone replies to me, where can I quickly check ? Or do I need to find the original topic ? only that way

A problem was found in the historyselect() function

Usually we use it this way: HistorySelect (0,TimeCurrent()); int his_total = HistoryDealsTotal(); but If the transaction frequency in a short time is greater than 1, some data will be lost due to the statistics of orders/deals How to solve it? use it in this way HistorySelect(0,TimeCurrent() +1 ) ;

Does anyone know about computing resources?

Does anyone know what computing resources are used when running test optimization?CPU or GPU? why? or how? thank you