Thanks for posting my addition Steve
I should complete my explanation as I realised there was a small typo (serves me right for writing an email whilst trying to wrangle kids!)
My standpoint was to draw a line in the sand by taking the account equity when we first open a trade on a pair we're running Candle Power on. I then calculate the equity change that is happening as a result of only trading on this pair by Candle Power. So the account equity changes that are happening by other EA's or on other pairs have no impact on this calculation.
I'm then looking to hit a target equity value based on a percentage entered by the user to close out all the trades of this pair, so that we can rinse & repeat and start again.
There might (separately) be an argument for allowing a similar process but across _all_ candle power pairs, thereby allowing some pairs to offset others.
But hey, let's walk before we run.
All the best,
Richard.