Forum

MT5 Strategy Tester Improvments

Hi, I'm familar with MT4 and start using MT5 for a while and I think MT5 strategy tester could be imporved for better usage. Here is my thoughts about possible improvements: 1-) When you call several indicators in the code, in strategy tester, indicators automatically appear in the chart of strategy

MQL5 - Problem about StringToCharArray and CharArrayToString Functions

int OnInit () { string result= "20140201" ; // The seperated strings must be ---> 2014 02 01 but the result is ---> 2014 20 20 Print ( "The date = " ,result); // ----- Seperate Year ------------------- uchar date_yearx[]={}; StringToCharArray

Kernel Density Estimation code - Help needed please

Hi, I've found a nice article about KDE here https://www.mql5.com/en/articles/396 which is used for clustering large data. I've tested on MT5 didn't worked as I expected. Since I'm not too much familiar with MT5 environment and I'd like to use it on MT4, I simply used the files on MQL4. Again the

MT5 CTrade - PositionOpen issue

Hi, I'm willing to put Sell Limit / Buy Limit with specified date on Exchange. I can do by the terminal manually but PositionOpen does not accept entering time. https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradepositionopen Only OrderOpen accepts entering time but it'll not be a

Objects works on viusal mode but not in real or demo accounts - MT4

Hi, I'm using objects to give guidance about the status of expert. I'm successfully using in visual mode for during tests and works perfectly however when I moved expert to demo account (even real) I observe that the labels are not visible on the chart. I'm not sure which release it changed since

Position price value, profit & commission values

Hello, I would like to get opened position price , ticket number and it's commission and profit. What could be the issue in the code? Thanks in advance. //+------------------------------------------------------------------+ //| test_profitcommission_01.mq5 | //|

MQL5 - Day of Week

Hello, I would like to calculate yesterday and the day before yesterday dates. I use the below code for that. Yesterday (d_tarih) works well however the day before yesterday (e_tarih) also gives the same value. Is there a way to calculate yesterday and the day before yesterday more smartly and

MT5 - MQLBookInfo problems

Hello, I'm writing a code for futures market and I need bid/ask prices with quotations(volumes) in each price depth. I managed to get the correct values for ask and bid but I have two problems: 1-) I need to keep opened "Depth of Market" windows in order to get prices. I'm willing to get many

Different results from different brokers MT platform while using strategy tester

Hi, I'm trying to test an expert in strategy tester in the same computer on two different brokers MT4 platform. They are both build 950. I have downloaded M1 historical data from FXDD and by using period converter, convert it up to Monthly data sucessfully in both terminals, checked all TFs, fine

Variable passing between client terminals

Hi, I'm willing to run two experts on two different terminals with two different accounts. I wonder if there is a convenient way to pass variables fastly between the terminals other than writing on disc? I think global variables are passing between experts inside the terminal. What is your