仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Hi everybody, here it is what EA I'd like to do for me.
BUY TRADE SIGNAL: a new market BUY position must be opened when fast EMA has crossed slow EMA from below NOT NECESSARILY ONLY IN THE PREVIOUS CANDLE, AND fast EMA is 10 points (or more) higher then slow EMA.
When buy trade is opened, three different sell limit orders as partial closes, with smaller volumes, must be opened.
SELL TRADE SIGNAL: a new market SELL position must be opened when fast EMA has crossed slow EMA from above NOT NECESSARILY ONLY IN THE PREVIOUS CANDLE, AND fast EMA is 10 points (or more) lower then slow EMA.
When sell trade is opened, three different buy limit orders as partial closes, with smaller volumes, must be opened.
IMPORTANT: EMA crossing may occur UP TO 12 CANDLES DOWNWARDS (not only in the last one).
TRAILING STOP LOSS BEHAVIOR: it must be set by a fixed amount of points FROM SLOW EMA, and NOT from trade entry price. It must update itself ONLY when candle is completed, and new slow EMA value is available. It must trail immediately at candle closing, WITHOUT any breakeven jump functionality.
IMPORTANT: if initial stop loss has a distance from entry price greater than 300 points, NO trade must be opened.
If this case occurs, EA must WAIT A NEW CROSSING in the opposite versus to generate a valid trade signal.
For all trades after the first, old position must be closed, AND new position must be opened. Reverse with double volume must NOT been allowed. For every new trade, all old pending orders must be cancelled.
On Friday, 22:30 Rome time, all position must be closed, and all pending orders must be cancelled. All variables must be resetted.
On Monday, 00:00 Rome time, the EA must begin to work again, with NO initial positions open.
INPUT PARAMETERS (among all other standard ones):
* Trade volume as a percentage of account balance.
* Desired difference value (in points) between fast and slow EMA for last completed candle (to manage trade signal).
* Points value of each of three limit orders (profit distance from entry price).
* Trade volume (as a percentage of account balance) for each of three limit orders.
* Max points distance from stop loss to entry price (if it is greater, the trade must NOT be opened).
Hope it is clear!
Thanks
Alessandro