Yup.
Check the Object Functions for the details, but I think you want ObjectGet(), which will let you pull properties for a graphical object. For the line, you'd probably grab OBJPROP_TIME# and OBJPROP_PRICE# for the line (technically "trend"). The list of object types might be useful to for knowing what properties might be available for an object.
Good luck!
--Matt
Check the Object Functions for the details, but I think you want ObjectGet(), which will let you pull properties for a graphical object. For the line, you'd probably grab OBJPROP_TIME# and OBJPROP_PRICE# for the line (technically "trend"). The list of object types might be useful to for knowing what properties might be available for an object.
Good luck!
--Matt
Thank you both :)
ObjectValueByShift and ObjectShiftByValue work well.
Sorry
ObjectGetValueByShift and ObjectGetShiftByValue
they give trendline value at certain bar and vice versa
ObjectGetValueByShift and ObjectGetShiftByValue
they give trendline value at certain bar and vice versa
irusoh1 wrote:
Sorry
ObjectGetValueByShift and ObjectGetShiftByValue
they give trendline value at certain bar and vice versa
Sorry
ObjectGetValueByShift and ObjectGetShiftByValue
they give trendline value at certain bar and vice versa
Wow. Awesome. And here I am, making convoluted slope calculations! Thanks!
Hi,
Can anyone tell me where I can find the source code for the 'Standard Deviation Channel' indicator?
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
I want to be able to draw an object (eg a line) and for my code to be able to read the parameters of that line and perform operations based on those parameters. (x1, y1, x2,y2)....Is there such a functionality in mq4?
Thanks in advance