Forum

Trading non USD Forex pairs to diversify a portfolio?

Hi! I'm considering to build a portfolio of diversified forex pairs to be traded with an EA, my account currency being USD ( IC markets and Eightcap as brokers) E.g. I'm thinking of EURUSD, GBPUSD as main pairs and AUDCAD, NZDCHF for diversification purposes as an example. Though, wouldn't this

How to view and call external libraries?

Hi! A couple of questions on libraries, if I may ask: 1/ in mql5 editor or on the website how can I have a view on all external libraries, their description, functions, etc...? 2/ how can I add one manually, and in script (I guess the include statement in mql5 editor)? 3/ which part of the MQL5

Optimization inputs steps and robustness

Hi all, I'd like to get feedbacks from advanced traders/EA developers regarding the max number of inputs steps (total number displayed in the bottom right part of the Inputs sheet when optimizing) allowing to have robust setfiles, i.e. without overfitting (aside out of sample data testing) . E.g

Request for extended strategy tester report

Hi, Could Metaquotes add the holding times statistics to the strategy tester xml files (and possibly all other relevant missing information)? There is a mismatch between the report and what can be exported. Thanks in advance

Avg/max holding time in tester report

Hi all, As opposed to the documentation: https://www.metatrader5.com/en/terminal/help/algotrading/testing_report do you see reasons why the strategy tester report doesn't contain the avg/max holding time? Is it a matter of versions? Would be useful to display it (when testing ex5 files), any

Irrelevant arrows/deals in strategy tester - visualisation mode

Hi all, When testing/visualizing the outcomes of a EA, I observe irrelevant arrows/deals being displayed on the chart. - I'm pretty sure they are not related to relevant deals, as OnTradeTransaction doesn't display any message (even basic) in the journal at the corresponding times. - Also, on the

Dependencies between indicators called in an EA

Hi! I'm currently using two indicators in an EA (I'm novice) and would like to create a dependency between the two. More specifically, I'd like that the result of the first indicator be used as one of the arguments of the second. Indicators are however usually declared in OnInit (handles created

Discrepancy in calculation of iMA within an EA

Hi! In the following EA code, I'm computing EMAs (fast and slow) at each new M5 bar. Though, as per the journal below it seems the [1] values computed at the current M5 bar can differ from the [0] values computed at the previous M5 bar. This is an issue, as it can prevent detecting an EMA

Calling iMA() in a custom indicator

Hi! I'm trying to call iMA in OnCalculate of a custom indicator: for (int i = start; i < rates_total; i++) { double fast_MA_prev = iMA(_Symbol, _Period, prm_MA_fast_period, 0, prm_MA_calculation_mode, i-1); // where prm_MA_fast_period=10, prm_MA_calculation_mode (ENUM_MA_METHOD) is MODE_EMA. //

Classic question (I guess): how to copy the entire Strategy Tester's journal or how to export it?

Hi all, I'm struggling in exploiting the contents of the Strategy Tester 's journal, the interface is really not user friendly. How to "copy all" the journal, how to export it, or how to do it with mql5 code