EA with loss recovery

MQL4 Uzman Danışmanlar

İş Gereklilikleri

Expert advisor with 1 indicator for entry and exit. Time filter for entry of trades in GMT

A loss recovery funtion that trades as follows. 

Example of loss recovery: 

Original loss recovery: 

Price is 1,550 
RecoveryZone = 50 and ExitZone = 150 

1. I set Market Buy = 1.550 with SL = 1.500 and TP = 1.700 (1 lot, as in Excel Sheet) 

2. I set a Pending Sell = 1.500 with SL = 1.550 and TP = 1.350 (0.40 lots) 
If order 1. does not reach TP and is a loss, but Sell is a win, I have 
from 1. -50 * 1 = -50 and 
from 2. + 150 * 0.40 = + 60. 
Total = +10 

What I need: I need the loss recovery to trade like this..

3. When the sell order starts, I set a pending buy as for order 1 (with 0.53 lots). 
If Sell 2 is a loss, starts the buy order 3. 
If he wins, we have two losses from 1 and 2 (-50-20 = -70) and a win from 3 (+ 150 * 0.53 = + 80) 
Total = + 10 

Option to reovery part of loss. Say the loss of the indicator trade was 100 pips. Loss recovery always recoverys maximal 50 pips. 

Funktion: suspend trading while loss recovery is on. (true/false)


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(34)
Projeler
51
61%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
11
22%
Serbest
2
Geliştirici 2
Derecelendirme
(204)
Projeler
305
39%
Arabuluculuk
34
32% / 29%
Süresi dolmuş
82
27%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(44)
Projeler
100
39%
Arabuluculuk
17
29% / 47%
Süresi dolmuş
32
32%
Serbest
4
Geliştirici 4
Derecelendirme
(213)
Projeler
246
45%
Arabuluculuk
42
10% / 57%
Süresi dolmuş
5
2%
Serbest
5
Geliştirici 5
Derecelendirme
(356)
Projeler
632
26%
Arabuluculuk
89
73% / 13%
Süresi dolmuş
12
2%
Serbest

Proje bilgisi

Bütçe
50+ USD
KDV (21%): 10.5 USD
Toplam: 60.5 USD
Geliştirici için
45 USD