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!
How to get boolinger bands value?
-
- Posts: 1479
- Joined: Mon Apr 01, 2013 3:55 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
Who is online
Users browsing this forum: No registered users and 20 guests