New grid farming Expert Advisor

Hi Guys… Help needed.
I am developing a new grid based system which works on the concept that from the outer edge the price revert back to the moving average.

The problem I am facing is I am not able t predict reversal perfectly. as a result lot of open risk trades are added to the grid system. The minimum balance require to trade is staying as high as $500 with risk percent of 0.1% per trade.

I have back tested the EA for a year on AUDUSD. Result attached.

EA is also attached. Please remember the EA is free to use, so use with caution.
Watch the trade opening and closing sequences and please suggest any concept i could add to it to make it better.
Farming.ex4 (42.3 KB)