Ok, I'm currently using this one:

var MiU = 0;
for(open_trades)
MiU += TradeLots*MarginCost;

(Tradeloops are pretty handy laugh )