Require someone code this into a script/ EA to use with MT4.
(1) When I drag script/EA onto charts, to place a trade buy/sell according to current candle. i.e buy if bullish, sell if bearish. Stop loss is 2 pips from lowest/ highest of current candle, Take profit is 3 X of stop loss.
(2) At the same time, to place a pending order for the opposite direction from current open order. Pending order trigger is the Stop Loss from current open trade. Stop loss will be the open price of above trade in paragaph (1). Take profit will be 3 X of stop loss.
(3) Pending order to be canceled immediately when (1) hits take profit.
Script must be able to calculate the lots required for risk, i.e calculate lots accordingly for risk % based on balance sum. To ensure that (2) remains same risk i.e lower lots due to (1) ending in loss due to hitting stop loss.
Please quote reasonably.