Modify Stop Loss and Trailing Stop Question
-
Hi! I have been using fxDreema for several years, but there is one thing I still don't understand correctly.
I have an EA that open trades on all 54 pairs.
I am trying to create a very simple EA here to handle SL. Here it is:
https://fxdreema.com/shared/1XqaFTr8
"on Trade" I try to put a SL (100 pips) on every opened trade
"on Tick" I try to trail the SL of all trades on 100 pips distance.What I don't understand is:
-
The SL is not fixed. It keeps appearing and disappearing on the chart and the journal keep saying (example): SL modified to 1.05453 then SL modified to 0.00000. It should be fixed, shouldn't it?
-
Depending on the pair, the SL is vey different from each other. On some pairs the SL is -100 while on other pairs it can be -251, -367, -434, etc... seems kind of random.
What's the best way to achieve what I am trying to do? I tried using "money" instead of "pips" but it doesn't seem to make a difference.
Thanks!
-
-
You probably need to put some settings here: http://prntscr.com/f408dx This is where you can say to the EA how much is 1 pips for each symbol or for each point (for all symbols with 0.0001 format for example)
But are you sure you want to modify SL for all 54 pais every time you create 1 trade in 1 pair?
-
Well, I might have expressed myself incorrectly.
I understand what you said about changing the settings for each pair.
But I want to change SL ONCE for each trade. When a trade is opened, it doesn't have any kind of SL or exit strategy, it just opens a trade.
I want this EA to put a SL on each trade only once, when they are opened. And then follow the profit using trailing stop. Am I doing it wrong?
Thanks for your time.
-
I figured out why the SL was appearing and disappearing... it was a incompatibility with another EA running on the same account.
I also ajusted the valor of the SL, using the project settings and calculating the valor of a PIP in each pair.
Now I just need to wait and make sure the SLs are all correct and that the trailing stop is working as expected.
Thanks.
-
So you want to do something on the current trade only, in "on Trade". Try this: http://prntscr.com/f46i7g
But the Trailing stop block is also there to modify SL, so I don't know if these blocks under "in Trade" are needed.
For the Market settings I think it's better to set this for Manual trades only. -
I guess you are right. If Trailing Stop is already being used, there is no point on setting a initial SL.
I'll just turn it off and let Trailing Stop do it's job and see how it will behave.
Thanks!