Use BE for first move, use either trail with a step, or for each trade-pips away-modify stops.
Best posts made by jstap
-
RE: Trailing SL after specific pointposted in Questions & Answers
-
RE: Using a Delay Function in the MT5 Testerposted in Questions & Answers
Backtest uses server time, not tested MT5 but should work the same as MT4:
MT4 https://fxdreema.com/shared/4cQR6lW9c
MT5 https://fxdreema.com/shared/IwxuA3zKdhope this helps
-
RE: Create EA to fight broker manipulation????posted in Questions & Answers
Banks manipulation is in the 100's of millions of $'s range, not very common (if ever) for a retail trader, Keeping customers is more important than losing them.
-
RE: Change ENUM Parrametter for ex4 fileposted in Questions & Answers
That is an int value, just put 1 while adding the indicator in FX
-
RE: Set EA to create multiple groups?posted in Questions & Answers
You would have to use a loop & pass block and a variable to add 1 to the variable every iteration, use the variable in the buy/sell block, and then reset when enough trades have been placed. Probably better to T off with multiple buy/sell blocks.
-
RE: enum yes or noposted in Questions & Answers
Most likely, although some words won't work. This is more than you need, but should show you how: https://fxdreema.com/shared/yeSPn6oYb
-
RE: π Maximize Your EAs with fxDreema: Open Q&A Session πposted in Questions & Answers
15 years of programming experience, yet you use FXDreema... really? Your picture above looks like it's showing a martingale equity drawdown, and any experienced trader would know this is bad. Good luck with this, but I for 1 do not think this is worth people's time.
-
RE: convert price fraction to pips?posted in Questions & Answers
This is how to convert ATR into pips (ATR is a price fraction), replace ATR with your variable and you should get the pips.: https://fxdreema.com/shared/BzQ9qPRve
-
RE: no trade nearbyposted in Questions & Answers
You could possibly use pink blocks to get the open value, and then check how far away it is, but this might be worse.
-
RE: How to identify highs and lowsposted in Questions & Answers
You could try new top/bottom in trend.

-
RE: EA by High Low daily touch line and open tradeposted in Questions & Answers
Try this, but you need a value from the line for it to work:

-
RE: Template not workingposted in Questions & Answers
Template doesn't work on backtest, but on MT4 if you save the template on your terminal with the same name as the EA it will automatically load on backtest. I am not sure about MT5
-
RE: building a mobile robotposted in Questions & Answers
You can't create a mobile EA, you can create to work on a pc, so by running it on a VPS then using a mobile to watch what's happening.
-
RE: Please add menu for Project "Save as"posted in Questions & Answers
It would be easier to have a copy function, but importing a copy only requires a couple of mouse clicks.
-
RE: virtual stop line from chart after tradeposted in Questions & Answers
on trade tab - purple trade closed block - delete line block
-
RE: Checking recent candlesposted in Questions & Answers
This will check the last number of candles chosen in the inputs, and print in variable/comment the largest, it works on total candle size, if you want body High - Low would need changed to Open - Close. Should do what you want, for example, variable == 1 would give you the signal for 1 being the biggest: https://fxdreema.com/shared/t0H77rtkd
-
RE: Calculated lot size in comment on chart before openposted in Questions & Answers
@MT4Nutzer This is possible, Roar showed me ths a long time ago, it is about getting the code from the MQ file, changing it slightly, then displaying on chart. Not a trivial thing to do, and I am unsure where to start.
-
RE: select open order farthest awayposted in Questions & Answers
This should do it, but you'll have to switch the flag on/off when you want this to be closing a trade. This is the logic it's using:
checks a flag to see if starting the loop trees is allowed - takes the open price of the latest trade and works out it's distance in points from the current ask price - sets the flag to false to stop a new tick from starting the loops again - loops through every running trade, gets it's distance from the ask price and if it's larger than last saved it saves it into a variable - starts the last loop and compares all trade distance until it finds the biggest, closes the trade and sets the flag to true (this starts the loops again so will close the next farthest away trade, so ensure flags are switched on/off as necessary).
Test and let me know if it's doing as required, where it closes you can replace with whatever you want to do with the selected trade: https://fxdreema.com/shared/HR92Ux2Nd
