HI
I would once and for all like to clarify the shift functions.
shift-Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
what does this mean in lay mans terms?
I am using it in context of bbands. If I want the trade to open on the close of the current bar as it closes below the lower bollinger.
There is also a bbands shift paramater, this is all a bit confusing today.
http://www.molanis.com/support/metatrad ... ence-guide:
double iBands( string symbol, int timeframe, int period, int deviation, int bands_shift, int applied_price, int mode, int shift)
Calculates the Bollinger bands indicator and returns its value.
Parameters:
symbol - Symbol the data of which should be used to calculate the indicator. NULL means the current symbol.
timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
period - Averaging period to calculate the main line.
deviation - Deviation from the main line.
bands_shift - The indicator shift relative to the chart.
applied_price - Applied price. It can be any of Applied price enumeration values.
mode - Indicator line index. It can be any of the Indicators line identifiers enumeration value.
shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Sample:
if(iBands(NULL,0,20,2,0,PRICE_LOW,MODE_LOWER,0)>Low[0]) return(0);