NEED SIMPLE EA for HEDGING

MQL4 Experts

Job finished

Execution time 23 days
Feedback from customer
Nicole is very matured and logical developer. Nicole is the best of best. I shall select Nicole for all my job orders and share my profit generated from her jobs.
Feedback from employee
Thank you!

Specification

DESCRIPTION:

I need one hedging EA which will help me to hedge based on my TAKE PROFIT, GAP value between BUY and SELL order and Predefined lot size in Input panel of EA.

 

EA BUTTON:

There should be three Button available in screen window:

(1) CLOSE

(2) BUY

(3) SELL

 

Function of Button:

(1) CLOSE: If we click CLOSE button, all present BUY and SELL trade will be closed.

(2) BUY: If we click BUY button, EA will take one buy trade at market price and Lot size will be L1 (mentioned below). Taking BUY trade will not close previous any trades.

(3) SELL: If we click SELL, button, EA will take one sell trade at market price and lot size will be L1 (see details below). Taking SELL trade will not close previous any trades.

 

Button will be places in below left corner of screen window.


EA Input Panel:

Following items must be included in EA input panel and value is already mentioned will be shown as default value:

GAP = 50

BTP = 50

STP = 50

L1 = 0.01

L2 = 0.02

L3 = 0.03

L4 =

L5 =

L6 =

L7 =

L8 =

L9 =

L10 =

MAGIC =

 

Explanation of Input variables:

(1) GAP:

Value of GAP is PIP value. Say, I am taking a buy trade at 1.2350 and I put GAP = 50 PIPS in EA input.  This means, if EA will take SELL trade for hedging, SELL trade will be triggered below 50 PIPS of BUY entry i.e. SELL trade will be taken at 1.2300

Similarly, If I take a sell trade at 1.2300 and set GAP = 50, then if EA needs to take any BUY trade for hedging, then BUY trade only will be triggered 50 PIPS above of SELL entry i.e. new buy trade will be taken at 1.2350

(2) BTP:

BTP is short form of BUY TAKE PROFIT. Say, I put BTP = 50 PIPS and my buy entry = 1.2350, then BUY TP = 1.2400

(3) STP:

STP is short form of SELL TRAKE PROFIT. Similarly, If I take SELL at 1.2300 and set STP = 50 PIPS, then SELL TP = 1.2300 – STP = 1.2250

(4) L1 to L10:

All are different lot sizes.

Use PIP value instead of points value for easy execution.

 

 ALGORITHM FOR EA:

 

BUY FIRST SEQUENCE:

(1) Assume that I have a Buy signal from technical indicator.

And I have one EA to take Buy trade. When I click BUY button as mentioned above, EA will take one buy trade. Lot value is exactly same as L1.

(2) All other trades or next trades for hedging purpose strictly will be taken by EA automatically based on following diagram:




(3) My first buy trade (B1) was manual which was taken by clicking BUY button.

Say I am taking 1st BUY trade (B1) at 1.2350.

I set GAP = 50 PIPS in EA input

I set BUY take profit (BTP) = 50 PIPS

Lot value was L1 = 0.01 which is default value in EA input.

Here is 1st BUY trade details:

ENTRY = 1.2350

TP = 1.2400

GAP = 50

LOT = L1 = 0.01

If this buy hits TP = 1.2400 then there will be no further hedging trades. I shall wait for next trade signal from Technical Indicator to take trade manually.

In case, BUY does not hit TP but goes down from Point-1 as marked in Picture. Now EA will keep observing 1st BUY trade up to GAP value i.e. 50 PIPS below of BUY entry.

(4) 50 PIPS below of BUY entry = 1.2300.

If current market price touch 1.2300, then EA will take one SELL trade (S1).

EA will assign TP of SELL trade by taking value from STP and lot size will be L2.

Here is the details of SELL trade:

ENTRY = 1.2300

TP = 1.2300 – STP = 1.2300 – 50PIPS = 1.2250

LOT = L2

 

Note: B1 is manual trade but S1 is automatic trade by EA. Also remember that EA will store 1.2350 for the entry value of all future BUY trades and 1.2300 for the entry value of all SELL trades.

 

This process will repeat until BTP or STP meet by market.

 (5) If Buy is the first trade then sequence will be like below

1st trade = Manual Trade = BUY TRADE:

 Trade number = B1, Lot = L1, TP = 1.2350+STP

2nd trade = SELL trade

Trade number = S1, Entry = 1.2350 – GAP = 1.2300, Lot = L2, TP = 1.2300 - STP

3rd trade = Buy Trade

Trade number = B2, Entry = 1.2350, Lot = L3, TP = 1.2330+BTP

4th trade = SELL trade

Trade number = S2, Entry = 1.2300, Lot = L4, TP = 1.2300 - STP

5th Trade = BUY trade

Trade number = B3, Entry = 1.2350, Lot = L5, TP = 1.2330+BTP

6th trade = SELL trade

Trade number = S3, Entry = 1.2300, Lot = L6, TP = 1.2300 - STP

7th Trade = BUY trade

Trade number = B4, Entry = 1.2350, Lot = L7, TP = 1.2330+BTP

8th trade = SELL trade

Trade number = S4, Entry = 1.2300, Lot = L8, TP = 1.2300 - STP

9th Trade = BUY trade

Trade number = B5, Entry = 1.2350, Lot = L9, TP = 1.2330+BTP

10th trade = SELL trade

Trade number = S5, Entry = 1.2300, Lot = L10, TP = 1.2300 - STP

 

SELL FIRST SEQUENCE:


(1) Manual 1st SELL by Clicking EA SELL button.

We can identify 1st SELL as S1

(2) Details of S1

1st trade = SELL trade

Trade number = S1, Entry = 1.2300, Lot = L1, TP = 1.2300 – STP

If S1 hits TP then we shall wait for next signal from Indicator. EA will not take any trades.

If market returns from point-1 and touches Buy line (1.2350) then EA will take automatically one Buy trade(B1) and here is the details:

2nd trade = Buy trade

Trade number = B1, Entry = 1.2350, Lot = L2, TP = 1.2330+BTP

 

EA shall continue this BUY-SELL process until BTP or STP meet by EA. Here is rest of sequence:

3rd trade = SELL trade

Trade number = S2, Entry = 1.2300, Lot = L3, TP = 1.2300 - STP

4th Trade = BUY trade

Trade number = B2. Entry = 1.2350, Lot = L4, TP = 1.2350+BTP

5th trade = SELL trade

Trade number = S3, Entry = 1.2300, Lot = L5, TP = 1.2300 - STP

6th Trade = BUY trade

Trade number = B3. Entry = 1.2350, Lot = L6, TP = 1.2350+BTP

7th trade = SELL trade

Trade number = S4, Entry = 1.2300, Lot = L7, TP = 1.2300 - STP

8th Trade = BUY trade

Trade number = B4. Entry = 1.2350, Lot = L8, TP = 1.2350+BTP

9th trade = SELL trade

Trade number = S5, Entry = 1.2300, Lot = L9, TP = 1.2300 - STP

10th Trade = BUY trade

Trade number = B5. Entry = 1.2350, Lot = L10, TP = 1.2350+BTP

 

Conclusion of Algorithm:

EA always use L1 lot value for 1st trade, L2 for 2nd trade and L3 for third trad and so on….

If Buy trade is first trade, then EA taken L1 for first buy trade

Then L2 must be 2nd trade i.e. SELL trade and so one

There never will be 1st and 2nd trade both trades are buy trade.

If first one is Buy then next one must be SELL.

If first one is SELL then next one is must be BUY.

For BUY First SEQUENCE:

BUY (B1, L1) – SELL (S1, L2) – BUY(B2, L3) – SELL(S2, L4) – BUY(B3, L5) – SELL(S3,L6) – BUY(B4,L7) – SELL(S4, L8) – BUY(B5,L9) – SELL(S5,L10)

Entry and TP are exactly same for all BUY trades.

Entry and TP are exactly same for all SELL Trades.

FOR SELL FIRST SEQUENCE:

SELL(S1,L1) – BUY(B1,L2) – SELL(S2,L3) – BUY(B2,L4) – SELL(S3,L5) – BUY(B3,L6) – SELL(S4,L7) – BUY(B4,L8) – SELL(S5,L9) – BUY(B5,L10)

 

Trade Comment:

Comment should be automatically inserted in every trade: Comment should Show Trade number + LOT SIZE

 For example, in BUY sequence: Comment for B1 trade: “Sr: B1 and Lot = 0.01”

 

Indication of DD:

There should Indication in screen window about Account Draw Down value.


PLEASE TEST YOUR PRODUCT BEFORE SENDING TO ME.


Condition:

(1) I shall not select anyone without checking his DEMO work

(2) DEMO version should have at least 7 days validity period.

(3) If you are not good in English, Please don't apply for this job. Difficult to communicate.

(4) My Price is $30. I can increase it if I see DEMO works good.


All The best.

Regards,

Paul


Responded

1
Developer 1
Rating
(229)
Projects
339
49%
Arbitration
21
5% / 33%
Overdue
24
7%
Free
2
Developer 2
Rating
(9)
Projects
11
45%
Arbitration
2
0% / 100%
Overdue
2
18%
Free
3
Developer 3
Rating
(42)
Projects
70
43%
Arbitration
6
33% / 50%
Overdue
19
27%
Free
4
Developer 4
Rating
(33)
Projects
35
40%
Arbitration
11
9% / 91%
Overdue
4
11%
Free
5
Developer 5
Rating
(376)
Projects
475
40%
Arbitration
83
36% / 33%
Overdue
13
3%
Busy
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Indicator in use: Bollinger Bands Mechanism (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the lowest point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal; or if on Futures if the increment is .25 or .10 then this is used) 2. Enter sell ONLY on the next candle if price breaks
Indicator in use: Bollinger Bands Mechanism: (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal) 2. Enter sell ONLY on the next candle if price breaks below the trigger candle LOW (using the e.g. above- if next candle price
hey guys, im looking for an auto mt5 license system through a web app i have already, i simply want it so a unique license key is generated for memebers, they input this onto the EA input and then it checks if its valid. active license per user capped at 5. i already have an mt5 coder and dec team for the app so i dont know if youd prefer to intergrate onto the webapp yourself or simply provide the code and doc so my
I need a simple panel to execute both buy and sell operations with very basic things like stopp loss take profit that functions for both market orders such as buy stop sell stop buy limit sell limit I don't care about colors or design I just want how you can do it what interests me most are the functions
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
We are seeking a skilled developer who can convert a Tradingview indicator written in Pinescript to a NinjaTrader indicator written in C#. The goal is to create a profitable trading strategy using this indicator. The successful candidate will have expertise in both Pinescript and C# programming languages, as well as a strong understanding of trading indicators and strategies. The main responsibilities will include
I am seeking an experienced MQL5 developer to create a user-friendly manual Grid Trading Expert Advisor (EA) with the following key features: Dynamic Grid Trading: Adjustable Grid Distance: Traders can manually input grid distance in pips via an intuitive, movable table. Take Profit Management: Fixed TP for the initial positions (e.g., first 5 trades). Stop-Loss (Optional): Traders can choose to use a stop-loss with
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Develop EA to track performance metrics of strategies I would like to develop an EA that will track the performance metrics of the strategies I have running on a terminal, If any of the metrics start to under perform then the EA/Indictor should alert me with a pop up alert that specify's the metric that has triggered the alert. The EA should also display the metrics in a dashboard - please see my example screen shot
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode

Project information

Budget
30+ USD
For the developer
27 USD