'Lines drawing for first 5 min candle

Can anybody help me to code the line for this condition? I have tried but failed.

Line= First 5min candle high+ first 5min candle range(high-low)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source