This EA is a typical Martingale Hedging

MQL4 Experts

Specification

1

JOB DESCRIPTION  (The final job is the delivery of the source code)

 

 

This EA is a typical Martingale Hedging EA.

It opens an order (for example: buy, 0.1 lot) and at the same time places a pending order in the opposite direction with a bigger lot size (for example: sell, 0.2 lot) at a certain distance (for example: 300 pips).

If the price descends 300 pips this second order will be activated. If the price keeps going down, at one point the first order (buy) will hit SL and the second order (sell) TP. As the second order has a larger lot size than the first order, the total outcome will be profit (or break even).

If the price does not hit TP and SL, and goes up again, then a new pending buy order will be activated at an even bigger lot size (0.3 lot). This process will go on until TP is hit and the hedge trading sequence closes.

- A new pending order will only be placed as soon as the last pending order is activated.

- A hedge trade sequence should ALWAYS be closed by TP and NEVER only by SL.

- All the existing trades in a hedge trade sequence will match their TP and SL values accroding to the latest activated trade (this is important in case the distance between the trade changes - "DistanceTrade"

- Where this EA differs a bit from a standard Hedging EA one is that it has relatively little automatisation and a lot of manual input fields.

- The EA works independent from the time frame it operates in.

- The EA should work with 5 digit as well as 4 digit brokers.

 

 

******************************************

 

 

INPUT FIELDS:

 

PauseAfterTP = true/false

        - It pauses (soft stop) the EA after TP is obtained and a Hedge trading sequence is closed - if "PauseAfterTP=true". The EA stops trading for an INDEFINITE amount of time. It will start trading again as soon as the Trader puts back "PauseAfterTP=false"

 

 

MaxSlippage = …..

        - the max slippage allowed for entering a trade

 

MaxTrades = …..

        - the max. number of trades in a hedging trade sequence

 

Magic Number = …..

 

MinEquityLevel = false/true

MinEquityLevel = …..

        - below this level the EA will not open new trade sequences (although it will allow already existing hedging trade sequences to continue and make new trades until they close with TP/SL)

        - the value introduced is the % of the total account balance.

 

UseEquityStop = false/true

TotalEquityRisk = …..

        - If the total Equity drops below this point the EA closes all the trades.

        - the value introduced is the % of the total account balance.

 

 

DeleteAll_TP_SL_LastTrade = false/true

    - When the last pending stop in a Hedge Trade Sequence is ACTIVATED we have the option that all the TP, SL and Trailing stops can be deleted. (DeleteAll_TP_SL_LastTrade = true)

    - The max. number of trades in a hedge trading sequence is set by the "MaxTrades" parameter.

 

       

AutoLot = true/false

- IF “AutoLot = false”, THEN the size of the initial trading lot is equal to “StartLot”

- IF “AutoLot = true”, THEN the size of the initial trading lot is equal to: StartLot x RiskPercent x (Account Balance / 10.000)

 

RiskPercent = …..

 

StartLot = …..

 

 

InitialTrade = buy/sell

        is related to:

        - the first trade after starting up the EA.

        - the first trade after the EA was paused by the “PauseAfterTP” setting.

 

InitialTrade_PendingOrderPips = …….

        - the exact value in pips of the initial pending order.

        - if “InitialTrade_PendingOrderPips” = 0 than no pending order will be used and the EA will open a new initial trade as soon as the EA starts up

        - this value resets itself to 0 as soon as this pending order is activated

 

TralingStopStep = …..

        - trailing stop step distance in pips

 

------------------------------------------

 

TP1 = …..

        - the distance of the TP of the initial trade in pips (the lot size of this trade is calculated earlier in “StartLot”)

 

TrailingStop1 = …...

        - trailing stop trailing distance.

        - the Trailing stop is activated when the prices reaches TP1 value. If that happens TP1 is cancelled.

 

SL1 = …..

        - the distance of the SL of the initial Trade in pips

 

------------------------------------------

 

DistanceTrade1-2 = …..

        - the distance between the initial trade and the second (pending) order

Lotsize2 = …..

        - the lot size for pending order 2 (the size is also calculated according to the “AutoLot” and “RiskPercent” settings)

TP2 = …..

        - the TP distance for trade 2 in pips

TrailingStop2 = …...

        - trailing stop trailing distance (for TP2)

SL2 = …..

        - the SL distance for trade 2

 

-------------------------------------------

 

DistanceTrade2-3 = …..

        - the distance between order 2 and 3

Lotsize3 = …..

        - the lot size for pending order 3

TP3 = …..

        - the TP distance for trade 3

TrailingStop3 = …...

SL3 = …..

        - the SL distance for trade 3

 

-------------------------------------------

 

DistanceTrade3-4 = …..

        - the distance between order 3 and 4

 

…….. etc

…….. etc

…….. until trade 12

 

 

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

 


Files:

PNG
hedging2.png
148.1 Kb
PNG
hedging3.png
136.7 Kb
PNG
hedging4.png
104.7 Kb

Responded

1
Developer 1
Rating
(48)
Projects
80
28%
Arbitration
8
75% / 13%
Overdue
41
51%
Free
2
Developer 2
Rating
(17)
Projects
24
33%
Arbitration
5
20% / 40%
Overdue
8
33%
Free
3
Developer 3
Rating
(196)
Projects
200
28%
Arbitration
0
Overdue
3
2%
Free
5
Developer 5
Rating
(43)
Projects
72
49%
Arbitration
4
0% / 50%
Overdue
19
26%
Free
6
Developer 6
Rating
(586)
Projects
918
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Free
7
Developer 7
Rating
(4)
Projects
6
0%
Arbitration
2
0% / 50%
Overdue
4
67%
Free
8
Developer 8
Rating
(90)
Projects
118
17%
Arbitration
44
23% / 39%
Overdue
20
17%
Free
9
Developer 9
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
10
Developer 10
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
11
Developer 11
Rating
(58)
Projects
77
44%
Arbitration
12
8% / 50%
Overdue
12
16%
Free
13
Developer 13
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
14
Developer 14
Rating
(13)
Projects
34
76%
Arbitration
1
100% / 0%
Overdue
6
18%
Free
15
Developer 15
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Strategy: 1. Identify strong supply and demand levels. Draw them in the chart in green and red. In Tradingview: Market Structure Break & Order Block by EmreKb von EmreKb --> Strong demand and supply area refer to picture below (Buy and Sell Zones). There must be a strong demand / supply zone on a higher time frame in order for the set up to be valid. The time frame can be selected in the settings. E.g. "Higher Time
Hi there, I currently have a scalping strategy based of 3 thrid party indicators that I would like automated. This would help me with running the strategy through the strategy tester. Two of the indicators dont have iCustom functionality to pull the data in, so another way would have to be devised. The strategy incorpates trading activity, sentiment in the for of the ratio of traders in profit, and a third techincal
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
OK I just need 1 MOD Who can do it free There is a (Reciever EA) that receives signals from a (Sender EA) I need to ADD one mod It may even look like the option/signal is there= Ignore it Coding was wrong on that part This is simple The option in the Reicver EA will Be called "Open Copy Live" with the option to Set to True or False When set to true the Reicver EA will Watch
Hi there, I need a very highly skilled mt4 programmer to code and design an EA from scratch. The logic of the EA will be discussed with you in comments section, only reach out if you can code perfectly for mt4 using MQL4 coding solutions language, EA must be able to run well without any problems and work according to the logic thanks
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
### Summary of EA Requirements 1. **Time Period**: - The EA should operate on the H4 timeframe. 2. **RelicusRoad MACD v2 Indicator**: - **Parameters**: - Fast EMA Period: 12 - Fast EMA Type: Close price - Slow EMA Period: 24 - Slow EMA Type: Close price - Signal SMA Period: 9 - The EA should use this indicator to determine the crossover condition between the MACD line and the signal line. 3
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Ind V5 TV Strategy Requirements: Instruments: Forex pairs, Crypto and Stocks across exchanges TimeFrame: Multi-Time Frame comparisons, details below Indicators: Ichimoku Cloud, ATR & Choppiness Index Trade times: First Order: Day of Week Start Time, Day of Week First Order time, Day of Week Last Order Time and Day of Week Square Off Time Intraday TF: 1 min, 3 mins, 9 mins, 27 mins and 81 mins Position Size (Lots)

Project information

Budget
30+ USD
For the developer
27 USD