Positions to be taken based on Alerts triggered from Trading View

MQL4 Diğer Tasarım

İş Gereklilikleri

I have a specific requirement on MT4 side.

Primary Objective: Alerts on Trading View will be generated and considering the alerts entries has to be taken on MT4 side. (Currently this is being achieved by using standard MT4 pine connecter Expert Advisor delivered by MT4)

1) P&L has to be considered for specific symbol and when profit is X value positions associated to the symbol should be squared off and logic should be up and running continuously.

Example:

From trading view alerts for Bitcoin and XAUUSD is being triggered and positions on MT4 will be taken.

In Code I need to have specific provision to choose the Specific Symbol like BTCUSD or XAUUSD and I have to set the Profit limit like 10$'s or 15$'s.

Entry 1: BTCUSD: -1$

Entry 2: BTCUSD: +3$

Entry 3: XAUUSD: 2$

Entry 4: BTCUSD: 5$

Entry 5: BTCUSD: 2$

Entry 6: BTCUSD: -1$

Entry 7: BTCUSD: 2$

Entry 8: XAUUSD: -1$

Entry 9: XAUUSD: 2$

Entry 10: XAUUSD: -1$


Here in code, I will be choosing the symbol as BTCUSD and I will set Profit Limit as 10$, so when total reaches to 10$, all positions associated to BTCUSD has to get squared off and XAUUSD positions will remain active. Again, once fresh positions are entered for BTCUSD it has to be run in same loop and exit when profit reaches to 10$.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(261)
Projeler
425
38%
Arabuluculuk
86
44% / 19%
Süresi dolmuş
71
17%
Yüklendi
2
Geliştirici 2
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
25
20% / 52%
Süresi dolmuş
10
17%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(94)
Projeler
190
66%
Arabuluculuk
8
25% / 50%
Süresi dolmuş
2
1%
Serbest

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 5 gün