Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

time for trade
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=49085
Page 1 of 1

Author:  monexx [ Thu 18 Apr, 2013, 09:11 ]
Post subject:  time for trade

Dear support,
please, show me how to create by Visual JForex time to trade?
For example, every day 8:00 to 17:00?

Author:  91franc [ Thu 18 Apr, 2013, 09:50 ]
Post subject:  Re: time for trade

i so x to make one for myself

Author:  Visual Support [ Thu 18 Apr, 2013, 10:06 ]
Post subject:  Re: time for trade

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 432 times
TimeUnitExample.JPG [85.47 KiB]
Downloaded 1335 times

Author:  monexx [ Thu 18 Apr, 2013, 11:27 ]
Post subject:  Re: time for trade

Thank you for reply.

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

Author:  Visual Support [ Thu 18 Apr, 2013, 11:57 ]
Post subject:  Re: time for trade

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:

Author:  monexx [ Thu 18 Apr, 2013, 14:43 ]
Post subject:  Re: time for trade

Ok, thank you

Author:  alexandreb [ Fri 19 Apr, 2013, 14:27 ]
Post subject:  Re: time for trade

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 !

Author:  Visual Support [ Fri 19 Apr, 2013, 14:46 ]
Post subject:  Re: time for trade

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

Author:  stunczy [ Tue 17 Sep, 2013, 08:52 ]
Post subject:  Re: time for trade

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!

Author:  dirk_r1 [ Wed 18 Sep, 2013, 12:25 ]
Post subject:  Re: time for trade

Greetings!


Image

It is just the other way around ;)

Attachments:
TimeDateFilter1.vfs [22.84 KiB]
Downloaded 176 times
TimeDateFilter.png [71.03 KiB]
Downloaded 766 times

Author:  stunczy [ Wed 18 Sep, 2013, 15:03 ]
Post subject:  Re: time for trade

THANKS! :o :lol: :oops: :roll:

  Page 1 of 1