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.

IIndicatorContext.getHistory
 Post subject: IIndicatorContext.getHistory Post rating: 0   New post Posted: Mon 25 Apr, 2011, 20:04 

User rating: 0
Joined: Mon 25 Apr, 2011, 19:58
Posts: 2
How can I access the history of a graph from an indicator?
The documentation says "Method IIndicatorContext.getHistory() provides access to history in indicators" and IIndicatorContext is indeed reported to have a getHistory method, but if I try to use it in my indicator:

"
public void onStart(IIndicatorContext context) {
...
theHistory = context.getHistory();
...
"

then compilation gives the error

" The method getHistory() is undefined for the type IIndicatorContext"


 
 Post subject: Re: IIndicatorContext.getHistory Post rating: 0   New post Posted: Wed 27 Apr, 2011, 07:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please make sure you are using the latest version of JForex API and platform.


 
 Post subject: Re: IIndicatorContext.getHistory Post rating: 0   New post Posted: Wed 27 Apr, 2011, 11:32 

User rating: 0
Joined: Mon 25 Apr, 2011, 19:58
Posts: 2
Support wrote:
Hi,
Please make sure you are using the latest version of JForex API and platform.


Thank you for your reply. Can I ask how should I make sure of that? I launch the platform from the link "JFOREX LIVE START" on https://www.dukascopy.com/swiss/english/ ... ogin/live/

The version reported is 2.12.9 for the platform and 2.6.33 for the API. If I click on "Check for Updates" it says that I have the latest platform version, but the getHistory method still doesn't work.


 
 Post subject: Re: IIndicatorContext.getHistory Post rating: 0   New post Posted: Thu 28 Apr, 2011, 07:19 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
This feature is not yet available on LIVE, at the moment it's available on DEMO only.


 

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