Some genuis help me with this code!!

 

It's strategy is to open orders when there are moving average orders "SMA10-SMA20-SMA50-SMA100-SMA200"either from bottom up or the opposite,and close the order when there is a SMA10-SMA20 cross contrary to the trade direction.

But when I put it into MT4,it didn't open orders when the Moving Average orders show.

I am not a very sophiscated programer, I just spent half a year in college studying C program, I am very confused and helpless now!

Is there some good people can help me with this code?

 
Attach the code using the "SRC" button.