Amend current EA to build in take profit and stop loss in total for the EA in equity

MQL5 Experts Scripts

Tâche terminée

Temps d'exécution 5 jours

Spécifications

Hi there

I have an EA (Send Buy & Sell - attached) that I want to make a change to.

This EA allows you to place 2 trades on the same currency pair in different directions (buy and sell) at the same time. For each of the trades (buy and sell side) you can place a limit and stop in pips.  

I want added to that a stop loss and limit in value / equity / deposit currency for the 2 trades combined. 

 

So I will have the option to choose a stop loss or limit for each transaction as it is currently OR

the option to type in the stop loss in $ (equity) terms for the combined loss for the 2 trades and type in the target combined limit (profit) in $ (equity) terms.

e.g. I choose to type in the stop loss - lets say -$500 and the limit +$750.

Both the long and short trade is closed when the combined profit on the 2 trades reaches +$750 or the combined loss on the 2 trades reaches -$500.

 

Why:

 I want to increase my trading volume but keep my overall leverage low (i.e. buy 20 lots and sell 19 lots = effectively 1 lot in the market). The variable spreads however means I need to close both the long and the short trade at exactly the same time in order to keep my effective leverage low and not risk an overleveraged naked position.  

Dossiers :

Répondu

1
Développeur 1
Évaluation
(1135)
Projets
1438
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
2
Développeur 2
Évaluation
(25)
Projets
36
17%
Arbitrage
14
14% / 57%
En retard
3
8%
Gratuit
3
Développeur 3
Évaluation
(49)
Projets
74
18%
Arbitrage
30
17% / 53%
En retard
31
42%
Gratuit
4
Développeur 4
Évaluation
(647)
Projets
1295
67%
Arbitrage
84
26% / 49%
En retard
338
26%
Gratuit
5
Développeur 5
Évaluation
(769)
Projets
1033
44%
Arbitrage
50
8% / 50%
En retard
117
11%
Gratuit
6
Développeur 6
Évaluation
(68)
Projets
111
26%
Arbitrage
17
6% / 71%
En retard
15
14%
Gratuit
Commandes similaires
I want to pull a fib, with set entry price at a certain percentage, with stopploss set at another percentage of the fib. Risk is set in USD. Risk to match stop loss level. TP is set as ratio to stop loss. Calculate no. of contracts. A hot key for buy and one for sell. Illustration: In settings Inputs: Fib% to be displayed Entry level fib% stop loss fib percentage TP ratio Risk in USD or account percentage Operation
FUNCTION 1 When I set max open orders to one it won't close the order. Changed should work as following When max open order is True and set to one it should still be able to close the open order. Finish today within next hour //+------------------------------------------------------------------+ //| Function to count orders | //+------------------------------------------------------------------+
I need help with creating a website traders chatroom, it must show traders online,offline,inactive. the chatroom top section must show four clocks with different times and time scale like this.. the chatroom must have a history data of up to 10days, then longer history must be deleted automatically. if you have better chatroom please say your recommendations
I have a python script that connects MT5 to Deriv for binary trading which is having some bug. It stops executing trades after a while. I need someone to check the code and fix it. Negotiable price

Informations sur le projet

Budget
10 - 30 USD
Pour le développeur
9 - 27 USD
Délais
de 1 à 5 jour(s)