Dukascopy
 
 
Wiki JStore Search Login

Newbie requires help
 Post subject: Newbie requires help Post rating: 0   New post Posted: Tue 04 Apr, 2017, 15:17 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Good afternoon
I`m just getting to grips with VJF and have been putting together my 1st strategy and run into some issues trying to get it to run exactly as I would like.
Can anybody help?
Strategy idea
1) Trading the hourly chart
2) 1 trade per day
3) No trades before 7.00AM
4) Any open position closed at 17.00PM
5) Entries based on the close of the 7.00am candle on Jforex platform
6) Open a position long if price breaks the high of the 7.00AM candle
7) Open a position short if price breaks the low of the 7.00AM candle
8) S/L placed on a long position 2 points lower than the low of the 7.00AM candle
9) S/L placed on a short position 2 points higher than the high of the 7.00AM candle

Please see attached files
Many thanks in advance for anybody who can help


Attachments:
Strategy1.vfs [35.49 KiB]
Downloaded 172 times
Screen shot.pdf [28.68 KiB]
Downloaded 150 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: Newbie requires help Post rating: 0   New post Posted: Thu 06 Apr, 2017, 09:24 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Here is an example as per your specification, please test it and let me know your comments.
I've implemented several changes so do not hesitate to raise any question.


 
 Post subject: Re: Newbie requires help Post rating: 0   New post Posted: Thu 06 Apr, 2017, 10:25 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Hi
Firstly thanks for the quick response
I have back tested your example, although it runs, it doesn`t open or close any trades.

Having very little experience with VJF I can`t seem to get it to work, please can you advise

Once again many thanks in advance


 
 Post subject: Re: Newbie requires help Post rating: 0   New post Posted: Thu 06 Apr, 2017, 15:06 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Oh sorry!
it was a wrong file :)
Here is the right one..


Attachments:
Strategy1_2.vfs [47.88 KiB]
Downloaded 168 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: Newbie requires help Post rating: 0   New post Posted: Thu 06 Apr, 2017, 18:33 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Thanks for the updated strategy
Having done a couple of back tests it’s not quite running as I would like, would you be kind enough to make a couple of adjustments.
1) The strategy is using the closed price of the 7.00AM candle, I would only like a position to opened either at the high price or the low price of the 7.00am candle
2) See attached image :
The 7.00am candle has the following prices
High of 1.0868
Low of 1.0851
The strategy opened a position short at the 7.00am candle close price 1.0858

3) Once a trade is opened for example a short at the break of a 7.00am candle low or a long at the break of the 7.00am candle high , I want that to be the only trade of the day and it to be closed at 1700 hrs

4) The stop to be placed on a long position 2 pips below the 7.00am candle low. The take profit 2x the stop

5) The stop to be placed on a short position 2 pips above the 7.00am candle high. The take profit 2x the stop


Thanks in advance


Attachments:
Screen shot from back test.pdf [38.79 KiB]
Downloaded 123 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: Newbie requires help Post rating: 0   New post Posted: Fri 07 Apr, 2017, 14:21 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

This should be feasible with a simple modification:

Image

You can disconnect the LONG side to see how the SHORT works and then analyze the results.



Image


Attachments:
ChangeExit.JPG [151.32 KiB]
Downloaded 383 times
ShortLow.JPG [83.16 KiB]
Downloaded 440 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: Newbie requires help Post rating: 0   New post Posted: Mon 10 Apr, 2017, 07:31 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Hi
Disconnected the short side then run a test and the result is the strategy will only take short positions.
Disconnected the long side then run a test and the result is the strategy will only take long positions.
I would like the strategy to be able to take long or short positions using the high/low prices of the.7.00AM candle
Example
1) The 7.00am candle closes with a high of 1.0650 and a low of 1.0625
2) If the price during the day breaks the high of 1.0650 a long position is opened
3) If the price during the day breaks the low of 1.0625 a short position is opened.
Using the prices in the above example to place the stop loss
1) The Stop loss would be placed on a long position at 1.0623.Two pips below the low of the 7.00AM candle
2) The Stop loss would be placed on a short position at 1.0652.Two pips above the high of the 7.00AM candle
3) The take profit is calculated on the difference between the open price and the stop loss price x2
Example: for a long position, open price 1.0650 – stop loss 1.0623 – the difference 27 pips the take profit price would be 1.0650 + 57 pips = 1.0707.
Once again thanks for all your help


Attachments:
Strategy1_2.vfs [47.88 KiB]
Downloaded 157 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: Newbie requires help Post rating: 0   New post Posted: Tue 11 Apr, 2017, 14:57 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,
Quote:
Disconnected the short side then run a test and the result is the strategy will only take short positions.
Disconnected the long side then run a test and the result is the strategy will only take long positions.


I don't understand the above;
By "Disconnect I meant the following:


Image

and indeed it's for testing purpose to see how the strategy behaves. You can still test woth both sides connected and it's up to you.

Can you please show on the historical tester what inconsistencies is happening if so ?

Thanks


Attachments:
Disconnect.JPG [89.48 KiB]
Downloaded 339 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: Newbie requires help Post rating: 0   New post Posted: Wed 12 Apr, 2017, 10:35 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Thanks again for your help

The strategy as the original version everything connected only takes short positions when back tested from 1st march 2017 till 1st April 2017.See attached PDF file (strategy back test) The file shows screen shots of 2 trades where the strategy should have opened long positions.

I have attached another PDF marked up how I would like the strategy to work.

Maybe the strategy needs to be started from scratch to get it to work how i initially intended

Sorry for the confusion and thank you in advance


Attachments:
Strategy back test.pdf [77.64 KiB]
Downloaded 131 times
How i would like the strategy to work.pdf [127.81 KiB]
Downloaded 112 times
Strategy1_2.vfs [47.88 KiB]
Downloaded 166 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: Newbie requires help Post rating: 0   New post Posted: Fri 14 Apr, 2017, 15:13 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Thanks for the detailed explanation.
I've adjusted the strategy accordingly but I strongly recommend you to work directly on the vfs file to implement your changes according to your test analyses.
I'm available for further help if you wish but the goal is to let you implement things by yourself.

Cheers !


Attachments:
Strategy1_3.vfs [49.6 KiB]
Downloaded 154 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: Newbie requires help Post rating: 0   New post Posted: Sat 15 Apr, 2017, 15:05 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Hi
The strategy now runs exactly as I intended, and gives me a good base point to run some tests
I may need help in the future with adding a trailing stop, however I will endeavour to add it myself as move forward learning as much as I can about programming in visual Jforex
Many Thanks


 
 Post subject: Re: Newbie requires help Post rating: 0   New post Posted: Mon 17 Apr, 2017, 16:52 

User rating: 0
Joined: Tue 04 Apr, 2017, 14:45
Posts: 7
Hi
I back test the strategy over 30 days firstly in the visual Jforex and it worked as intended, however when I ran it in my demo account none of the trades matched the visual Jforex trades
The issues are as follows
1) All the trades are opening at the wrong price, however the SL is correct
2) Some of the trades are opening in the wrong direction example visual Jforex opens a long, the demo account opens a short
Please can you advise how i can resolve this issue?
I have attached two screen shots one from visual Jforex and the other from my demo account,so you can see the difference between the two

Thanks in advance


Attachments:
Demo screen shot.pdf [106.37 KiB]
Downloaded 129 times
VJF screen shot.pdf [144.15 KiB]
Downloaded 103 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: Newbie requires help Post rating: 0   New post Posted: Tue 25 Apr, 2017, 16:27 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

I've tested the attached file and found the same result as you had. I'll check this deeper and get back to you.
Meanwhile, I've changed the instrument subscription in the attached version and it seems to work okay.
Can you please test and tell how exactly you export the strategy from Visual Jforex ??

Thanks


Attachments:
Strategy1_3_1.vfs [48.57 KiB]
Downloaded 172 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