simonwalters: I would like to know if it is possible to have the price value of a hand drawn horizontal line returned for use in a custom indicator,
I have been searching but no luck so far, please advise if you know a way, Cheers Simon
Yes, it is possible! It is a matter of coding it. Your choices are:
- To learn MQL coding, in order to do it yourself (which can take a long time if you have no knowledge or experience with it)
- To hire someone to code it for you (by going to the Freelance section and placing a Job request)
If you decide to code it yourself, the following steps may help you:
- Manually create the Horizontal Line and give the object a specific unique and identifiable name (after that, you would only move the line, every time you wanted a price change).
- In the Custom Indicator, the code would:
- Use the "ObjectFind()" to get the specified named object.
- Use the "ObjectGetDouble()" with the "OBJPROP_PRICE" property, to get the price for the object found in the previous step.
simonwalters:
Hi Fernando,
I'm going to learn how to code it myself and thanks for your help here. That seems be be what I was looking for.
Cheers, Simon
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,
I would like to know if it is possible to have the price value of a hand drawn horizontal line returned for use in a custom indicator,
I have been searching but no luck so far, please advise if you know a way, Cheers Simon