There is a trade enumeration loop called when EXITRUN is true. This is the last few lines of code in my example. Maybe you missed it because you need to scroll down the code to see it?

It seems that the values assigned to the TradeVars prior to entering a trade with enterLong() or enterShort() are associated with each individual trade, because when I call the trade enumeration loop, I get mostly correct values printed for the TradeVars. However, this is only the case when I comment out one of the algos in the algo loop, which seems like it could be a bug? Either that, or my usage is incorrect.