The Expert Advisor is based on the classic Moving Average indicator.
This expert Advisor uses four MA. All input parameters are available for optimization.
All the MA together determine the moment when the position should be opened and closed.
If the input parameter UseMM = True, the Expert Advisor will use the Money Management system to calculate LotSize as a percentage of ACCOUNT_FREEMARGIN.