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.

From chart
 Post subject: From chart Post rating: 0   New post Posted: Fri 17 Oct, 2014, 20:29 
User avatar

User rating: 0
Joined: Wed 26 Jun, 2013, 23:18
Posts: 20
Location: France, Paris
hello,
The example CalculateIndicatorsFromChart found on the wiki displays the last active chart.
How can we select another graphic without that last active graphics, such as graphs of 5 minutes?
thank you
David

Image


Attachments:
CalculateIndicatorsFromChart.java [3.72 KiB]
Downloaded 75 times
Sans titre.JPG [135.29 KiB]
Downloaded 189 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: From chart Post rating: 0   New post Posted: Sat 18 Oct, 2014, 18:43 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Could you explain what are you trying to achieve? Why do you need those indicator values from another chart?

If you are considering running a strategy that works with indicators on different time periods, a possibly solution is that you define the time period as a strategy parameter, and whenever you start the strategy, you select the required time period, and the indicators will work with that specified time period.


 
 Post subject: Re: From chart Post rating: 0   New post Posted: Tue 21 Oct, 2014, 15:27 
User avatar

User rating: 0
Joined: Wed 26 Jun, 2013, 23:18
Posts: 20
Location: France, Paris
hi tcsabina,
I would like to create a new policy indicators in different period.
In this example, one can use the last active period. I want to use a second time.
But I do not see how I can not see how I can set a different period in the settings?
thank you


 
 Post subject: Re: From chart Post rating: 0   New post Posted: Wed 22 Oct, 2014, 07:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can calculate indicator with any period you want, see this wiki page:
https://www.dukascopy.com/wiki/#Indicator_Calculation


 

Jump to:  

cron
  © 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