Dukascopy
 
 
Wiki JStore Search Login

Trading with 12hrs chart
 Post subject: Trading with 12hrs chart Post rating: 0   Post Posted: Tue 28 Jan, 2014, 05:57 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
Hi there,
I am using 12hrs chart for my trading. I will open a buy/sell position based on previous 12hrs candle (green / red).

But I cannot find the 12hrs period parameter in Visual Jforex block. Anyone pls help me.

Thanks in advance.


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Tue 28 Jan, 2014, 13:58 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
Hi support and any expert,
Attached is the simple strategic compile by me (limitation of my programming knowledge). Please help me to fix it cause it said strategic error when I want to backtesting.

My trading condition as below:
1) Using 12hrs chart (I cannot find 12hrs period in VJx).
2) Every beginning of new candle, enter long when the previous candle showed green and vice versa.
3) Place SL at previous candle low for long positions and vice versa.
4) Close the position at the close price of each 12hrs candle (regardless win / loss).

Please help me to fix my strategic.


Attachments:
P001.vfs [24.91 KiB]
Downloaded 128 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: Trading with 12hrs chart Post rating: 0   Post Posted: Wed 29 Jan, 2014, 07:25 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
anyone can help me??


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Wed 05 Feb, 2014, 09:32 
Visual JForex expert at Dukascopy
User avatar

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

Sure it is possible!

I am on it - later, I will edit this post to provide you with the .vfs file.


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Mon 10 Feb, 2014, 06:21 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
Hi dirk_r1,
Thanks and wait for your good news.


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Tue 18 Feb, 2014, 11:58 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
Hi dirk_r1,
Any update? Thanks.


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Fri 21 Feb, 2014, 12:36 
Visual JForex expert at Dukascopy
User avatar

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

Please have a look at the strategy attached. Should be like you have requested.

Cheers


Attachments:
P001_mod.vfs [56.21 KiB]
Downloaded 139 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: Trading with 12hrs chart Post rating: 0   Post Posted: Thu 06 Mar, 2014, 08:31 
User avatar

User rating: 0
Joined: Tue 28 Jan, 2014, 05:52
Posts: 7
Location: Singapore,
Hi dirk_r1,
Thanks for the mod.

I just tried the strategy and have some inquiry:
1) Can I change the period from 12hr to other periods such as 8hr / 4hr / daily?
2) The tester requires me to input TP and SL, but my strategy stop loss is based on previous candle high/low and take profit on any value when candle end. How should I proceed?
3) How to convert vfs file type to jfx or java file type?


 
 Post subject: Re: Trading with 12hrs chart Post rating: 0   Post Posted: Fri 14 Mar, 2014, 09:29 
Visual JForex expert at Dukascopy
User avatar

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

1) Yes, for 8 hours timeframe you just need to change the counter from 3 to 2 (2*4 hours). For other timeframes like 4 hours or day you do not need any counter, because they are system variables - just change your default period to your desired one and disconnect the IF-block with the counter

2) Please have a look at the picture attached (it is an example)

3) You have to login to community; click on compiler->build; then you will see the compiled strategy on the right side below "Strategy->My Strategies"; Right click on the respected one and select view source; you will see the java code. In order to retrieve the .jfx file you just need to compile the .java in the platform
Image


Attachments:
VJF_Price_atMarket.png [57.02 KiB]
Downloaded 446 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