Hedging EA

MQL4 Experten

Spezifikation

Develop a MT4 hedging EA that will monitor, alert & response to the account's equity and the floating profit/loss of all open trades. 
There is a maximum of 40 open trades with 10 trades for the EURUSD (Group#1), 10 trades for the GBPUSD(Group#2), 10 trades USDCHF(Group#3) and 10 trades for the USDJPY(Group#4). Each trade will be identified by its magic numbers.   


All profit/loss mention below are in pips and NOT dollars. 

Every tick from MT4, we will monitor the account balance, equity, and floating profit/loss of each group separately.

Check all the open trades of Group#1, calculate balance, equity, profit/loss. Note that profit/loss will be calculated in pips and not dollars.
AccountBalance();
AccountEquity();
Loss (in pips) = convert to pips (AccountEquity() - AccountBalance());

Update the largest loss of 5 minutes of Profit/Loss for group #1
Update the largest loss of the previous 10 ticks of Profit/Loss for group #1
Update the current loss for the present tick of Profit/Loss for group#1


Part 1.
if Option 1 = true (ignore options 2)

Close all winning buy trades if the total of all winning buy trades > Buy_Total_winning_limit
Close all winning sell trades if the total of all winning sell trades > Sell_Total_winning_limit
Close all losing buy trades if the total of all losing buy trade > Buy_Total_losing_limit
Close all losing sell trades if the total of all losing sell trades > Sell_Total_losing_limit

Part 2.   
if Option 2 = true (ignore options 1)
Volume equal example - if there are 5 buy trades, then the volume equal will be 0.5 lot, if there are 7 sell trades, then the volume equal will be 0.7 lot. Each trade is counted as 0.1 lot. 

Open sell trades with volume equal to the total of all winning buy trades > Buy_Total_winning_limit
Open buy trades with volume equal to the total of all winning sell trades > Sell_Total_winning_limit
Open sell trades with volume equal to all losing buy trades > Buy_total_losing_limit
Open buy trades with volume equal to all losing sell trades > Sell_total_losing_limit

Exit sell trades when total of all winning buy trades > (Buy_Total_winning_limit - G_1_hysteresis_buy_constant) 
Exit buy trades when total of all winning sell trades > (Sell_Total_winning_limit - G_1_hysteresis_sell_constant) 
Exit sell trades when total of all losing buy trades > (Buy_total_losing_limit - G_1_hysteresis_buy_constant)

Exit buy trades when total of all losing sell trades > (Sell_total_losing_lmit - - G_1_hysteresis_sell_constant) 

 

#property link      ""
#property version   "1.00"
#property strict

input double BaseLots = 1;


input bool Option_1 = true;
//group1 symbol = EURUSD
input int Group1_Buy_Total_winning_limit = 3000; //300 pips for 5 digits broker
input int Group1_Sell_Total_winning_limit = 3000;//300 pips for 5 digits broker
input int Group1_Buy_Total_losing_limit = 3000;//300 pips for 5 digits broker
input int Group1_Sell_Total_losing_limit = 3000;//300 pips for 5 digits broker
//group2 symbol = GBPUSD
input int Group2_Buy_Total_winning_limit = 3000; //300 pips for 5 digits broker
input int Group2_Sell_Total_winning_limit = 3000;//300 pips for 5 digits broker
input int Group2_Buy_Total_losing_limit = 3000;//300 pips for 5 digits broker
input int Group2_Sell_Total_losing_limit = 3000;//300 pips for 5 digits broker
//group3 symbol = USDJPY
input int Group3_Buy_Total_winning_limit = 3000; //300 pips for 5 digits broker
input int Group3_Sell_Total_winning_limit = 3000;//300 pips for 5 digits broker
input int Group3_Buy_Total_losing_limit = 3000;//300 pips for 5 digits broker
input int Group3_Sell_Total_losing_limit = 3000;//300 pips for 5 digits broker
//group4 symbol = USDCHF
input int Group4_Buy_Total_winning_limit = 3000; //300 pips for 5 digits broker
input int Group4_Sell_Total_winning_limit = 3000;//300 pips for 5 digits broker
input int Group4_Buy_Total_losing_limit = 3000;//300 pips for 5 digits broker
input int Group4_Sell_Total_losing_limit = 3000;//300 pips for 5 digits broker

//group1 symbol = EURUSD
 int Group1_Buy_Total = 0; 
 int Group1_Sell_Total = 0;
 int Group1_Buy_Total = 0;
 int Group1_Sell_Total = 0;
//group2 symbol = GBPUSD
 int Group2_Buy_Total = 0; 
 int Group2_Sell_Total = 0;
 int Group2_Buy_Total = 0;
 int Group2_Sell_Total = 0;
//group3 symbol = USDJPY
 int Group3_Buy_Total = 0; 
 int Group3_Sell_Total = 0;
 int Group3_Buy_Total = 0;
 int Group3_Sell_Total = 0;
//group4 symbol = USDCHF
 int Group4_Buy_Total = 0; 
 int Group4_Sell_Total = 0;
 int Group4_Buy_Total = 0;
 int Group4_Sell_Total = 0;

int btwl = 0;
int stwl = 0;
int btll = 0;
int stll = 0;
input bool Option_2 = false;
input int G_1_hysteresis_buy_constant = 50;
input int G_1_hysteresis_sell_constant = 50;

int Slippage = 100;
//Magic numbers: 1 to 10 will be trading the EURUSD
int Group1_magic1 = 1;
int Group1_magic2 = 2;
int Group1_magic3 = 3;
int Group1_magic4 = 4;
int Group1_magic5 = 5;
int Group1_magic6 = 6;
int Group1_magic7 = 7;
int Group1_magic8 = 8;
int Group1_magic9 = 9;
int Group1_magic10 = 10;
//Magic numbers: 11 to 20 will be trading the GBPUSD
int Group2_magic1 = 11;
int Group2_magic2 = 12;
int Group2_magic3 = 13;
int Group2_magic4 = 14;
int Group2_magic5 = 15;
int Group2_magic6 = 16;
int Group2_magic7 = 17;
int Group2_magic8 = 18;
int Group2_magic9 = 19;
int Group2_magic10 = 20;
//Magic numbers: 21 to 30 will be trading the USDJPY 
int Group3_magic1 = 21;
int Group3_magic2 = 22;
int Group3_magic3 = 23;
int Group3_magic4 = 24;
int Group3_magic5 = 25;
int Group3_magic6 = 26;
int Group3_magic7 = 27;
int Group3_magic8 = 28;
int Group3_magic9 = 29;
int Group3_magic10 = 30;

//Magic numbers: 31 to 40 will be trading the USDCHF 
int Group4_magic1 = 31;
int Group4_magic2 = 32;
int Group4_magic3 = 33;
int Group4_magic4 = 34;
int Group4_magic5 = 35;
int Group4_magic6 = 36;
int Group4_magic7 = 37;
int Group4_magic8 = 38;
int Group4_magic9 = 39;
int Group4_magic10 = 40;

 

 

Bewerbungen

1
Entwickler 1
Bewertung
(182)
Projekte
342
42%
Schlichtung
118
12% / 73%
Frist nicht eingehalten
104
30%
Frei
2
Entwickler 2
Bewertung
(54)
Projekte
164
43%
Schlichtung
43
47% / 16%
Frist nicht eingehalten
58
35%
Frei
3
Entwickler 3
Bewertung
(62)
Projekte
140
46%
Schlichtung
19
42% / 16%
Frist nicht eingehalten
32
23%
Frei
Ähnliche Aufträge
i have a ready made SMC EA and looking for optimizing and debugging and also adding back the missing things in the requirement file. Basically work with the current code and refine it to fit the requirement file. Most indicator is already in the EA and the requirement file below are mostly finish. here are the things need to add back and debug based on the requirement file 1. TP from the filter and need to check
If you think you can replicate EA ("reverse engineering") from Metarader's Market, and create a new EA from scratch that works 100% the same - please send an offer. I have already managed to find out many features of that EA (entry times, risk management, averaging, trailing...) but I still miss a few
Candle wick bot The bot will have a set amount of wick length to enter trade at candle open price, there will be a set Amount in points that the candle wick has to be to then enter that opposite of the wick direction Settings will look like this : Timeframe: (meaning which candles you’re using to measure open price from for the wick length ) If set to 5 min it’ll be using 5 min candles , if set to 15 it’ll use 15
Looking for a developer to create an MT4 EA based on a custom currency strength indicator and simple moving average. Will provide currency strength indicator code to the selected developer. Buy rules If the EA added in the EURUSD chart and EUR has a currency strength above or equal to 6 and USD has strength less than 2. Wait for the prices comes back to SMA and open the buy trade if the price closes above SMA. Place
I have an equity reporter. This equity reporter displays the maximum and minimum equity reached over a specific interval. So, if the interval is set to 24 hours, the script will generate data in the format: "Profit ATT" (profit AtThatTime) shows max./min. during the specific interval This specific report shows data in pips. It can also be set to display in price or percentages. The interval is also easily adjustable
Sistema HTF EFECTIVO 30 - 60 USD
Hola, me gustaría que un programador experimentado creea un sistema de trading EA que abra y cierre operaciones muy rápido en segundos (HFT). Sería óptimo tener una opción/botón para activar solo para comprar o solo para vender (operaciones unidireccionales). Con una buena interfaz gráfica de usuario. Se agradece la implementación de su propia experiencia con sistemas de trading HFT. Es para mercados volátiles como
Hello, I would like an experienced programmer to create an EA trading system which opens and closes trades very fast within seconds (HFT). To have an option/button to activate either for only buy or only sell (one way trading) would be optimal. With a nice GUI. Implementing your own experience with HFT trading systems is welcomed. It's for volatile markets such as XAUUSD or US30. Taking advantage of order placements
The strategy is a martingale type . i.e if it hits the stop loss , it will double the lot size and place again in that direction, and when it hits the take profit at any level of the martingale, it will start over from the first lot size used initially
I want you to make me an indicator in Training View. Its idea is very simple, and I want it to have an alarm. Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the
I'm looking for a developer to assist in creating an Expert Advisor (EA) for use in a prop firm. The EA should be designed for the MT4 trading platform and include the following features: Scalping strategy Maximum drawdown of 3% Please let me know if you're interested and capable of handling this project

Projektdetails

Budget
45 USD
Für die Entwickler
40.5 - 40.5 USD
Ausführungsfristen
von 5 bis 15 Tag(e)