Average Cost Line Indicator

Indicadores Sripts

Trabajo finalizado

Plazo de ejecución 7 días
Comentario del Cliente
MQL4_ORG was fantastic and easy to work with. Very patient and understanding with me as a buyer. This was my first purchase and I didnt always know what the next step on my end was to keep the project flowing. I will use MQL4_ORG again and you should too. 5 STARS FOR SURE.
Comentario del Ejecutor
thanks

Tarea técnica

Hello, 

 

This is my first job post here so forgive me if I am not exactly sure of all the protocal. 

I need a average cost indicator for my charts.

The program needs to calculate the average cost of my positions and then place a line on the chart to indicate this.

Simple example (the program would need to obviously go out 5 decimal points as well as figure out position sizes that include micro,mini and full lots.)

This is full lots just for example.

Trade 1 Sell 1 EUR/USD @ 1.24000

Trade 2 Sell 1 EUR/USD @ 1.23000

Trade 3 Sell 1 EUR?USD @ 1.23500 

Trade 4 Sell 1 EUR/USD @ 1.24500

Total Position Sell 4 EUR  Average cost of position = 1.24500 + 1.24000 + 1.23500 + 1.23000 / 4 = 1.2375

The indicator would now put a line on the chart at 1.2375

Obviously each time a position is added to or subtracted from the calculation would change and the bar would adjust.

 

I have included a script that i found that was supposed to do what I am looking for but it does not seem to be able to add in mucro/mini lots because i just tried to use it and the calculation is wrong. It may however provide someone with a base they can use to speed up the process.

I look forward to hearing from someone that can help get this done for me. 

Han respondido

1
Desarrollador 1
Evaluación
(508)
Proyectos
976
74%
Arbitraje
27
19% / 67%
Caducado
101
10%
Trabaja
Ha publicado: 1 artículo, 6 ejemplos
2
Desarrollador 2
Evaluación
(41)
Proyectos
124
34%
Arbitraje
32
13% / 75%
Caducado
53
43%
Libre
3
Desarrollador 3
Evaluación
(195)
Proyectos
395
28%
Arbitraje
155
20% / 52%
Caducado
112
28%
Libre
4
Desarrollador 4
Evaluación
(24)
Proyectos
36
39%
Arbitraje
1
0% / 0%
Caducado
17
47%
Libre
5
Desarrollador 5
Evaluación
(73)
Proyectos
257
53%
Arbitraje
16
50% / 38%
Caducado
83
32%
Libre
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(273)
Proyectos
396
63%
Arbitraje
70
53% / 26%
Caducado
198
50%
Libre

Información sobre el proyecto

Presupuesto