Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How to get value indicator from OHLC.
 Post subject: How to get value indicator from OHLC. Post rating: 0   New post Posted: Wed 12 Aug, 2015, 18:36 

User rating: 0
Joined: Wed 10 Sep, 2014, 10:26
Posts: 7
Location: ThailandThailand
Dear Support,

for you answer, There is a difference between obv indicator from strategy and obv on chart. Otherwise, can you tell me how to get value from obv indicator on OHLC.



Apologize for my english


 
 Post subject: Re: How to get value indicator from OHLC. Post rating: 0   New post Posted: Thu 13 Aug, 2015, 12:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is a code sample
        private void getChartOutput(IChart chart, String indicatorName, int length) {
            for (Map.Entry<IIndicator, Object[]> entry : chart.getLastCalculatedIndicatorOutputs().entrySet()) {
                IIndicator chartIndicator = entry.getKey();
                Object[] value = entry.getValue();
            }
        }


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com