Dukascopy
 
 
Wiki JStore Search Login

How to get the last up and down fractal bar info
 Post subject: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Sat 20 Feb, 2016, 05:58 
User avatar

User rating: 0
Joined: Sun 26 May, 2013, 12:18
Posts: 40
Location: India,
I would like to get the HIGH of the last UP fractal and the LOW of the DOWN fractal to be used in writing a strategy. How could it be achieved?

In Visual jforex, for fractal indicator, these info are available for the last fractal (as shown in the diagram) viz.

Input values
instrument
period
shift
no. of bars on sides

Output values
maximums10
minimums10


Image


Attachments:
Fractal Info.jpg [119.55 KiB]
Downloaded 465 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: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Mon 22 Feb, 2016, 13:20 
Visual JForex expert at Dukascopy
User avatar

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

Do you need this High and lows starting from the moment you launch the strategy or you need to get previous values from a given range of candles ? If so how many candles needed ? What are the parameters of your fractal (will you keep the default ones ? 2,2) ?

What is the main issue that you faced in trying to achieve this in VJF ?

cheers


 
 Post subject: Re: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Mon 22 Feb, 2016, 13:34 
User avatar

User rating: 0
Joined: Sun 26 May, 2013, 12:18
Posts: 40
Location: India,
amine_chourou wrote:
Hi,

Do you need this High and lows starting from the moment you launch the strategy or you need to get previous values from a given range of candles ? If so how many candles needed ? What are the parameters of your fractal (will you keep the default ones ? 2,2) ?

What is the main issue that you faced in trying to achieve this in VJF ?

cheers


Thanks.
I need the high of the last up fractal and the low of the last down fractal. 2,2 candles parameters is okay.

Thinking through I think i could get the high from maxmimum10 and low from minimum 10.
Please correct me if I m wrong.

In the diagram attached previously, we have a down fractal, that occur 4 candles back, Will the LOW of that fractal still hold or it can be used only at immediate candle after 2 candles from fractal occurence.

Also, How to best provide the logic when the price cross either the high or low. Im using if logic for price crossing low of down fractal as follows:

last Ask candle: candle close < minimums10
last tick: tick bid >= minimums10


Image

Regards,


Attachments:
iflogiclowcross.jpg [45.47 KiB]
Downloaded 438 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: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Mon 22 Feb, 2016, 15:11 
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 of how to get the high and lows from the fractal indicator. It retrieves the values starting from the moment when the strategy is launched. Any value of the indicator that belongs to the past is not considered in this example. If you wish to include past data you need to use the shift values.


Attachments:
Fractal_HighLow.vfs [22.4 KiB]
Downloaded 253 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: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Mon 22 Feb, 2016, 16:07 
User avatar

User rating: 0
Joined: Sun 26 May, 2013, 12:18
Posts: 40
Location: India,
Your logic get the fractal values from the start of the strategy, If I want to get the fractal values from the last 10 candles, how to get it?


 
 Post subject: Re: How to get the last up and down fractal bar info Post rating: 0   New post Posted: Mon 22 Feb, 2016, 17:04 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
As said, you need then to play with shift values to get the previous set of data


 

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