Page 1 of 1

Problem with Indicator Buffers defined in strategie.

Posted: Thu Oct 02, 2014 1:26 pm
by pmpa200712
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.

Re: Problem with Indicator Buffers defined in strategie.

Posted: Tue Oct 07, 2014 12:57 pm
by neHcioHep
What is wrong?
You get values from other buffers or something other?

Re: Problem with Indicator Buffers defined in strategie.

Posted: Tue Oct 07, 2014 5:13 pm
by pmpa200712
Thanks,

I understand that second values correspond to bars and third values correspond index buffer.