Job finished
Specification
- Opening an initial position either sell/buy with SL and TP.
- Initial lot size for the initial position needs to be set by user.
- SL and TP needs to be set by user by pips.
- Multiplier for the lot size needs to be set by user.
- Needs to have a selection of how many maximum hedge position to be opened.
- EA should stop once manually position and orders are manually closed.
After INPUT of initial Lot size position / SL & TP / Multiplier for the lot size / and maximum hedge position. EA should start with either sell or buy (see below for initial position condition) at the same time open a hedge position in opposite direction (either buy order or sell order depends on initial position) with same TP and SL value and bigger lot size depends on the multiplier. When the initial position hits the TP, the hedge position in opposite direction needs to close and the loop should start again with the initial condition. When the SL is hit and the hedge position is activated, it should open a hedge (buy/sell Order) again in opposite direction with again bigger lot size depends on the multiplier with same TP and SL. It should continue hedging until it reaches the maximum number of hedge position set or by hitting the TP.
Initial position depends on the 20 EMA at 15 mins Time Frame. When above 20 EMA initial position needs to be BUY and below 20 EMA should open SELL initially.
See attached file for more visualization.