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 add EMA indicator on chart with additional levels
 Post subject: How to add EMA indicator on chart with additional levels Post rating: 0   New post Posted: Wed 09 Oct, 2013, 10:43 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
Hi,
to add EMA indicator on chart I use the follow code:
chart.addIndicator(indicators.getIndicator("EMA"), new Object[] {emaPeriod}, new Color[]{Color.BLUE}, new DrawingStyle[]{DrawingStyle.LINE}, new int[]{1});

but I need to add EMA indicator with two additional levels

Image

Image

How to do this?


 
 Post subject: Re: How to add EMA indicator on chart with additional levels Post rating: 0   New post Posted: Wed 09 Oct, 2013, 14:06 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Currently the levels are not available from the JForex-API.


 

Jump to:  

  © 1998-2026 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