Simple MT4 Hedging EA

I've been testing a hedging strategy and the manual orders are getting a little dedious. This should be pretty simple EA for any experienced programmer.

I need an EA that simultaneouly opens a BUY and SELL order when started.

These orders need identical stops/take profits that are based off of a spread factor:

Spread factor is equal to 2 X the spread of the currency (spread factor is always calculated this way)

Example: EURUSD spread = 2 pips / Spread factor = 4 pips

GBPUSD spread = 3 pips / Spread factor = 6 pips

Okay, now the EA needs to calculate the stop-loss using an adjustable multiple of the spread factor. Both orders have the same value stop-loss.

Example: EURUSD spread factor = 4 pips

Stop-loss multiple = 2

Stop-loss = 4 pips X multiple of 2 = 8 pip stop-loss

The EA needs to calculate the take profits using an adjustable multiple of the spread spread and then add one additional pip to that number. Both orders have the same value take-profit.

Example: EURUSD spread factor = 4 pips

Take profit multiple = 2

Take profit = 4 pips X multiple of 2 + 1 pip = 9 pip take profit

Additional note, my broker is 5 digit broker, so when I say 1 pip, I'm actually referring to the fourth decimal (however that works for programing).

When both trades have closed, the EA reopens the hedged position just as described above.

Money management will be a fixed lot number.

Pretty simple...let me know if you have questions.

Taidot: projektinhallinta, Windows Desktop

Näytä lisää: hedging mt4, Hedging, mt4 hedging, simple hedging, simple hedging mt4, profit pips mt4, hedging strategy mt4, mt4 based hedging strategy, manual order hedging strategy, hedging mt4 profit, opens multiple buy sell trades, mt4 hedging strategy, mt4 calculate spread, loss hedging, manual order management mt4, mt4 spread, simple programmer, simple questions, manual testing project, ea, ea mt4, multiple pending order mt4, mt4 stop order, stop mt4, stop loss strategy

Tietoa työnantajasta:
( 29 arvostelua ) Federal Way, United States

Projektin tunnus: #476090

3 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Kindly Check PMB. Thank you.

$100 USD 0 päivässä
(4 arvostelua)

I can write this EA for you.

$50 USD 1 päivässä
(16 arvostelua)

Hi, MT4 is my speciality, you post all the detail needed for your strategy, which is good. So I already started working on this please, contact me so we can talk about other details in the code. Best Regards

$50 USD 2 päivässä
(1 arvostelu)