Forum

Peculiar back testing

I was testing my EA this morning and save the settings. After I came back tonight, the results are quite different without any changes to the period and settings and I'm getting this error from the journal 2024.08.22 22:32:01.548 Core 1 EURSGD : 2022.04.01 00:00 - 2024.03.31 00:00 real ticks absent

Optimization: How to choose the best parameter

Consider the optimization below What parameter would you choose to be the most stable and robust

Loop to count consecutive bull or bear bars

int Consecutive( int Count) { //--- int BB = 0 ; for ( int i = 1 ; i <= Count; i++) { if ( iClose ( _Symbol , PERIOD_H1 , i) - iOpen ( _Symbol , PERIOD_H1 , i) > 0 ) { BB++; } else { BB--; } } //--- return (BB); } Besides using

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()