corrected algo for combined indicators balanced average