Problem with Indicator Buffers defined in strategie.
Posted: Thu Oct 02, 2014 1:26 pm
I have defined indicator Bollinger Bands that has three(3) buffers, like that:
Indbb := CreateIndicator(Symbol, PERIOD_M15, 'BollingerBands', '20,2,0,Close');
I haved defined that It is in Zero Buffer, like that:
SetIndicatorBuffStyle(Indbb, 0, psSolid, 1, clYellow);
Index buffer in List of indicator's parameter of help are:
0 Top band buffer
1 Central band buffer
2 Bottom band buffer
so, when I get value indicator doesn´t work Fine for Central Band buffer and Bottom Band buffer. I get values like that:
bbtop := GetIndicatorValue(Indbb, 0, 0);
bbcentral := GetIndicatorValue(Indbb, 1, 0);
bbbottom := GetIndicatorValue(Indbb, 2, 0);
what is it wrong?
Thanks You for your help.
Indbb := CreateIndicator(Symbol, PERIOD_M15, 'BollingerBands', '20,2,0,Close');
I haved defined that It is in Zero Buffer, like that:
SetIndicatorBuffStyle(Indbb, 0, psSolid, 1, clYellow);
Index buffer in List of indicator's parameter of help are:
0 Top band buffer
1 Central band buffer
2 Bottom band buffer
so, when I get value indicator doesn´t work Fine for Central Band buffer and Bottom Band buffer. I get values like that:
bbtop := GetIndicatorValue(Indbb, 0, 0);
bbcentral := GetIndicatorValue(Indbb, 1, 0);
bbbottom := GetIndicatorValue(Indbb, 2, 0);
what is it wrong?
Thanks You for your help.