Hedging EA

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 7 giorni
Feedback del cliente
Tuoitrecuoi once again amazes me by promptness of product and willingness to sit via Team Viewer for support and immediate changes. Tuoitrecuoi is the best programmer on MQL5.com

Specifiche

Note: Do not be intimidated by lengthy EA explanation below. It is very simple in nature. I also attach an EA where lot of the concepts are already finished.

 

Idea behind EA:

The Hedging EA sole purpose is not to make money, but to automatically hedge against positions that I do not want to close out. The idea is to protect balance and equity and free up some margin. In the event that a trade becomes too far in the negative, I would close out the primary trade, which will automatically close the hedge order. The end result would be to minimized loss against those positions that venture off too far into the negative.

Repeater should work on all Symbols and charts:

Inputs Should Include:

BrokerIsECN = Yes/No

Wait For New Orders = Yes/No (This means when EA is applied to chart, to apply rules based on existing order or start with new orders).

Hedge at Amount = This will be a figure in dollars ($). This is where the EA will place a hedge trade. For example, if I enter in “20”, then EA will place a hedging trade at -$20

Time Between Open Orders in Minutes = Primary orders will have its own timer. Order 1 will work off a different timer then order 2. So if this option is set at “5”, and order 1 hedge is placed…….then order 2 will not have to wait 5 minutes but could place order immediately if conditions are correct. Same goes for closing the orders.

Take Profit in $= This option will give me the ability to take profit in the hedge trade. However, after take profit, order will wait “Time Between Open Orders in Minutes” option before reentering the market if the Hedging conditions still exist. If conditions still exist per “Hedge entry at amount”, another Hedge order will be entered in. 

Exit at Previous Entry (Default Edging Exit Position) = With this option, The hedging order will set a TP at its previous entry. In other words, if it hits this TP, there will be no profit.  Note: If a hedge order is closed with the “Take Profit In $” option, or is closed manually, then the next hedge order most likely will “not” have the same “Exit at Previous Entry” as previous order. The reason is, this order most likely will enter in a price different then the first hedging order.  The “Exit at Previous Entry” should be placed wherever the Hedge order enters the market. The Hedging can continue to reenter the market an unlimited amount of times as long as the primary order is opened, the previous hedge order is closed out, and other hedging conditions apply.

Use lot size of original order = this means hedging order will always match the size of the primary order

Fixed Lot Size = this means hedging order will always follow a specific size regardless of primary order size

 

Additional Options:

 

Exit at Previous Entry (Default Edging Exit Position) – Just wanted to post a note first that No option below will ever exit past this point of entry TP unless the “Active Hedge Minimum time” option below allows the trade to carry past this mark.

 

Active Hedge Minimum time = this is a timer for the minimum of how long the hedge order must stay opened before it can close. This will prevent the order from closing as soon as it opens due to pricing jumps. If the order is past the “Exit at Previous Entry “after the minutes expire, then the hedged position will close automatically at a loss.

 

Exit Hedge at Commission Rate = this option will set a TP at the cost of the hedging position.  “Active Hedge Minimum time” will still take priority over this rule. There are free tools that could assist with this option found https://www.mql5.com/en/market/product/4033 and https://www.mql5.com/en/market/product/3509

 

Hedging Exit in $ = The Idea for this option is to manually input a point where the EA will exit a trade in profit in $. The idea works much like a trailing stop rather than a TP option. It must cross a threshold before it can be activated. If the trade does not cross this threshold, then it will exit at “Exit at Previous Entry”.

Hedging Threshold in $ = This is the Threshold that the EA must cross before the “Hedging Exit in $” can be activated.

 

Example:

When Hedge order is activated, then activate “Exit at Previous Entry”. If trade meets/exceeds “Hedging Threshold in $”, then activate “Hedging Exit in $”. But exit must still play by “Active Hedge Minimum time” rules.

 

Notes:

When the original order is closed, it will automatically close the hedge order.

Performance Handling- It is extremely important that this EA be able to keep up with order volumes in volatile markets. At any given time, I may have 50+ orders opened. I don’t know if the EA’s are automatically effective when it comes to order processing, or if this feature needs to be built in with some kind of data-check. Do not worry about PC processing power if building in more code requires it. I do understand the volatile markets may cause slippage, however I am more worried about the EA confirming the trade has been executed, or that a hedge has actually been closed.

I have attached a very similar EA. The rules of the attached EA are almost identical, but only the attached EA repeats order rather than hedge them. Feel free to use this as a starting point.

If you have any question, please reach out to me. 

Con risposta

1
Sviluppatore 1
Valutazioni
(88)
Progetti
138
25%
Arbitraggio
33
33% / 45%
In ritardo
59
43%
In elaborazione
2
Sviluppatore 2
Valutazioni
(362)
Progetti
504
40%
Arbitraggio
147
18% / 72%
In ritardo
98
19%
Occupato
3
Sviluppatore 3
Valutazioni
(49)
Progetti
77
43%
Arbitraggio
6
33% / 50%
In ritardo
22
29%
Gratuito
4
Sviluppatore 4
Valutazioni
(647)
Progetti
1295
67%
Arbitraggio
84
26% / 49%
In ritardo
338
26%
Gratuito
Ordini simili
Entry Rules Long Entry: Opens long orders at the upper band of the Keltner Channel (period 252, factor 3.35) plus 0.5 times the smallest range of the last 170 bars, with a SL of 0.5% and moves SL to break-even at 2.3 times the ATR(117), valid for 111 bars. Exit after 65 bars. Short Entry: Opens short orders at the upper band of the Keltner Channel (period 124, factor 4.76) minus 0.1 times the biggest range of the
I want to develop bot for MT4 and i will send pdf to explain in detail and you have any questions on it https://drive.google.com/drive/folders/1TPtn-THkqbLqf6kL_w09OD4vcmhOerIc?usp=sharing I will be looking for great developer to bid for it best regard
Hi ALL I have an indicator,i need an expert who will develop an EA with that indicator together with the inputs i will be the best project ever happen. i will share indicator after we negotiate
I am looking for a tool that will calculate the max adverse excursion before a trade closes in profit or loss. The toll needs to analyse historical trades and record this value for each trade. The purpose is to assist me calculate the best stop loss for using a martingale system
I need a trading robot that is automated and trades US30, NAS100 and GER30. It should work on M1, M5 and M15. It should also be able to trade the news(fundamentals). The accuracy of the robot should should be atleast 80% and risk 75% of the available balance
We have an EA in both mql4 and mql5 that needs a bit remodelling in its appearances and ad some input functions into it. And need to get the work done ASAP. Please DM if you are well versed in mql4 and mql5 programming. This is a part of a bigger project Thank You
This EA Should Be Able To Trade On All Financial Market But More Especially On Volatile Market. This EA Should Trade As Low As 1$ For Brokers That Has Low Spread GUI 1. Automatic button that can flip from buying at demand And selling at supply 2. close all button 3. minimizable panel statistic showing current information on trades EA Trade Plan. 1. Move to M15 TF a. Identify Directional Bias b. Locate Stop Hunt and
Scalper for Meta 5 Settings 1- Time of the day schedule in gmt 2 Lot size ( verible) 3- Over all profit ( In dollars) 4- Number of trades limit ( Varible) The EA should be able to open a new trade on next candle opening price. Direction of new trade: The next new trade direction should be dependent on the last candle closing high or low. If the last candle is a low candle ,the new trade should be a short trade, if
I want to convert TV pine script into mt4 EA. TV screen shots attached for reference. Based on TV indicators convert into mt4 indicators and then develop EA. Further details will be discuss once project starts
2USD AT 0.01 30+ USD
Rule Lot size 0.01 start immediate Buy at every 2 USD PRICE change for Example 2300 2298 2296 2294.................& take profit at every 2 usd & no stop loss Sell at every 2 USD PRICE change for Example 2300 2302 2304 2306................. .& take profit at every 2 usd & no stop loss Maximum orders 60

Informazioni sul progetto

Budget
10 - 70 USD
Per lo sviluppatore
9 - 63 USD
Scadenze
da 1 a 10 giorno(i)