A strategy portfolio can be assigned a tax system script to calculate and reduce stocks, futures and FOREX capital gain taxes from the portfolio accounts. A tax system script will usually calculate the taxes on the entire portfolio and only then decide how much tax to reduce from each account.
The IQBroker automated trading platform ships with a library of premade tax system scripts that can beused without any programming, while custom scripts can easily be developed using the resource designer and IQLanguage.