pips away from stop-loss as % doesnt work
-
Hello, I want to partially close a position when the price reached 1:1 (100% from stop loss).
I tried this https://fxdreema.com/shared/7TjLZ9pec
When I use a fixed pip value in "pips away from stop-loss" it works, but when I set it to "% of current SL" (value 100) nothing happens, even if the price shoots way further. Can anybody point me in a direction?
This is for manually opened trades, I also tried setting the magix number to "0" but nothing happens.
-
@nk0815 This should work. Is it the whole EA or just a part of it?
-
It is the entire EA. It doesnt work and I dont get any errors thrown

-
I use the .ex4 file. I do not need the .mq4, right?
-
the first block is set to manual trades only...
-
disregard, i see its a dashboard style.
Id make it do the setup automatically first and troubleshoot from there. conceptually prove it in backtest first.
-
@tipsywisdom I did that, and I need it for manual trades. It is the same problem when the trade is executed by the EA. So I don't know where the problem lies. It works until I add the pips-away block.
-
@nk0815 Can you confirm all your trades have an active SL before tha condition is hit? Otherwise it is clearly a bug.
-
@nk0815 you have to put 200% because the block counts the pips from the stop loss, so if you put 100% of the stop loss you will find yourself at the opening price
-
I tried it with 200% away from SL, as well as fixed pips. In no cases it works when I add the pips-away-from-sl block.
I tried deleting and adding the block again, and tried the .ex4 and .mq4 downloads. Nothing works.
Seems like it is bugged.
The MT4 journal doesn´t give me any messages or errors on what is not working. -
@nk0815 That smells like corrup file, I'm afraid.
You should try to rebuild the project from scratch with a completely different project. Sometimes that happened to me and it is very annoying. -
@l-andorrà tried that too, didn't fix it

-
@nk0815 I agree with @l-andorrà the only thing I can think off is change magic no to 0, will probably make no difference but worth a shot, also try with fixed pips, if this works you will know where your problem is.
-
@jstap Agreed. Other than that I can only suiggest to contact the admin.