I see no loop call in your script. You must really call loop(), not for(). Check out workshop 6 about portfolio systems.