Dukascopy
 
 
Wiki JStore Search Login

Time Period increase
 Post subject: Time Period increase Post rating: 0   New post Posted: Mon 27 Jan, 2014, 00:38 

User rating: 0
Joined: Fri 15 Nov, 2013, 03:11
Posts: 5
Location: United StatesUnited States
How can you tell an indicator (SMA, ATR, SRI, etc) to use a time period "one higher" than the default time period?


 
 Post subject: Re: Time Period increase Post rating: 0   New post Posted: Mon 27 Jan, 2014, 03:30 

User rating: 0
Joined: Fri 15 Nov, 2013, 03:11
Posts: 5
Location: United StatesUnited States
OK, I'll answer my own post. Unless you have a better suggestion, it seems the only way is to have an array of IF statements comparing the defaultPeriod with each Period time that is available (5min, 10min, 15min, etc) and then ASSIGN the correct Period to a new Period variable, as shown here:

Image


Attachments:
Higher_Time_Period.png [92.67 KiB]
Downloaded 362 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: Time Period increase Post rating: 0   New post Posted: Wed 29 Jan, 2014, 00:35 

User rating: 0
Joined: Fri 15 Nov, 2013, 03:11
Posts: 5
Location: United StatesUnited States
BUT THIS DOESN'T WORK!!! I don't know why, but it looks like some kind of variable type mismatch, even though I have "period" as the variable type for all variables.


 
 Post subject: Re: Time Period increase Post rating: 0   New post Posted: Mon 03 Feb, 2014, 18:10 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings;

try this:
Image


Attachments:
bigger_period.PNG [55.92 KiB]
Downloaded 319 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:  

  © 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