@albyxx that might work... might try that later, as I went for build multiple times solution already....
Thanks @jstap and albyxx.
@albyxx that might work... might try that later, as I went for build multiple times solution already....
Thanks @jstap and albyxx.
Def. a bug.
Just build the thing multiple times... sigh.
"0" gives same result. Only last (Newest) value, not the loop (5 newest sum) value... sigh
Tried empty, let me try "0".
Tried different variations for "for each position".
I'm expecting it to output loop values, not single values.
Looking for PnL (Profit) in that loop.
I'm trying to monitor the last 5 positions PnL.

This only outputs the last position value... the SUM of the last 5 is my desired output. I'm breaking my head.
Anyone?
Johnster.
Thanks for your thought, seems to work though.

Why doesn't this look at the age of newest closed position in group 2 ?
Instead it looks at the age of the newest close sell in general.
Got it working now.
For now it's good enough.
Easy after all.
Thanks all.
Anyway, I've implemented the global thingy now, seems to work.
The next is a thing for later.
Thanks everybody.
@jstap A new thought came up... this means I can only run the EA once on a single computer? There is no magic number attached or something?
I can restore all values in the "on init" tab right?
This runs the stuff just one time when it starts up? Correct?
This might actually fix my problem.
Ran some tests yesterday and not storing vars, indeed gives a lot of problems upon restart. .
Thanks mate.
https://fxdreema.com/shared/eLJBfyide
Global Writing is fine... now how to put them back in terminal variables.
Your name is not accidentally Jasper? And you play sax?
Is the example you gave me above correct?
I'm on mt5 btw. @jstap
Can't post images here? Only links?