Index trading: mathematical analysis