Dua Yong Rew / Publications
Forum
unable to pass market validation
Hello, May I know if there's any maintenance on the market? I tried to update my EA but was having this error test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) there are no trading operations test on GBPUSD,M30 (netting) there are no trading operations test on
Average Position Holding Time
As I'm going through my backtest report. I was looking at this and thinking if this information is important. If the average position holding time is very low, does it means that my EA is more accurate and robust compare to a value that is higher? and where can I get this for use in Custom Max
Tester set mode to math calculations or adjust testing dates
Tried to ran optimization but ran into this error Tester set mode to math calculations or adjust testing dates What is this
Problem with trailing stop
Hi, I've this error 2023.09.24 08:02:56.564 2021.07.19 10:05:54 take profit triggered #39 sell 0.01 GBPUSD 1.37469 sl: 1.37339 tp: 1.37269 [#40 buy 0.01 GBPUSD at 1.37269] 2023.09.24 08:02:56.564 2021.07.19 10:05:54 deal #27 buy 0.01 GBPUSD at 1.37269 done ( based on order #40) 2023.09.24
iTime Function always return 0:00 ?
Hi, I've a question regarding iTime function. datetime today = iTime ( _Symbol , PERIOD_D1 , 0 ); This return 2023.09.20 15:04:08.948 Test (EURUSD,M5) 2023.09.20 00:00:00 For XAUUSD the open time is 2023.09.20 01:00:00 however the return is actually 2023.09.20 15:05:09.729 Test (XAUUSD,H1)
Long Only or Short Only
MT4 offers this setting when attaching the EA to the chart to have Long only or Short only I cannot find this in MT5. How can I do this in MT5? The only thing I can think of is to program into the EA
Calculation of Lotsize
input double mRisk = 2; // MM Risk input int SL = 175; // Stop Loss (Points) //+------------------------------------------------------------------+ //| Money Management | //+------------------------------------------------------------------+ double MM()
Detecting triple swap
Hello all, Is there a simple way to insert the day of week into the SymbolInfoDouble to check if today is having triple swap? MqlDateTime time; TimeCurrent (time); Print (time.day_of_week); Print ( SymbolInfoDouble ( _Symbol , SYMBOL_SWAP_MONDAY)); Thank you
Sort 2D array in descending
Hi all, I have a 2D array double PTs[][ 2 ]; after populating the data, I used arraysort but it is in ascending for the 1st dimension How can I sort it in descending for the 1st dimension? Thank you very much
Unable to delete object
//+------------------------------------------------------------------+ //| Indi.mq5 | //| doshur | //| https://www.mql5.com |