Can someone help me? with a simple ea.

 

I have a simple strategy, wich I trade for a long time (manual). Now i want to make an Expert advisor. I'm a newbie in MQL4 and maybe can someone help me.

I don't get the RSI visible and he doesn't open any positions. The ma's are visible but all in a red thin line.

The strategy is very simple.

Buy strategy: When 2 ema's cross the sma upwards and the RSI upward. Exit when the 2 ema crosses downward.

Sell strategy: When 2 ema's cross the sma downwards and the RSI is down. Exit when the 2 ema's crosses upwards.

Can somebody tell what is wrong in my coding?

Thanks

Jason

Files:
Reason: