Forum

Complete or not complete different results of N backtest with genetic algorithm

As I understand it, the launch of the backtests with a genetic algorithm is cached. Does a result of a 'launch A' may appear in a result of a 'launch B'? Being 'A' and 'B' 2 launches with a genetic algorithm with identical characteristics: symbol, timeframe, date section, spread, parameters, etc

Same backtest different results

Does anyone know why if I run exactly the same backtest twice (with the optimizer) the results, the order in which the passes are made ... and so on, are different? LAUNCH-A: LAUNCH-B

Wrong date in OBJ_VLINE but correct place

Does somebody know why, when I paint an OBJ_VLINE , whether I use Time [0] or if I use TimeCurrent () , although the line is painted in the right place, the date it shows is not.?? In this backtest I have done about the year 2018, it shows the year 1971

Diference in days/hours/... between OrderCloseTime and OrderOpenTime

Hi, could somebody tell me how to print the diference in days/hours/... between OrderCloseTime() and OrderOpenTime()? Thanks

Getting actual content of comment()

I want to ask you if it is possible to get the actual text written as a result of a call to comment() method. Thnaks

Is it right that indicators can only work at ‘bar’ level, not at ‘tick’ level?

Hi, Is it right that indicators can only work at ‘bar’ level, not at ‘tick’ level? thanks

Custom period PERIOD_Y1

Hi, I want to ask you how I can use a custom period that is not present in ENUM_TIMEFRAMES , for example PERIOD_Y1 (= 1 Year), in calls to indicators like MACD : iMACD ( NULL , PERIOD_Y1, 12 , 26 , 9 , PRICE_CLOSE , MODE_MAIN, 1 );

mql4 placing objects

Hi, could somebody give me advice on proper Object positioning? I create a column of labels and buttons. In some MT4 terminals the appearance is right, but in others, the buttons get painted on top of the labels

Loading indicators referencing other timeframes

Hi, I want to ask you, if it is possible, inside an EA to load an indicator from another timeframe, different of the current timeframe . Let’s say I load my EA in EURUSD PERIOD_M15 . And I want to see the MACD indicator (12, 26, 9); but not about PERIOD_M15 , BUT in reference to PERIOD_D1 . thanks

React to a button clicked inside another chart

Hi, I want to ask you if it is possible to react to a button clicked from a chart that is opened from the main chart which the EA is executed on. I load the EA in the main chart. In this main chart, under some circumstances another chart is opened. Inside this new chart, the EA creates a button. And