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.
Problem with Indicator Buffers defined in strategie.
-
- Posts: 3
- Joined: Thu Oct 02, 2014 10:01 am
- neHcioHep
- Posts: 18
- Joined: Sat Nov 21, 2009 5:49 pm
- Contact:
Re: Problem with Indicator Buffers defined in strategie.
What is wrong?
You get values from other buffers or something other?
You get values from other buffers or something other?
-
- Posts: 3
- Joined: Thu Oct 02, 2014 10:01 am
Re: Problem with Indicator Buffers defined in strategie.
Thanks,
I understand that second values correspond to bars and third values correspond index buffer.
I understand that second values correspond to bars and third values correspond index buffer.
Return to “Programming lessons”
Who is online
Users browsing this forum: No registered users and 37 guests