|
How can I create different time frame fractals in one strategy? |
Misani
|
Post subject: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Wed 18 Jan, 2017, 08:56
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Thu 19 Jan, 2017, 12:43
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
After much effort and working hours, I got some good results, but I still have some unexplained actions: 1. Sometimes the Stop Loss is triggered unplanned; 2. Sometimes STOPLOSS and ENTRY levels are not updated (not always); 3. It opens more than one order. Maybe someone can find out why it is so.. 
Attachments: |
5M chart_Closing failure.png [27.75 KiB]
Downloaded 434 times
|
BeginnerStrategy.vfs [120.66 KiB]
Downloaded 125 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: How can I create different time frame fractals in one strategy? |
Post rating: 1
|
Posted: Fri 20 Jan, 2017, 15:44
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
Unfortunately the videos that posted requires an account creation to be displayed; What I can say after a quick look to your file is that Get Hisotrical candle with multiple time frames works well but you need to keep in mind that your ouputs (candle4H, Candle30, candle5) will be retrieved every 10 seconds. This means every 10 sec the strategy will give you the values of your candles according to their time periods. So you may need to consider that for the rest of your strategy. More details are welcome ...
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Fri 20 Jan, 2017, 18:13
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Hi Amine, Thank you for your always quick reply. Does it mean that the conversion into TICK settings is way out? P.S. The first two videos, that do not need the password, are the nearly same as the third.Short description of the strategy is that you wait for pullback of the trend: AB, BC and trading happened on C point and take profit on D 1. Find trend direction on the 30M time frame so too on the 4H chart, they must have the same direction, If it is not so, wait still 30M chart direction fit 4H chart direction:  2. Change to 5M chart and wait for the pullback:  3. Opening pending order with stop loss and take profit:  4. Manage pending order:  5. after submission of the order, you should manage to stop loss as well.
Attachments: |
File comment: Find trend direction 30M time frame so too on 4H chart, they must have the same direction, If it is not so, wait still 30M chart direction does not fit 4H chart direction
1_The last break of a fractal.png [19.23 KiB]
Downloaded 465 times
|
File comment: Change to 5M chart and wait for pullback
2_Pull back market up.png [36.95 KiB]
Downloaded 426 times
|
File comment: Opening pending order with stop loss and take profit
3_Pivot point market up.png [23.38 KiB]
Downloaded 421 times
|
File comment: Manage pending order
4_ Set entry line on M5.png [25.23 KiB]
Downloaded 409 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: How can I create different time frame fractals in one strategy? |
Post rating: 1
|
Posted: Mon 23 Jan, 2017, 15:17
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
I've included some tips and modifications inside your strategy. I hope this will help you understanding the way multiperiod frame works.
Attachments: |
BeginnerStrategy_V2.vfs [117.07 KiB]
Downloaded 146 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.
|
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Mon 23 Jan, 2017, 19:29
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Thank you anime, you have helped me a lot with them...
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 1
|
Posted: Tue 24 Jan, 2017, 16:33
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Tue 24 Jan, 2017, 21:00
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Anime please I have problems again 1. Only "buy stop" or only "sell stop" components functioning well but together they have problems (entry and stop loss prices are not updated more by "Pending Open") 2. I can not update stop loss price after Buy/Sell entry  3. I can not define trend direction with the BOOLEAN variable properly, Maybe better do it with another variable? e.g. with SIGNALor COMMAND? P.S. I can not find complete information about how to us component blocks correctly (Trading, mathematical and Logical blocks I need a lot) not in "VisualJForexGuide" as well as "VisualJF Help" (on forum pages I can not find anything even) Can you suggest me the links? Thanks again
Attachments: |
StopLos update.png [49.61 KiB]
Downloaded 421 times
|
BeginnerStrategyBOOLEAN.vfs [136.26 KiB]
Downloaded 133 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: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Wed 25 Jan, 2017, 14:42
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, No worries, I can help you but I you have to do more efforts  Quote: 1. Only "buy stop" or only "sell stop" components functioning well but together they have problems (entry and stop loss prices are not updated more by "Pending Open") Quote: 2. I can not update stop loss price after Buy/Sell entry If one side only works well then 2 sides will work for sure: Do no connect your SL update function after OPen @market because it work work in a " serial" way so the system should go through all blocks since the beginning before reading your SL updating blocks/conditions (think like it was an electric connection). So move the SL updating to somewhere else where it wouldn't be blocked by inconsistent condition, make sure your position is created or filled or submitted before executing an update to a linked SL order Quote: 3. I can not define trend direction with the BOOLEAN variable properly, Maybe better do it with another variable? e.g. with SIGNALor COMMAND? Same as above, if a logic worked with one sequence it will for more than that but you have to pay attention: Example: I see that your Booleans have a start value = True > Right click on the variable panel and switch it to False so that when your conditions are verified the Boolean will change to True. Also, I don't see the reset to False sequence ? meaning when your Boolean var get back to False ? after a position is closed ? after a trend reversed ?? Quote: P.S. I can not find complete information about how to us component blocks correctly (Trading, mathematical and Logical blocks I need a lot) not in "VisualJForexGuide" as well as "VisualJF Help" (on forum pages I can not find anything even) We can arrange a one-to-one meeting if you wish. Let me know your availability Cheers !
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Wed 25 Jan, 2017, 15:12
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Thu 26 Jan, 2017, 08:58
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Hi Amine, I am very grateful for your offer of one-to-one meeting, but my English knowledge is limited, especially at speaking and I'm afraid I'll waste your time. Your chat answers always are very comprehensive and always fills my lack of knowledge, thanks for it. 
|
|
|
|
 |
amine_chourou
|
 |
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Thu 26 Jan, 2017, 16:56
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
I've checked your strategy and modified the start value of your Boolean variables and set up a reset (out of Trade Event). I'm not 100% sure of the logic and you have to double check that. On the other hand, the strategy is currently not trading at all and this seems to be related to the entry conditions that are not met so you have also to review that.
Attachments: |
BeginnerStrategy_V3.vfs [132.41 KiB]
Downloaded 146 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.
|
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Thu 26 Jan, 2017, 21:03
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Thank you very much for your help Amine
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Sun 29 Jan, 2017, 16:41
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Hello amine, Would you please help me again? New problems appear by directional filtering. I want to filter trend direction on 4H and 30M chart. (Broken fractal on this timeframe corresponds to trend direction). First time I try it on 30M time frame and if it succeed on 4H time frame will be the same principle. I added this block:  but it created only Buy orders and sell orders forgets.  Have I done something wrong again in this block? Thanks in advance for your reply 
Attachments: |
Direction filter.png [98.08 KiB]
Downloaded 394 times
|
Trend direction failure.png [50.91 KiB]
Downloaded 405 times
|
BeginnerStrategyMOD.vfs [146.09 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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 1
|
Posted: Mon 30 Jan, 2017, 10:43
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, Your short positions are not created because there is condition(s) blocking that: Either the number of open positions >0 or any of your logical triggers is not verrfied. Your strategy is also sending pending orders with a price = 0 Also, I don't think that you've understood correctly the way Boolean (or any logical trigger whether it is Boolean, Double string, etc ) works. In my previous post I've written: Quote: Example: I see that your Boolean have a start value = True. Please Right click on the variable panel and switch it to False so that when your conditions are verified the Boolean will change to True Can you check your strategy again ? On the other hand, the strategy is huge (in terms of size and blocks) in comparison with its requirements. You're also mixing the use of TIck and Candle start methods, can you explain why ? At this stage I recommend you to take a step back and write down in simple assumptions the strategy requirements then start a new file from scratch.
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Tue 31 Jan, 2017, 21:20
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
Hi amine, Yes, you are right, I do not understand the way how BOOLEAN works. I thought so: e.g. If on the 30 min. time frame last bid candle high breaks upper fractal level it means that chart direction is up on this time frame and it will be assigned as "Trend30M_UP"  I tried so too, set BOOLEANs value to FALSE, but then the backtesting doesn't work more: Not BUY so SELL orders anymore. If I change it to TRUE backtesting starts working. I found in "Contest" same examples of strategies that were set on FALSE and with backtesting they did not work too. Can be so that the strategy is correct but backtesting doesn't work ??? Can be that it will work by live chart ???
Attachments: |
boolean.png [32.03 KiB]
Downloaded 428 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: How can I create different time frame fractals in one strategy? |
Post rating: 1
|
Posted: Thu 02 Feb, 2017, 14:26
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi Quote: I do not understand the way how BOOLEAN works. Check page 42 of the user guide. In your example you have: Conditions A B C related to trends (30 mn 5mn etc) that has to be verified before entering the market then: the IF condition that sits before open at market plays a role of filter that blocks the flow till the above conditions are verified so this filter is done using boolean which should let the flow goes only if activated by conditions A, B C etc. In other words let say : Trigger (Boolean) start value is True (by default it starts as True) then ABC conditions conditions confirmed --> Assign value False to Trigger and in parallel you have : IF trigger = False then Open position ... The above logic can be reversed : you start with false and then switch to true. The start value whether it is true or false doesn't have much importance, the most importance is the way the switch is made (assign / Reset to original value) You can even use different variables such as Double and do exactly the same thing. Imagine if you have a logic with a prameter that can take 3 values, you can use a Double variable (number) that starts for instance with 0 and takes the values 2 if condition A happens , it takes 2 if condition B happens and takes 3 if C is there ... then at a given moment (position closed or whatever) it gets back to 0 so the cycle is ready for the next flow. Now let's get back to your strategy: Quote: I set BOOLEANs value to FALSE, but then the back-testing doesn't work this is due to another condition that is blocking and definitely not the Boolean. If you set the Boolean to True the strategy will trade randomly as your conditions are not verified yet. Off-the-topic: We have an issue with historical tester impacting Jforex and Visual Jforex platforms. our tech guys are working on that ... we'll be fixed soon.. Cheers !
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Mon 13 Feb, 2017, 16:53
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
|
|
|
 |
Misani
|
Post subject: Re: How can I create different time frame fractals in one strategy? |
Post rating: 0
|
Posted: Thu 16 Feb, 2017, 08:23
|
|
User rating: 0
Joined: Tue 16 Aug, 2016, 15:37 Posts: 25 Location: Georgia, Rustavi
|
in this case strategy makes only long and no shorts 
Attachments: |
FOLOWmyMOD3_1.vfs [147.91 KiB]
Downloaded 126 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
]
|
|
|
|
|