Code the value of longest candle body

 

Dear my friend,

How can I get the longest candle body in a period (IE: from candle i to candle [i+A]), just compare the bearish candle.

 
Tien Do Van: How can I get the longest candle body 

Get the open, get the close, compute the size of the body, find the largest one in your range.

You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help 2017.04.21

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum 2018.05.12