İş tamamlandı
İş Gereklilikleri
I would like the following EA to be created in MT4 platform.
Trading Mechanism
1. The trading robot when activated, will place 2 pending orders at a defined gap (Gap_from_Price parameter) from the current price. (for example: a pending buy 50 points above current price & a pending sell 50 points below current price) StopLoss & TakeProfit in Points will be defined as well.
2. Subsequently, the trading robot will begin to update the 2 pending orders according to the defined Order_Refresh_Interval parameter. (for example: Every 15 seconds)
3. When there is a sudden price surge, 1 of the 2 orders will be triggered, and the non-triggered pending order will be deleted. (for example: When buy pending order is triggered; the pending sell order will be deleted)
4. When order is in loss, the maximum loss is defined in StopLoss parameter.
5. When order is in profit at defined BreakEven_Start parameter, the StopLoss is moved to the BreakEven parameter price. (for example: buy order price at 1.00000, current price at 1.00050, then StopLoss will be moved to 1.00010)
6. When order is in further profit at defined TrailStop_Start parameter point, the StopLoss will be set to the trail the current price defined by the TrailStop parameter. TrailStep parameter will be used to control the movement of the StopLoss in points.
The trading robot should have the following parameters to be made changeable by the end user.
Magic number = 1100123456
EA_Start_Hour (from 0 to 24 Hours)
EA_Start_Minute (from 0 to 60 Minutes)
EA_End_Hour (from 0 to 24 Hours)
EA_End_Minute (from 0 to 60 Minutes)
Gap_from_Price (in Points)
Order_Refresh_Interval (in Seconds)
Maximum_Spread (in Points)
StopLoss = 100 (in Points)
TakeProfit = 100 (in Points)
BreakEven only when in profit = Yes or No (Click Option)
BreakEven_Start when in profit = 50 (in Points)
BreakEven = 10 (in Points)
(means Break Even will move from StopLoss to opentrade price plus 10 points when price is in profit)
TrailStop only when in profit = Yes or No (Click Option)
TrailStop_Start away from price when in profit = 60 (in Points)
(means TrailStop_Start will move from BreakEven to 30 points (TrailStop parameter) away from price when price is in profit)
TrailStop = 30 (in Points)
TrailStep in points = 1