Forum

MQL5 Cloud: not earning points

When registering for the cloud testing, you get a bonus of 2.00. I activated the cloud on a server and a couple of PCs. Only during ONE day I earned a very small amount of points. Now my credit is down to 0.51 and I get the message "can't connect to MQL5 Cloud , not enough money". In theory, there

Test works but gives zero when using Optimization

MQL4: I often test my EAs first without optimization and then in a second step I tune the parameters using "Optimization". E.g., I step through different values for Stop Loss settings. My latest EA uses Trendlines and calculates differences between Values and the trendline. The tester works perfect

Tester: different speed, old history is faster then recent

I am testing various EAs, with and witout Optimization, also with and without using the Cloud services . It appears that the older years (1999-2003) are MUCH faster than recent periods (I am testing M1, every tick). It is like the last month takes as much time as 5 years. Any explanation

Grouping various indicators in one indicator

Hi, in MQL4 I often grouped several indicators in one, filling the buffers with standard functions: GD[i]= iMA ( NULL , 0 ,FastEMA, 0 , MODE_EMA , PRICE_CLOSE ,i); Short[i]= iMA ( NULL , 0 ,SlowEMA, 0 , MODE_EMA , PRICE_LOW ,i); Long[i]= iMA ( NULL , 0 ,SlowEMA, 0 , MODE_EMA

BuyStop gives invalid filling type error

Hi, I am sending with an EA a BuyStop order, when testing, it gives always the error CTrade::OrderOpen:Invalid Filling Type Code is (utrade is created fom CTrade of course): void U_Go_BuyStop() { Get_Values(); D_Ask=G_Ask+D_StopRange; uexp= TimeCurrent ()+max_pending; utrade.SetTypeFilling(

Class only with private parameters: how to use?

I am kind of stuck! :( I am using the example for OOP in one of the articles here. It is clear how to create a class , but how can I use it? In the MyDateClass example, several DateTime variables are declared (as int). But how can I use them later in the code? I managed to use classes where

Optimization of Trendlines

On MQL4 it was not possible to use Optimization with Trendlines (after creating then with ObjectCreate and then reading out their values). It was possible to use the tester, but not with Optimization. Is that possible now in MQL5

Get Time Code for Chart

Hi, I am writing an EA and am using a Custom Indicator in order to get from an M5 Chart every 5 Minutes a value for a signal. When running the EA, it runs everytime a tick arrives. I get properly the value out of my Custom Indicator with iCustom, but I want the EA to skip the code until really a NEW