Hi all,
I am not basically a expert in programming expert advisors, but i need a very simple EA based on moving average break out which just buy or sell based on close > or < on a given period of MA shifted 2 bar and in EA i like to add more money managment options like trailing stop or fixed stop and stop to last bar low or high depends on direction of trade entered will be more happy if suggest some more suggestion after a basic code of EA if some kind heart here develops.
Break out : Price close above MA 7 shift 2 = long stop last bar low or a fixed pips or % of acct size or a ATR based or any other better model if avaliable
and vice versa for short, trail stop and targets and compounding positions and other scenerioa we can discuss and plan better models to be simple targets if better are same as stop or better 2X of risk and until stop hit we dont need to reverse position or reverse if signal reverse are additional options we need to add.

and need to see which is better on long run with back test and forward testing further
Works best on 4 hr or daily or higher timeframes..