|
Upper fractal break strategy |
longers
|
Post subject: Upper fractal break strategy |
Post rating: 0
|
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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|