Forum

MQL4 Modify Stop-Loss only works on one pair out of six.

I have an EA that is supposed to add a stop loss to breakeven (without previously having a stop-loss at all) once price gets to a certain distance between the take-profit and the entry. It comments where its supposed to change the stop-loss, but just changes it for one pair everyday. Here's my code

EA performs really well in 2020, but not 2019

Hi everyone. I want to ask you if it's possible for my EA to perform really well from March 2020 until now, and when I proceed to test it out in 2019, it basically doesn't perform even close to that. Risking 3% per trade in 2020, you would get ~15-20%, and in 2019 it would loose money actually. Is

EA Working in Strategy Tester but not in real time.

Hello everyone, I've been coding an EA to automatize my daytrading strategy, and i've run into an issue I cannot seem to solve. The EA runs smoothly and executes the trades automatically in the Strategy Tester , but when it comes to real time trading it doesn't do anything. I have a variable to

How to place opposite orders once SL is hit?

Hi everyone! So basically I'm coding an EA that places one trade depending on a given signal, and that trade runs just perfect. It places the trade when it should, and it changes the stop loss to breakeven once the first take profit target is hit. I want to code it so if the stop loss is hit