I am trying to get my EA to read the value of a line drawn by a
custom indicator.
The indicator has NO buffers,
The usual coding for custom indicators, iCustom(...........) cannot read the value of the lines generated by the indicator.
As expected. custom reads from the buffers.
I have tried the code...... double price=ObjectGetValueByShift("H4_S", 1); ... but it returns a Zero every time
Since that doesn't work you might try ObjectGet on the endpoints and do your own calculation.
But I suggest you move the TL endpoint calculation into the EA and draw them there or have the indicator fill in its buffer with the proper values.
As expected. custom reads from the buffers.
Since that doesn't work you might try ObjectGet on the endpoints and do your own calculation.
But I suggest you move the TL endpoint calculation into the EA and draw them there or have the indicator fill in its buffer with the proper values.
the function of ObjectGet will work if your custom indication run in the same TF, you need to specify the object name, property correctly etc...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Everyone
I am trying to get my EA to read the value of a line drawn by a custom indicator. The indicator has NO buffers, instead it uses Object Create to draw triangular lines. How can I get an EA to read the price value of these drawn graphical objects.
The usual coding for custom indicators, iCustom(...........) cannot read the value of the lines generated by the indicator.
I have tried the code...... double price=ObjectGetValueByShift("H4_S", 1); ... but it returns a Zero every time
Thanks heaps guys, you are awesome
Here is a bit of the indicator code, so you can see what is going on.
many thanks