Forum

Backtesting multiple currency pairs simultaneously but different setting for each pair

Hi guys I know that I can do a backtesting for my EA with all the pairs in market watch at the same time in MT5. but can I set different setting for each currency pairs? For example I want to test for Gold, EURUSD, GBPUSD and USDJPY and my EA have 5 options in its setting , I want to disable option1

keeping track of trades

Hi I'm making an account manager. this EA closes 50 percent of volume of every trade which has more than 20 pips in profit. But the problem is that I cannot keep track of which trade was partially close so that the EA doesn't close the entire volume. I tried using ticket number but every time you

How to spot fractures in Line charts

I wrote this code to spot fractures but the thing is that the threshold for each chart and time frame is different. And with a fixed low threshold you may miss some fractures and with a high threshold you may get non fractures in the line chart Isn't there any better solution for this? here is

funny lines in Time interval indicator MQL5

Hello Guys! I am making a time interval indicator. My indicator gets starting and end time as input. It will first get the High and Low value of 30min time frame. and it will draw a line in that time span with some calculation with iATR of each day but sometimes in doesn't work correctly. like in

Time interval indicators lines extends to zero at beginning and ending of the time interval

Hi I'm new to MQL5 and I was just testing something and I come across a difference between mql4 and mql5. If you use a time interval for showing a line in mql5 indicator , you will see that at the beginning and the end of that line it falls down to zero but that's not the case in mql4. so how do I

MQL5 indicator, making a horizontal line between 6 to 10 am period with value of 30 min timeframe period High Value

I want to make an indicator for meta trader 5 All I want to do is to draw a horizontal line between 6 to 10 AM candles. the value of the line equals to the High value of the 30 min period candle stick of each day at 6 AM. I wrote this code but it is not working int OnCalculate ( const int