Need function that gets trend line value for given bar shift

MQL4 Other

Job finished

Execution time 18 hours
Feedback from customer
++
Feedback from employee
Good customer!!

Specification

Hello I need a mql4 function that returns price value of a trend line based on two points for given bar shift

double get_trendline_value(p1_time,p1_price,p2_time,p2_price,bar){ }

attached picture to illustrate, thanks

 

Edit: forgot to mention needs to work in non visual testing mode. 

Files:

PNG
Untitled.png
8.5 Kb

Responded

1
Developer 1
Rating
(334)
Projects
544
67%
Arbitration
53
21% / 40%
Overdue
169
31%
Free
Published: 1 code
2
Developer 2
Rating
(164)
Projects
218
50%
Arbitration
6
17% / 67%
Overdue
11
5%
Free
3
Developer 3
Rating
(557)
Projects
851
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Free
Published: 1 code
4
Developer 4
Rating
(9)
Projects
18
28%
Arbitration
2
50% / 50%
Overdue
6
33%
Free
5
Developer 5
Rating
(70)
Projects
86
31%
Arbitration
1
100% / 0%
Overdue
1
1%
Free
6
Developer 6
Rating
(618)
Projects
1429
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free

Project information

Budget
10 - 20 USD
Deadline
from 1 to 2 day(s)