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 to get all indicators without rewrite all calls?
 Post subject: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Tue 18 Mar, 2014, 00:49 
User avatar

User rating: 0
Joined: Wed 03 Jul, 2013, 14:08
Posts: 16
Location: BrazilBrazil
Hi all,

I need to get all indicators like:

getIndicators(ITick tick)


And this method return a list of <key,value> (or objects) of all indicators (with default params) for this tick without write all calls to all indicators.
This is possible? Or I need to call one by one?

Thanks


 
 Post subject: Re: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Tue 18 Mar, 2014, 15:09 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
No, it is not possible.
Why would it be possible at all? Consider calling couple of hundreds of indicator for every tick of every instrument...


 
 Post subject: Re: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Tue 18 Mar, 2014, 18:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please check if this example does what you need:
https://www.dukascopy.com/wiki/#Indicator_metadata/Retrieve_metadata_by_group


 
 Post subject: Re: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Tue 18 Mar, 2014, 20:56 
User avatar

User rating: 0
Joined: Wed 03 Jul, 2013, 14:08
Posts: 16
Location: BrazilBrazil
I'm trying to use this code, but I get this Exception on run.

java.lang.SecurityException: Unable to create temporary file or directory
   at java.nio.file.TempFileHelper.create(TempFileHelper.java:143)
   at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161)
   at java.nio.file.Files.createTempFile(Files.java:848)
   at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:102)
   at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69)
   at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
   at javax.imageio.ImageIO.read(ImageIO.java:1351)
   at com.dukascopy.api.impl.connect.cu.<init>(Unknown Source)
   at com.dukascopy.api.impl.connect.be.<init>(Unknown Source)
   at com.dukascopy.api.impl.connect.be.<init>(Unknown Source)
   at com.dukascopy.dds2.greed.util.IndicatorHelper.b(Unknown Source)
   at com.dukascopy.api.impl.cl.getDataService(Unknown Source)
   at com.dukascopy.indicators.SentimentIndexBarIndicator.onStart(SentimentIndexBarIndicator.java:116)
   at com.dukascopy.charts.math.a.c.a(Unknown Source)
   at com.dukascopy.api.impl.cp.getIndicator(Unknown Source)
   at jforex.Test.onStart(Unknown Source)
   at com.dukascopy.api.impl.execution.u.call(Unknown Source)
   at com.dukascopy.api.impl.execution.u.call(Unknown Source)
   at com.dukascopy.api.impl.connect.ag.a(Unknown Source)
   at com.dukascopy.api.impl.connect.bk.by(Unknown Source)
   at com.dukascopy.api.impl.connect.bk.call(Unknown Source)
   at com.dukascopy.api.impl.execution.k.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at com.dukascopy.api.impl.execution.g$a.f(Unknown Source)
   at com.dukascopy.api.impl.execution.g$a.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:744)



$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Dukascopy Bank ver. 2.33.2
JForex API ver. 2.9.7


Attachments:
File comment: Strategy Test to reproduce the exception
Test.java [2.07 KiB]
Downloaded 74 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Thu 20 Mar, 2014, 18:31 
User avatar

User rating: 0
Joined: Wed 03 Jul, 2013, 14:08
Posts: 16
Location: BrazilBrazil
How to fix this exception?


 
 Post subject: Re: How to get all indicators without rewrite all calls? Post rating: 0   New post Posted: Mon 24 Mar, 2014, 08:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
viewtopic.php?f=16&t=50954


 

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