Specification
The EA does a buy operation if the moving average slope is positive and the current price is outside the envelope on the upper side, and does a sell trade in the opposite case.
The trades will be carried out at market price with SL equal to X times the width between the upper and lower envelope line and TP equal to Y times the width between the upper and lower line
The order volume will be managed according to the setting being able to chose fixed lot, money management with R% risk, kelly Criterion (see wikipedia)
It should be possible to choose from settings if the EA can have more than one trade open at the same time
It should be possible to choose from settings if the EA will have to wait for the change of slope of the moving average to do the next trade or otherwise it will be able to execute the trade as soon as the previous one is finished.
A trailing stop must be set among settings and utilized in trading if I want.
I need a price for the EA only for backtesting and another price for EA to work on real account.