fix to mva.sql to account for strategies with multiple indicators

also fixed some syntax errors in the calculations