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.

Fractals
 Post subject: Fractals Post rating: 0   New post Posted: Fri 21 Feb, 2014, 10:11 
User avatar

User rating: 2
Joined: Wed 29 Jan, 2014, 10:18
Posts: 30
Location: Austria,
Hi

To begin coding a trading strategy that uses bars (not ticks), I undestand how to use this following method call in OnBar() to get up and down fractals by shift:

double[] fractal(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int barsOnSides,
                 int shift)
                 throws JFException

However, I don't understand how to use the following method to get up fractals (maximums) and down fractals (minimums) within a certain bar time interval:
double[][] fractal(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int barsOnSides,
                   long from,
                   long to)
                   throws JFException

Any example or explanation is appreciated.

Thanks


 
 Post subject: Re: Fractals Post rating: 0   New post Posted: Fri 21 Feb, 2014, 10:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
viewtopic.php?f=65&t=50710&p=77848
viewtopic.php?f=65&t=47360&p=64519


 
 Post subject: Re: Fractals Post rating: 0   New post Posted: Fri 21 Feb, 2014, 13:07 
User avatar

User rating: 2
Joined: Wed 29 Jan, 2014, 10:18
Posts: 30
Location: Austria,
API Support wrote:


Many thanks, I will look at these examples.


 

Jump to:  

  © 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