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.

Numbering bars on a chart
 Post subject: Numbering bars on a chart Post rating: 0   New post Posted: Tue 07 Aug, 2012, 07:58 

User rating: 0
Joined: Tue 07 Aug, 2012, 07:53
Posts: 2
I would like to write a simple indicator that would number the candles/bars visible in the chart, i.e. there will be numbers 1,2,3,4 under or above each bar. What functions/methods should I have a look at?


 
 Post subject: Re: Numbering bars in a chart Post rating: 1   New post Posted: Tue 07 Aug, 2012, 08:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Have a look at the TD_Sequential indicator:
https://www.dukascopy.com/wiki/#Platform ... urce_files
and the property you are interested in is IIndicatorDrawingSupport.getNumberOfCandlesOnScreen().


 
 Post subject: Re: Numbering bars on a chart Post rating: 0   New post Posted: Sun 14 Oct, 2012, 11:12 

User rating: 0
Joined: Tue 07 Aug, 2012, 07:53
Posts: 2
Thank you. Could you point me to a similar indicator so that I can have a look at it and change it for my purposes? This is the first indicator I want to code so I need some working reference, e.g. an indicator that draws objects on the chart.


 
 Post subject: Re: Numbering bars on a chart Post rating: 1   New post Posted: Mon 15 Oct, 2012, 11:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Download the source codes by the link that we gave you in our previous post.


 

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