Hello forum, good day.
How can a diagonal line be created in MQL4? I need to create a diagonal line (trend line) where the starting point is the Order Open Price level and acts as a support/resistance so I can check if the close price is above or below this line. Your help will be much appreciated.
Best regards and thank you in advance,
Hi GerardoAll you need to do is create the object with OBJ_TREND, then set the various properties you want. You can find the properties here. So it would be something like:
It's usually best to create the line in init() or a separate function that only gets called once. Then set the properties at the time you want the line to become visible at the correct location. And don't forget to delete it in the DeInit()
Hello Stuart, thank you very much! I´ll give it a try.
I´ll send a private message to see if you can help me with a freelance job to create an Indicator I need to use in an EA.