Forum

Having a small problem converting mql4 indicator to mql5

Hi everyone, so I want to convert the mql4 code of an indicator to mql5 code The indicator name is Oscar, it's basically a two lines cross indicator, first line is an oscillator and the second line is the moving average of the oscillator. Here is how the indicator is calculated according to the

Optimizing the input parameters for all the market watch symbols

back testing optimization in MT5 either let's you back test a single currency to find the best input parameters or it let's you back test all the symbols in the market watch tab but with the default input parameters. Is there a way to back test all the symbols in the market watch and find the best

How to count the number of trades that hit your stop loss or take profit target

After running the strategy tester , it gives you the number of winning and losing trades in the Report tab, but I want to know how many trades have hit my stop loss and how many trades have hit my take profit. Because some trades will close without hitting SL or TP, like for example when reverse

How to handle reverse signal in MA crossover EA

I want to write a generic MA crossover EA, it just buy when the Fast MA cross above the Slow MA , and sell when the Fast MA cross below Slow MA from . I watched a couple of tutorials on Youtube on how to do this. And this how I found they usually do it: double PreviousFast= iMA ( NULL , 0 , 14 , 0