This will show you how to achieve, not perfect but it will show you what to do: https://fxdreema.com/shared/fBzpVR1Zc
Posts made by jstap
-
RE: RSI movement compared to candlestick wicksposted in Questions & Answers
-
RE: transaction robotposted in Questions & Answers
And don't re-produce threads, when someone sees them they will be answered.
-
RE: transaction robotposted in Questions & Answers
I will add to this.
- What is placing trades?
- Why 3 if trade blocks?
- price will very rarely == a specific number, because you are expecting a tick to arrive at that particular microsecond.
-
RE: chek profit todayposted in Questions & Answers
Do you mean open or closed? Either way, use modify variables to set a variable to 0- pink for each trade-formula to add positions, at required time save the result where you want it.
-
RE: Erratic behavior, Breakeven and Trail Stopposted in General Discussions
I have never used trail by price level, only ever used with pips.
-
RE: Erratic behavior, Breakeven and Trail Stopposted in General Discussions
Without a no trade block it was placing hundreds of trades, I am not sure what is happening with trail, but if you change the trail to a fixed 10 pips, it trails as expected:

-
RE: Erratic behavior, Breakeven and Trail Stopposted in General Discussions
From the look of your pictures, it looks like it would work, but is hard to tell without a shared link.
-
RE: Erratic behavior, Breakeven and Trail Stopposted in General Discussions
Add a shared link so what is happening can be looked at. Attached is how I get the ATR pips, this does work in breakeven/trail blocks, hope this helps.: https://fxdreema.com/shared/7e69K3wjd
-
RE: Display total lotposted in Questions & Answers
If you connect the 2 bucket blocks, and then select the bucket in the comment using the relevant colour, you will get the value.
-
RE: Strugling with automatic validation mql5posted in Questions & Answers
I cant help then, sometimes things don't work as expected.
-
RE: Strugling with automatic validation mql5posted in Questions & Answers
When you backtest this on your platform do you get these errors?
-
RE: Strugling with automatic validation mql5posted in Questions & Answers
There is a limit of 200 trades on MT4:
From ChatGPT
In MetaTrader 4, error 148 typically indicates "too many open orders" or "order send error." This error occurs when you attempt to open a new trade, but the platform's maximum allowed number of open trades has been reached.To resolve this error, you can:
- Close some existing trades manually to free up space for new trades.
- Modify your trading strategy to limit the number of simultaneous open trades.
- Check for any pending orders that may have failed to execute and resolve them.
- Consider optimizing your EA or trading approach to avoid exceeding the platform's limitations.
It's important to note that error 148 can also occur due to other reasons, such as connectivity issues with your broker or insufficient account funds. Therefore, it's essential to review your trading conditions and account status to determine the specific cause of the error.
-
RE: How to create a close all profits buttonposted in Questions & Answers
I do not know if on chart happens every tick, or just when something happens, but for live it uses fewer resources. I use those blocks there just so I can create on tick, then just copy them onto on chart, the mouse clicked logic is already in meta button logic.
-
RE: Calculating the number of consecutive lossesposted in Questions & Answers
There are various ways, there is a block called consecutive losses, try and use a loop https://fxdreema.com/shared/21tZfhREc :

-
RE: News filter problemposted in Questions & Answers
I use this: https://fxdreema.com/shared/7XOt8jGxc Doesn't detect and react to news, but if you set in at the start of the week it prevents trade around news.
-
RE: Isn't candle time working?posted in Questions & Answers
Things have been wrong which is why I tend to use TimeCurrent(), put these 2 times into a comment so you can see what is being compared. I think the problem is that candle time is every x minutes 1, 5, 15, 30 etc, so the current time will rarely match.
-
RE: Group tradesposted in Questions & Answers
In this case, the magic number will be used to differentiate between EAs, so technically if they both have the same magic number they should interact with each other.
-
RE: How to create a close all profits buttonposted in Questions & Answers
This project will step a line on MT5 backtest so you can move SL or TP, the principle is the same on MT4, and it eliminates the mouse clicked on object so you can use backtest and live: https://fxdreema.com/shared/wqmrHi9wc
-
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