|
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 |
iulian
|
Post subject: Indicator that paints chart bars in different colors |
Post rating: 0
|
Posted: Tue 17 Jan, 2012, 22:38
|
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Indicator that paints chart bars in different colors |
Post rating: 0
|
Posted: Wed 18 Jan, 2012, 08:49
|
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|