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.

Indicator that paints chart bars in different colors
 Post subject: Indicator that paints chart bars in different colors Post rating: 0   Post Posted: Tue 17 Jan, 2012, 22:38 
User avatar

User rating: 1
Joined: Wed 06 Jul, 2011, 23:12
Posts: 42
Location: Romania, Bucharest
Dear API Support,

Is there a way to write an indicator that will paint the chart bars according to a custom rule? It could be useful to better visualize trends or overbought/oversold levels directly on the chart and not in a subchart.

Thanks,
Iulian


 
 Post subject: Re: Indicator that paints chart bars in different colors Post rating: 0   Post Posted: Wed 18 Jan, 2012, 08:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can make only an indicator or a strategy draw chart objects over the existing bars, but not replace them.
As an example consider Heikin Ashi indicator (source available in Standalone JForex API com.dukascopy.indicators.HeikinAshiIndicator).
You can also do this from your strategy - draw a chart object (for example, signal up) in onBar method above a just finished bar.


 

Jump to:  

  © 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