Can you then make an EA based on the OsMA indicator, to do the following:
1. Open buy position when buy signal is generated and close position when sell signal is generated.
2. Open sell position when sell signal is generated and close position when buy signal is generated.
3. Allow OsMA setting to be modified manually.
OR
Do the above using the attached indicator.