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 the value of a plotted indicator programmatically
 Post subject: How to get the value of a plotted indicator programmatically Post rating: 0   New post Posted: Tue 21 Jul, 2015, 02:13 
User avatar

User rating: 0
Joined: Mon 23 Jul, 2012, 05:36
Posts: 10
Location: CanadaCanada
What should I do to get the same value of the plotted sma on the chart to variable smaFast ?I've tried this without success:

 context.getChart(selectedInstrument).addIndicator(indicators.getIndicator("SMA"), new Object[] {10}, 
                    new Color[]{Color.MAGENTA}, new DrawingStyle[]{DrawingStyle.LINE}, new int[]{1});
  double  smaFast = indicators.sma(selectedInstrument, chart.getSelectedPeriod(),chart.getSelectedOfferSide(), AppliedPrice.CLOSE, 10,  0);


 
 Post subject: Re: How to get the value of a plotted indicator programmatically Post rating: 0   New post Posted: Tue 21 Jul, 2015, 15:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please verify that the following is true
https://www.dukascopy.com/wiki/#Indicat ... _checklist


 

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