How to get boolinger bands value?

Indicators coded by community members
Message
Author
mrwjx
Posts: 1
Joined: Tue May 28, 2013 12:58 am

How to get boolinger bands value?

#1 Postby mrwjx » Fri Jun 14, 2013 10:17 am

hi,
I need to get boolinger bands top and bottom value, and I coded with delphi like this:

iHandle: integer;
iHandle := CreateIndicator('EURUSD', 60, 'BollingerBands', '20;2.00;0;Close');

I see the API help, it lists :0:Top band buffer; 1:Central band buffer; 2:Bottom band buffer.

But how to use this parameter? Thanks!

FX Helper
Posts: 1479
Joined: Mon Apr 01, 2013 3:55 am

#2 Postby FX Helper » Mon Jun 17, 2013 4:07 am

You can get indicator value with the help of such code:

Code: Select all

BollingerBandsTop := GetIndicatorValue(iHandle, 0, 0); //get current value of BollingerBandsTop
BollingerBandsBottom := GetIndicatorValue(iHandle, 0, 2); //get current value of BollingerBandsBottom


Return to “Indicators”

Who is online

Users browsing this forum: No registered users and 33 guests