Experts: Exp_breakeven_trailing_SL - page 2

 
Oksana Berenko:

There is no error in the code, I checked. All magics should be accompanied by -1. Can't your EA move stop loss back?

A little tweaked Expert Advisor from "Wizard", basically standard, but it works in "true" mode, as I understand it - in real time, not by bars. Visually stop loss does not even twitch. I'll try it in normal mode...? But I don't think that's the problem.
 
AVAAR:
A little tweaked Expert Advisor from "Wizard", basically standard, only works in "true" mode, as I understand it - in real time, not by bars. Visually stop loss does not even twitch. I'll try it in normal mode...? But I don't think that's the reason.
Study the logs and everything will be clear
 
Oksana Berenko:
Study the logs and everything will be clear

I'm trying to make friends with your EA. according to the description, it's just what I need. I don't understand it yet.

I set magic -1

plus points 10

step breakeven 1


Both trails are zero.

Passes 10 and more points, but does not move the stop loss. I don't even know what to do

 
Виктор Астахов:

I'm trying to make friends with your EA. from the description, it's just what I need. I don't understand how it works yet.

I set magic -1

plus points 10

step breakeven 1


The trails are both at zero.

Passes 10 or more pips, but does not move the stop loss. I don't even know what to do

Watch and read logs
 
How do I get the code
Please?
 
michaelumana:
How do I get the code
Please?

https://www.mql5.com/en/code/14300

 
Useful code, thank you!
 

Hello. I am a beginner, just getting to grips with scripts and Expert Advisors. Yours is very good, intuitive, reacts quickly to trend movements.

But I can't understand why it puts ST and moves it only for the first position, ignoring all orders I open after that. But as soon as the first position is closed, no matter by stop or manually, your Expert Advisor starts to put a stop and move the next one.

Have I done something wrong somewhere? Why does it not work on all open positions, but only in the order of turn?


I don't know if I will get an answer, but I will wait for it.

In any case, thank you for an excellent expert.

Regards, Vladimir.

 

Hi, is this only work for one position/pair?

I opened 2 buy position but the trailing started to go back and forth like somekind of glitch.

 
How are you suppose to load this into MT5? What is the process?