Can someone help me with my very simple RSI EA

 
Hey guys, was wondering if anyone could help me with my simple RSI EA, it opens very few trades, but basically I want it to open a position based on a candles close, if the RSI is overbought or oversold. I also want it to exit positions on the opposite signal. Here it is. 
Files:
march28.mq5  2 kb
 
nevermind I actually figured it out. It's because my copybuffer was at the onInit function and not OnTick.
 
Scott David Maclean #nevermind I actually figured it out. It's because my copybuffer was at the onInit function and not OnTick.

Good job! ;-)