@sulyayub Then you can do this:

Please notice that I selectes 'server time' option. You need to check if that coincides with your broker's server time. You need to use these blocks on top of the whole launching structure.
@sulyayub Then you can do this:

Please notice that I selectes 'server time' option. You need to check if that coincides with your broker's server time. You need to use these blocks on top of the whole launching structure.
@william-1 Technically you can store the value of MACD on several variables and then compare them in order to identify a potential change in the trend but that will always be just that, 'potential'. You can never know if that change will not be reversed on the following candle. Would it work for you?
@andrewfrank You can use a 'For each trade' structure like this:

Ye 'condition' block is used to select that MACD crossing and then you specify the SL to be moved to the open price. That can substitute the 'breakeven' block.
@nourdine007 This is the second thread you opened for the same question. Please don't duplicate threads. I replied to the first one.
@fxbam This request has beed issed so many times in the past that I simply can't remember. Sadly, the admin is not specially motivated to do it, I'm afraid.
@fxbam Can you please share the link to the project? We'll take a look at it.
@william-1 Not completele sure what you mean by 'difference'. Do you mean the distance between MACD value and signal value? I see that -20 value is repeated so why a trade os open at that moment and not when difference was decreasing again? Wouldn't it confirm a local minimum there?
@sulyayub This doesn't answer my question. How many open trades are supposed to be executed per day?
@yazar-ilyas The only eay to get it is bu adding custom code. You will need a progarmmer to get it because there is no fxDreema blocks doing that, I'm afraid.
@rodrigo-ortuzar Ya te he contestado en el otro hilo. Procura no duplicar hilos, por favor. Puedes escribiri lo que necesitas en amabas lenguas dentro del mismo hilo para no duplicarlos.
@rodrigo-ortuzar Necesitarás variables de tipo 'double' y puedes obtener esa información directamente usando estas opciones:

En cuanto a cómo calcula MT4 esas cifras, no lo sé exactamente, pero seguro que ne Youtube debe haber tutoriales que lo explican.
@facto In my opinion I would simply forget that indicator for good. Simply don't use it. You should try to find an alternative indicator that doesn't repaint.
@btrader This question is for real programmers (not em, sorry). Could you please upload the compilation errors?
@sulyayub Can you please share the link to your project? I need to see how many open traes are suppsed to happen within that time period.
@william-1 I'm afraid this is not how to get it. Finding a maximum/minimum is very tricky. Visually they are easy to identify but a bot is 'blind'. We need to find an effective way to identify these local tops/bottoms first. How would you do it?