Instead of using the main
Framework.OnAccountMetrics = function(accountMetrics) {
// Receives the same accountMetrics object as in OnMessage
if (accountMetrics.equity != null) {
// Equity is changing, and therefore specified
} else {
// Equity is unchanged, and therefore not specified
}
};
The parameter to the