Breakout trendline between 2 top

 

Hi all,

I write a indicator to determination candle breakout between 2 top of point. I write a trendline from Top of point A to Top of Point B . But i don't know how to get value in this trendline at Point C ( between point A and Point B). Like picture in below.

Please help me . Thanks a lot

 
bizu:

Hi all,

I write a indicator to determination candle breakout between 2 top of point. I write a trendline from Top of point A to Top of Point B . But i don't know how to get value in this trendline at Point C ( between point A and Point B). Like picture in below.

Please help me . Thanks a lot

Determine the bar number of the right hand end of the TrendLine, then loop back through each bar and compare ObjectGetValueByShift() for the trendline vs the High of the bar. Or use interpolation . . .
 
Or use interpolation...

Can you explain more detail or do you have an example?

 
FinGeR:

Can you explain more detail or do you have an example?

No sorry, I'm not going to write your code for you.
 
FinGeR:

Can you explain more detail or do you have an example?


here: https://forum.mql4.com/57262
Reason: