|
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Thu 06 Apr, 2017, 09:24
|
|
Visual JForex expert at Dukascopy |  |
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.
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
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
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Thu 06 Apr, 2017, 15:06
|
|
Visual JForex expert at Dukascopy |  |
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.
|
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Fri 07 Apr, 2017, 14:21
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, This should be feasible with a simple modification:  You can disconnect the LONG side to see how the SHORT works and then analyze the results. 
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.
|
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Tue 11 Apr, 2017, 14:57
|
|
Visual JForex expert at Dukascopy |  |
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:  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.
|
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Wed 12 Apr, 2017, 10:35
|
|
User rating: 0
Joined: Tue 04 Apr, 2017, 14:45 Posts: 7
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Fri 14 Apr, 2017, 15:13
|
|
Visual JForex expert at Dukascopy |  |
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.
|
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
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
|
|
|
|
 |
DEMO3MTSZU
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Newbie requires help |
Post rating: 0
|
Posted: Tue 25 Apr, 2017, 16:27
|
|
Visual JForex expert at Dukascopy |  |
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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|