Hedge to Profit EA

MQL4 Experten

Auftrag beendet

Ausführungszeit 42 Tage
Bewertung des Kunden
Developer demonstrated an excellent understanding of trading and coding which was an excellent combination for the job he carried out for me. I recommend him.
Bewertung des Entwicklers
Good client, clear rules and nice communication. I was glad work for...

Spezifikation

The idea behind this EA is to hedge, take profit on the trades that are making profit and manage the trades that in loss with the aim that overall, the account will end in net profit.

The description is as follows

Opening Buy and Sell at the same time.  I want the EA to trade either of the following trade events and other user inputs:  

string note = "========= EA Trade Events and Other User Inputs =========";

input string Start_time = "01:00", Stop_time = "00:15";//EA will only trade at this time

bool TradeAuto = True;// if true, EA will trade as soon as it is launched on the chart 

Input double TakeProfit = xx;

Input double StopLoss = xx;

STEP 1: TRADE ENTRIES

As soon as this EA’s trade event is triggered, eight entries are automatically generated (Two entries in Step 1a, Three entries in Step 1b and Three entries in Step 1c)  

Step 1a: Open 1 buy and 1 Sell @ market.  Lot size = User input. Take Profit = User Input; StopLoss = 0;  

Step 1b: At the same time open Buy Stop, Buy Stop, Sell Limit. Treat as follows:

     Step 1b(1)  Buy Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

     Step 1b(2)  Buy Stop:   Lot = same as in 1a, Take Profit = 0,  StopLoss=User input; 

     Step 1b(3)  Sell Limit;  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0; 

Note that the price to use for pending orders is market price + TakeProfit Pips         

Step 1c:  At the same time, open 1 Buy Limit, Sell Stop, Sell Stop. Treat as follows:

          Step 1c(1)  Sell Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0; 

          Step 1c(2) Sell Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 1c(3) Buy Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

STEP 2: TRADE MANAGEMENT AND EXITS WHERE BUY TRADE HITS PROFIT FIRST

Step 2a. If the trade moves up 100 pips (depending on the user input for TakeProfit), the buy trade will close in profit of 100 pips (depending on the user input for TakeProfit). At that same point, a sell trade will still be open at this stage. The floating loss on this trade will be 100 (depending on the user input for StopLoss. Also, at the point, the pending orders (2 Nos Buy Stops and 1 No Sell Limit) created in 1b above will trigger and four open trades will float. 

The four open trades will be as follows:

1.     Sell trade that will be now 100 pip loss. At this point, adjust Take profit to zero

2.     New buy trade triggered from the previous Buy Limit

3.     New buy trade triggered from the previous Buy Limit

4.     New Sell trade triggered from the previous Sell Stop

Step 2b. The pending trades opened in step 1c above, should now be deleted and another three pending trades to replace them at a distance equal to the StopLoss/Takeprofit. The trades are as follows:

          Step 2b(1)  Sell Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

          Step 2b(2) Sell Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 2b(3) Buy Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

STEP 2: TRADE MANAGEMENT AND EXITS WHERE SELL TRADE HITS PROFIT FIRST

Step 2a. If the trade moves down 100 pips (depending on the user input for TakeProfit), the sell trade will close in profit of 100 pips (depending on the user input for TakeProfit). At that same point, a buy trade will still be open at this stage. The floating loss on this trade will be 100 (depending on the user input for StopLoss. Also, at the point, the pending orders (2 Nos Sell Stops and 1 No Buy Limit) created in 1b above will trigger and four open trades will float. 

The four open trades will be as follows:

1.     Buy trade that will be now 100 pip loss. At this point, adjust Take profit to zero

2.     New Sell trade triggered from the previous Sell Limit

3.     New Sell trade triggered from the previous Sell Limit

4.     New Buy trade triggered from the previous Buy Stop

Step 2b. The pending trades opened in step 1c above, should now be deleted and another three pending trades to replace them at a distance equivalent to the StopLoss/Takeprofit. The trades are as follows:

          Step 2b(1)  Buy Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

          Step 2b(2) Buy Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 2b(3) Sell Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

 

Either of the two scenarios will continue forever.  Each time a Take Profit level is reached, profit is taken at that level and existing pending orders will be deleted and new ones placed.   

Note, it is the entry (Buy or sell) that has Take Profit that will have profit adjusted to zero.  This is to ensure that when the trade starts reversing, such trades will be taken out at zero

 

DEMONSTRATION

In the following example EURUSD is used to demonstrate how the EA should work

Assumptions are as follows:

TakeProfit = 100;

StopLoss = 100;

TradeAuto = True;

Current Price of EURUSD = 1.14194

Since our trade event is chosen as Auto, the EA will launch trades as soon as it is attached to the EURUSD chart.    

1a. The following entries are generated

1a(1) Buy EURUSD @ 1.14194 Stop Loss = 0, Take Profit =1.15194

1a(2) Sell EURUSD @ 1.14194   Stop Loss  = 0, Take Profit = 1.13194

1bPending orders as follows BBS above market price

1b(1). BuyStop EURUSD @ 1.15194,  Stop Loss = 0, Take Profit = 1.16194

1b(2). BuyStop EURUSD @ 1.15194,  Stop Loss = 1.14194, Take Profit = 0

1b(3). SellLimit EURUSD @ 1.15194 Stop Loss = 0, Take Profit = 1.14194

1c. Pending orders as follows SSB below market price

1c(1). SellStop EURUSD @ 1.13194, Stop Loss = 0, Take Profit =  1.12194

1c(2). SellStop EURUSD @ 1.13194, Stop Loss = 1.14194, Take Profit = 0;

1c(3). BuyLimit EURUSD @ 1.13194,Stop Loss = 0, Take Profit = 1.14194

When price moves upward and reaches EURUSD = 1.15194, the following will happen,

1.     Buy EURUSD @ 1.14194 will hit take profit at 1.15194 and be closed at 100 pips profit   

2.     Sell EURUSD @ 1.14194 will have open loss of 100 pips and TP will move to 1.14194

3.     Pending BuyStop orders (2 Nos) will trigger at market at the price 1.15194   

4.      Pending SellLimit order (1 No) will trigger at market at the price  1.15194   

5.     The 3 Nos pending orders SellStop EURUSD @ 1.13194, SellStop EURUSD @ 1.13194, BuyLimit EURUSD @ 1.13194 will be deleted.  

6.     New Pending orders (6 Nos) will be opened to replace them as follows:

a.     SellStop EURUSD @ 1.14194, SellStop EURUSD @ 1.14194, BuyLimit EURUSD @ 1.14194   

b.     BuyStop EURUSD @ 1.16194, BuyStop EURUSD @ 1.16194, SellLimit EURUSD @ 1.16194 

 

7.     This process will continue to repeat each time price reaches a new Take Profit level.

The above process will be reversed if price starts to go down.

Once the trade cycles repeats to the level where the accumulated profit per trade is up to twice the take profit level, all open trades should be closed and the cycle started all over again.

In the above case, once the open and closed profit is up to 200 pips, all trades related to the trade cycle should be closed and a new cycle started.


Bewerbungen

1
Entwickler 1
Bewertung
(620)
Projekte
680
57%
Schlichtung
25
16% / 60%
Frist nicht eingehalten
228
34%
Frei
2
Entwickler 2
Bewertung
(349)
Projekte
463
51%
Schlichtung
41
24% / 49%
Frist nicht eingehalten
149
32%
Frei
3
Entwickler 3
Bewertung
(94)
Projekte
148
59%
Schlichtung
16
38% / 13%
Frist nicht eingehalten
25
17%
Frei
4
Entwickler 4
Bewertung
(646)
Projekte
1294
67%
Schlichtung
84
26% / 49%
Frist nicht eingehalten
338
26%
Frei
5
Entwickler 5
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
1
100%
Frei
6
Entwickler 6
Bewertung
(258)
Projekte
395
28%
Schlichtung
69
19% / 49%
Frist nicht eingehalten
120
30%
Frei
7
Entwickler 7
Bewertung
(4)
Projekte
6
0%
Schlichtung
2
0% / 50%
Frist nicht eingehalten
4
67%
Frei
8
Entwickler 8
Bewertung
(27)
Projekte
43
7%
Schlichtung
18
6% / 78%
Frist nicht eingehalten
26
60%
Frei
9
Entwickler 9
Bewertung
(96)
Projekte
142
75%
Schlichtung
0
Frist nicht eingehalten
2
1%
Frei
10
Entwickler 10
Bewertung
(90)
Projekte
118
17%
Schlichtung
44
23% / 39%
Frist nicht eingehalten
20
17%
Frei
11
Entwickler 11
Bewertung
(259)
Projekte
533
50%
Schlichtung
54
41% / 37%
Frist nicht eingehalten
224
42%
Beschäftigt
12
Entwickler 12
Bewertung
(62)
Projekte
84
26%
Schlichtung
22
23% / 50%
Frist nicht eingehalten
23
27%
Frei
13
Entwickler 13
Bewertung
(586)
Projekte
1045
49%
Schlichtung
39
28% / 41%
Frist nicht eingehalten
49
5%
Frei
14
Entwickler 14
Bewertung
(5)
Projekte
7
0%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
5
71%
Frei
15
Entwickler 15
Bewertung
(66)
Projekte
143
34%
Schlichtung
11
9% / 55%
Frist nicht eingehalten
26
18%
Arbeitet
16
Entwickler 16
Bewertung
(43)
Projekte
72
49%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
19
26%
Frei
Ähnliche Aufträge
i just need a simple bot that opens trades with trend and and countertrend at the same time and i can input the distance between each trade mannually at least 3 to 4 times and then all of them will be the same distance
The modification needed on this autotrade robot is simple. I want the bot to close an opened position in a specified period of time when price fails to hit the take profit. Think of it as a timed stop loss instead of the regular known pip stop loss. A working demo version will be requested to show me you have successfully made the revision
Greetings! I am looking for an EA with the below requirements, it must suit Prop. Firm Trading rules. 1) Entry Criteria: Fibonacci Levels Entry Combined with Fractals (Possibility to change the Fractals). Each trade must have a definite SL. Daily drawdown should not exceed 2%. 2) All the orders must be limit orders. 3) Trailing stop (ON/OFF) to be provided. – Option to toggle. 4) Possibility to change the
Hi! I want an expert advisor that can buy and sell, using one Moving Average under the conditions I will say below, for for all major currency pairs as well as OIL and DAX and GAS The system must work in Meta 4 Platform and of course,when my platform is migrated to a virtual platform, the robot should also be migrated. The scenario is as follows: A)1) We assume that the prices rise , with them and the prices
Requesting to update article code to work with latest terminal version. Please refer to article before approaching. Article: https://www.mql5.com/en/articles/3215 Require you to please update and send new source code files back. Thank you
Requirements for programming a custom Expert Advisor (EA) for MetaTrader 5 (MT5) Summary: The following requirements describe the features and functionalities that the custom Expert Advisor for MT5 should have, including integration of functions from the POW Banker EA, trade closure options, filter and signal configuration, control panel, and specific protections. Integration of functions from the POW Banker EA: a
I have a indicator that I want to make a EA for it uses 2 moving averages to trade from I want it to have risk management dashboard features to it as well please apply if you can make good mt5 EA's and lets work
Indicators: Bollinger bands with option for adjusting the following inputs (but by default use default bb settings) Period: 20 Deviation: 2 Shift: 0 Apply to (Close) Candle criteria for entry: Sell: 1. At close of candle, the high of candle is exactly at or above the upper bollinger line price 2. Distance between candle close price and candle high price must be the same or less than the distance between candle
i currently have a indicator system that i would like modified to be able to open buy/sell trades when it has the corresponding signal. i would like to be able to adjust stoploss and takeprofit levels. i would also like it to have customisable trailling stop
ICT FVG EA 30+ USD
I need a developer who is familiar with FVG and ICT trading techniques. The EA will trade based off of Asia, London, and Pre-NY High/Low values and then place trades at specific times depending if a FVG is established. I have two videos to present to potential developers that will detail the strategy and EA

Projektdetails

Budget
50 - 100 USD
Für die Entwickler
45 - 90 USD
Ausführungsfristen
von 2 bis 4 Tag(e)