Dukascopy
 
 
Wiki JStore Search Login

Upper fractal break strategy
 Post subject: Upper fractal break strategy Post rating: 0   New post Posted: Sun 16 Feb, 2014, 07:03 

User rating: 0
Joined: Mon 03 Feb, 2014, 22:31
Posts: 3
Location: AustraliaAustralia
Hello

I am trying to create a simple strategy based on Bill Williams' fractal indicator. I have attached my work to date. My strategy aims to do the following:

1. Filter for instrument and period
2. Look at the five most recent candles to determine if a new upper fractal formed.
3. If a new upper fractal is formed:
a)Assign the price of the upper fractal to the variable "Fractal_up"
b)Cancel any unfilled pending orders based on previous upper fractals
c)Set a new pending order based on the new upper fractal

My questions:
1. The strategy appears to be working, but I get a series of error messages that relate (I think) to the cancelled pending orders. What is causing these errors, and how can I fix them?
2. In determining the price of the most recent upper fractal, I am looking at the last five candles individually using the "Get Historical Candle" block. I am looking at the current candle (which I call candle zero given that its shift = 0) and candles shifted 1, 2, 3 and 4 time periods back in history. If a new fractal forms in the last five candles, it would be based on the middle candle (that is, the candle shifted 2 time periods back), which I have called candleshift_2. Can anyone comment as to whether my logic is correct here, or suggest a better approach?

Thanks in advance for your help, and thanks for providing such a great tool. It opens up a whole world of possibilities to non-programmers such as myself.


Attachments:
Upper Fractal Break.vfs [55.56 KiB]
Downloaded 106 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: Upper fractal break strategy Post rating: 0   New post Posted: Thu 20 Feb, 2014, 09:10 
Visual JForex expert at Dukascopy
User avatar

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

As far as I understand the FRACTALS indicator (please correct me if I am wrong!) you need to setup 5 candles or any other odd number. After that determine if the candle in the middle has extrema (high/low) in reference to the other candles next to it.

You can also consider using the attached strategy for Fractals.

Anyway: A tiny little mistake I have found in your strategy...: Like you said, it was related to the close of the PO.


Attachments:
Upper Fractal Break_mod.vfs [55.59 KiB]
Downloaded 148 times
Fractal.vfs [31.71 KiB]
Downloaded 119 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:  

cron
  © 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