Positions to be taken based on Alerts triggered from Trading View

MQL4 Lo demás Diseño

Tarea técnica

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$.

Han respondido

1
Desarrollador 1
Evaluación
(261)
Proyectos
425
38%
Arbitraje
86
44% / 19%
Caducado
71
17%
Trabajando
2
Desarrollador 2
Evaluación
(37)
Proyectos
59
27%
Arbitraje
25
20% / 52%
Caducado
10
17%
Trabaja
3
Desarrollador 3
Evaluación
(94)
Proyectos
190
66%
Arbitraje
8
25% / 50%
Caducado
2
1%
Libre

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
a 5 día(s)