Get a boolean value from indicator to EA
Hello, I want to take the values "buy" and "sell" from "indicator 1" and send them to my EA.
Looking on the internet I saw the "iCustom function" but it returns a double value and I do not know how it works
- How do I get values from different Indicators through the iCustom function.
- Open orders on current price plus x pips
- I just want to get some value from Indicator "ZigZag" by iCustom(), but always fail
up
Niketion:
Hello, I want to take the values "buy" and "sell" from "indicator 1" and send them to my EA. Looking on the internet I saw the "iCustom function" but it returns a double value and I do not know how it works
Hello, I want to take the values "buy" and "sell" from "indicator 1" and send them to my EA. Looking on the internet I saw the "iCustom function" but it returns a double value and I do not know how it works
iCustom "talks" to indicators through Buffers - those set by the SetIndexBuffer(). Whatever you put into those buffers that is the stuff that will appear on the "Caller" indicator...
If you put a Double there, a Double will appear on the "other side"...
;)