Lukas Roth:
Hi everyone
I'm pretty new into coding with MQL.
I'd like to creat a horizontal line and I have seen two ways to do it:
I just see that the first option is just more code but easyer to analyse... Is there any difference for the compiler or something?
First Option:
Second Option:
Your second option is a function call and will do nothing unless there is also a function called HLineCreate() in the code.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everyone
I'm pretty new into coding with MQL.
I'd like to creat a horizontal line and I have seen two ways to do it:
I just see that the first option is just more code but easyer to analyse... Is there any difference for the compiler or something?
First Option:
Second Option: