Dukascopy
 
 
Wiki JStore Search Login

time for trade
 Post subject: time for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 09:11 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
Dear support,
please, show me how to create by Visual JForex time to trade?
For example, every day 8:00 to 17:00?


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 09:50 
User avatar

User rating: 0
Joined: Wed 21 Sep, 2011, 04:12
Posts: 8
Location: Singapore, SG
i so x to make one for myself


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 10:06 
Visual JForex expert at Dukascopy
User avatar

User rating: 4
Joined: Fri 06 Feb, 2009, 16:34
Posts: 130
Here the example, see attachment.
The idea to use the "TimeUnit", see description of the block for more details.
The attached strategy checks on each tick event the needed Instrument, than gets from Tick Time - Hour and save it to "hour" variable. In TimeUnit' "Settings" we select the "Hour" parameter.
Than in two blocks of "IF" we check the hour range, if all is ok, we always create Buy Position.
Image


Attachments:
TimeDateFilter.vfs [24.19 KiB]
Downloaded 550 times
TimeUnitExample.JPG [85.47 KiB]
Downloaded 1526 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 for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 11:27 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
Thank you for reply.

And if you need to identify individual days for trade please?
For example: Monday, Tuesday and Friday?


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 11:57 
Visual JForex expert at Dukascopy
User avatar

User rating: 4
Joined: Fri 06 Feb, 2009, 16:34
Posts: 130
monexx wrote:
Thank you for reply.

And if you need to identify individual days for trade please?
For example: Monday, Tuesday and Friday?

You can do it, just specify TimeUnit' "Setting" for Day, Month, seconds and so on.
Please, read TimeUnit description. :roll:


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Thu 18 Apr, 2013, 14:43 
User avatar

User rating: 0
Joined: Tue 27 Nov, 2012, 11:50
Posts: 19
Location: SlovakiaSlovakia
Ok, thank you


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Fri 19 Apr, 2013, 14:27 
User avatar

User rating: 0
Joined: Tue 14 Feb, 2012, 15:54
Posts: 10
Location: FranceFrance
It's great . I started to write strategies , but it's not clear how to get the .java code ? I tried to export my new strategy to contest , but I can't find it in the strategy list , please help !


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Fri 19 Apr, 2013, 14:46 
Visual JForex expert at Dukascopy
User avatar

User rating: 4
Joined: Fri 06 Feb, 2009, 16:34
Posts: 130
alexandreb wrote:
It's great . I started to write strategies , but it's not clear how to get the .java code ? I tried to export my new strategy to contest , but I can't find it in the strategy list , please help !

Check this link:
viewtopic.php?f=139&t=49089


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Tue 17 Sep, 2013, 08:52 
User avatar

User rating: 0
Joined: Tue 28 May, 2013, 16:00
Posts: 37
Location: Hungary, Győr
How can i set 8hour-17hour interval not trade? this time interval is false and not trade. And days for example 2013.05.05. 14:00 - 2013.05.06 15:00 this interval is false and not trade :?:

Thanks!


 
 Post subject: Re: time for trade Post rating: 0   New post Posted: Wed 18 Sep, 2013, 12:25 
Visual JForex expert at Dukascopy
User avatar

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


Image

It is just the other way around ;)


Attachments:
TimeDateFilter1.vfs [22.84 KiB]
Downloaded 293 times
TimeDateFilter.png [71.03 KiB]
Downloaded 979 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 for trade Post rating: 0   New post Posted: Wed 18 Sep, 2013, 15:03 
User avatar

User rating: 0
Joined: Tue 28 May, 2013, 16:00
Posts: 37
Location: Hungary, Győr
THANKS! :o :lol: :oops: :roll:


 

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