(in loop)Pips away(on loss) Mt5
-
Hi, this block work fine only with buy position,on sell position it doesn't work. Same on Pips away from open price block.
-
To all the people that can post question to this forum - please, give as many details as needed, like MQL version (4 or 5), what version of fxDreema you are using (web of local version), project ID if in web version, and everything that can make the question clear. After all, there are other people that can find the topic and get some information from it, and it's easier to me to understand the problem.
In this case I can see you are using the web version in MQL5 mode. What you are missing in your project is "Start positions loop" block above the pink blocks, because all "(in loop)..." blocks must work with one of the "Start whatever loop" blocks. Most of the "(in loop)..." blocks are designed to work with trades (in MQL4), positions (in MQL5), history trades, history positions or pending orders, so before using even one of them, you must say with what you want to work by placing one of the "Start whatever loop" blocks.
-
I'm sorry I always try to put all the information,the topic was reported in mt5, these blocks I've already used in others ea, and have always worked without entering the "start loop", it is only today that the blocks only work on long positons and not on sell position.Thanks,for the great job you doing.
-
Without "Start positions loop" all the "(in loop)..." works with the last loaded... let's say position. If you don't have pending orders and the position is only one, which is typical for MT5... well, yes, it will probably work without the starter block, because the position is loaded in "If position..." block. But it's a good idea to put the starter block. In MT4 for example, where there can be multiple trades at once, it's even more needed.
-
I've add "Start positions loop" at the top of the loop but the problem is the same,it doesn't work with sell position. Here a shared copy http://fxdreema.com/shared/5jM2OFPqe. May be that i something wrong,but i don't know what.
-
You are right, there was a problem. Now working fine?
-
Yes,thanks.It work fine,now
