Dukascopy
 
 
Wiki JStore Search Login

APICLIENT-214 interface IDataService
 Post subject: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Wed 01 Aug, 2012, 15:30 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Hi support,

the method getDataService() is undefined for type IIndicatorContext.

I try to use follow in indicator:

private IDataService dataService;
...
IContext iContext;
...
dataService = iContext.getDataService;

Compilation successful, but method getFXSentimentIndex returns null.
Any idea how can I use methods from IDataService interface in indicator?

Thanks.


 
 Post subject: Re: interface IDataService Post rating: 0   New post Posted: Wed 01 Aug, 2012, 15:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It is not available in IIndicator.


 
 Post subject: Re: interface IDataService Post rating: 0   New post Posted: Wed 01 Aug, 2012, 16:03 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Thanks for answer.
Are you planning to add it in future?


 
 Post subject: Re: interface IDataService Post rating: 0   New post Posted: Wed 01 Aug, 2012, 16:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
How do you plan to use it in indicator? Maybe it is possible to do it from a strategy?


 
 Post subject: Re: interface IDataService Post rating: 0   New post Posted: Wed 01 Aug, 2012, 16:10 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Indicator will draw lines in indicator window for each main currency. 8 outputs (EUR,USD,AUD,NZD,JPY,GBP,CHF,CAD) according to FXsentiment index value.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Fri 10 Aug, 2012, 12:04 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Attachment:
sentiment index indicator.png [117.71 KiB]
Downloaded 685 times


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Mon 10 Sep, 2012, 02:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
IDataService is now available in IIndicatorContext. Note that @RequiresFullAccess annotation has to be applied for indicators that use IDataService.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Wed 15 Jan, 2014, 12:48 
User avatar

User rating: 0
Joined: Tue 16 Oct, 2012, 10:01
Posts: 10
Location: TurkeyTurkey
Hello,
Can you install this indicator code here.
This address can not be on.

https://www.dukascopy.com/wiki/#Sentiment_index

Or I could not.
Could you please tell very simple.
Kindest regards.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Wed 15 Jan, 2014, 13:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Sorry, we don't understand you.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Wed 15 Jan, 2014, 13:34 
User avatar

User rating: 0
Joined: Tue 16 Oct, 2012, 10:01
Posts: 10
Location: TurkeyTurkey
Sorry been missing.
I'm asking this indicator code.

Ivan35 wrote:
Attachment:
sentiment index indicator.png


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 1   New post Posted: Wed 15 Jan, 2014, 14:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Platform_indicator_source_files


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Thu 16 Jan, 2014, 07:12 
User avatar

User rating: 0
Joined: Tue 16 Oct, 2012, 10:01
Posts: 10
Location: TurkeyTurkey
API Support wrote:



Hello,
First of all thank you very much.

This is not something I can do. I do not know about software. How I wish it told with pictures. Dukascopy company or its standard (ie momentum) could have placed into an index.
Kindest regards.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Thu 16 Jan, 2014, 08:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You don't need to do any coding to download the source code that you requested.


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Thu 16 Jan, 2014, 08:54 
User avatar

User rating: 0
Joined: Tue 16 Oct, 2012, 10:01
Posts: 10
Location: TurkeyTurkey
API Support wrote:
You don't need to do any coding to download the source code that you requested.


I grant remote access to my computer and if you can you do. (TeamViewer)


 
 Post subject: Re: APICLIENT-214 interface IDataService Post rating: 0   New post Posted: Thu 16 Jan, 2014, 09:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Sorry we don't understand what kind of assistance you require.


 

Jump to:  

  © 1998-2024 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