Help mql coding

 
Hi I been trying to make horizontal line indicator that draw in spesific candle in the olhc but the line need to be shorter when i make it ...it all the way longer so my chart full of horizontal line
 

Before you learn to code, learn to search!

https://www.mql5.com/en/search#!keyword=horizontal%20line

My guess, almost everything of your ideas have been coded and published. Instead of pulling out hair, just search.