1) You need a feature to allow Portfolios to be opened, closed and edited by name. When loaded by portfolio name MC should open or close all workpaces associated with that porfolio. There should also be some variable or feature that ties all the indicators in the portfolio together. i.e so no one chart can start trading before the entire group of workspaces is fully loaded ( not just backfilling)
2) Code for Gloabal variables should be made part of the Powerlanguage instruction set Importing third party applications makes for a messy solution whereas it could be nice and clean if embeded. This also goes towards trading porfolios where signals may need to be taken across many symbols depending on your portfolio trading strategy.
FWIW
J~