Работа завершена
Техническое задание
EA should use moving average to determine when to place orders. EA should make buy orders when a candle stick close above moving average and make sell orders when a candle stick close below moving average. Ea uses no stoploss but uses an opposite bigger lot size pending order as stoploss.
This is opening a higher lot size trade in the opposite direction of the original trade when EA is losing some amount of pips specify by user which I call RECOVERY AREA. My recovery area is my acceptable loss which am willing to risk after that Ea by DownSave"> hedges trade with a bigger lot size opposite trade .In this situation EA completely ignore moving average entry method until it completely close the entire sequence at my define set profit then continue placing trades in the direction of moving average.eg if EA is in a sell position of 0.01 and my acceptable recovery area pip is 20pips immediately the sell order is placed Ea should calculate 20pips and put a bigger lot size pending order(buy stop 0.02) waiting to be hit incase trade goes bad. If market continues to go long and profit target is hit, EA should close the entire sequence at profit (both loss sell 0.01 and profit buy 0.02). immediately my buy stop order is picked Ea immediately place a bigger lot size pending order sell stop(0.03)at the same position where the initial sell order(0.01) was place waiting to be hit in case the market decides to reverse after hitting buy stop, Ea continues to repeat this process till my profit target is hit and Ea closes the entire sequence at profit . Immediately profit target is hit Ea close all trades including (active orders and pending orders) and continues placing trades in the direction of moving average.
Ea should have lot multiplier which mupliers orders base on next orders.
Ea should have breakeven .breakeven should be based on number of trades Ea places eg.if EA places trade above a specific number of trades ,Ea should target to close all trades at breakeven