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 in the chart show the highest and lowest points,Thank you!
 Post subject: How in the chart show the highest and lowest points,Thank you! Post rating: 0   New post Posted: Fri 22 Nov, 2013, 06:04 

User rating: 0
Joined: Thu 29 Aug, 2013, 01:01
Posts: 21
Location: ChinaChina
How in the chart show the highest and lowest points,Thank you!


 
 Post subject: Re: How in the chart show the highest and lowest points,Thank you! Post rating: 1   New post Posted: Fri 22 Nov, 2013, 08:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Historical_high_values
For your particular case you will need to obtain the start and the end times by using IChart.getMinTime and IChart.getMaxTime, then fetch the feed descriptor by using IChart.getFeedDescriptor, which you can use to call IHistory.getFeedData with from and to parameters, mind that you will need to cast the IFeedData results to IBar to obtain getHigh and getLow values.


 
 Post subject: Re: How in the chart show the highest and lowest points,Thank you! Post rating: 1   New post Posted: Tue 14 Oct, 2014, 16:20 

User rating: 1
Joined: Tue 12 Jul, 2011, 20:43
Posts: 51
Location: Germany,
Hello Support,

I want to use highest and lowest time and price of a chart window within a custom indicator.
But IIndicatorContext.getIndicatorChartPanel().getMaxTime() / .getMinTime() / .getMaxPrice() / .getMinPrice() is depricated and returns 0.
How can I get these values ?

Regards
AbsoluteReturner


 
 Post subject: Re: How in the chart show the highest and lowest points,Thank you! Post rating: 1   New post Posted: Mon 20 Oct, 2014, 10:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Use IDrawingIndicator and IIndicatorDrawingSupport: https://www.dukascopy.com/wiki/#IDrawing ... _interface


 

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