Quote:
Originally Posted by matrixebiz
One question about iCustom.
Can you explain and give some examples regarding the Line and Shift variables with iCustom commands?
Thank you
|
iCustom - MQL4 Documentation
mode - Line index. Can be from 0 to 7 and must correspond with the index used by one of
SetIndexBuffer functions.
shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Use MODE to tell your indicator what buffer you want. The support resistance indicators may use buffer 0 ( MODE=0 ) for resistance and buffer 1 ( MODE=1 ) for support.
SHIFT says to use the value from Bar(SHIFT) of the indicator called by iCustom.
Does that help?