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.

Change time period when calling indicators on new indicator
 Post subject: Change time period when calling indicators on new indicator Post rating: 0   New post Posted: Fri 20 Nov, 2015, 18:45 
User avatar

User rating: 0
Joined: Thu 23 Jan, 2014, 21:43
Posts: 17
Location: Peru, La Perla
Hello, I'm trying to make an indicator that shows ma's from other time periods. Basically what I need its to plot the 100 hourly ma or the 100 daily ma on the 5 minute chart. I found this example :

https://www.dukascopy.com/wiki/#Indicat ... _indicator

Its for EMA and its simple to change it to MA, but i dont know how or if its posible to change the period of this ma's.

I also found this that I thought it should help, but its too diferent that I dont know how or where I need to put the time period on the first example.

https://www.dukascopy.com/wiki/#Indicat ... nt_periods

Thanks for your help


 
 Post subject: Re: Change time period when calling indicators on new indicator Post rating: 0   New post Posted: Thu 26 Nov, 2015, 08:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider attached example.


Attachments:
MultiplePeriodsIndicator.java [6.63 KiB]
Downloaded 89 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.
 

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