View Single Post
  #28 (permalink)  
Old 02-04-2008, 01:28 PM
TheRumpledOne's Avatar
TheRumpledOne TheRumpledOne is offline
Banned
 
Join Date: Nov 2006
Posts: 802
TheRumpledOne is an unknown quantity at this point
Quote:
Originally Posted by matrixebiz View Post
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?
Reply With Quote