That workshop page has some interesting stuff on it, but there are no for loops in the code at all. Nor are there any references on the page to for loops of any kind. So I don't see how that workshop clarifies the difference between "current" and "open" for loops.
I already inferred that current trades in this context appear to be a subset of open trades, so your confirmation of that inference is helpful. Thank you for that.
I also infer that "current" in this context refers to what asset or algo the script is trying to look at specifically. So for example, if a script focuses its attention on all open trades in EURUSD, the current trades would be those EURUSD open trades, while non-current trades would be open trades in other investment instruments besides EURUSD.
However, I don't see anything in the two functions as described in the manual that tell me how exactly to instruct the script to differentiate between them by focusing on EURUSD. Maybe the functions draw an inference from the context of the script in some way?
So far, it feels more like "magic" than programming. Since magic is technology that isn't fully understood, I'm trying to understand it.
Last edited by WaltT; 08/20/22 19:47.