Please help to fix my code for switch and case oparetor

 

 Hi,

I wanted to use this code in my expert but the code not being compiled.The compiler shows error.

How to make this code without switch and case operator.Please help I just started to learn mql coding. 

 

<decompiled code removed>
Reason: