Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Again Fractals
 Post subject: Again Fractals Post rating: 0   New post Posted: Mon 19 Jul, 2010, 08:20 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

Sorry my virtual dust but I still cant figure out how your fractal indicator is working. From what I know it should come with a small delay(e.g. for 2 bars) but your implementation show him in the front line.
I guess your implementation show some prediction of fractal coming in the future but not real one. Am I right?


 
 Post subject: Re: Again Fractals Post rating: 0   New post Posted: Mon 19 Jul, 2010, 08:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, it calculates value from the available data. It changes till all the necessary data is available.


 
 Post subject: Re: Again Fractals Post rating: 0   New post Posted: Mon 19 Jul, 2010, 10:00 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
So how determine was fractal formed or not yet?


 
 Post subject: Re: Again Fractals Post rating: 0   New post Posted: Mon 19 Jul, 2010, 11:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It depends from parameter "Number of bars on sides" that is given. For example, if its 2, then value for last two candles could change.


 
 Post subject: Re: Again Fractals Post rating: 0   New post Posted: Mon 19 Jul, 2010, 13:44 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
So there is no way to determine that fractal is completed?


 
 Post subject: Re: Again Fractals Post rating: 0   New post Posted: Tue 20 Jul, 2010, 15:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It depends from optional value. If its 2 then you must look for correct value two candles before the current candle (on the third candle).
here sample code
indicators.fractal(instrument, period, OfferSide.BID, 2, 3)

This will return you formed fractal with time period two candles.


 

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