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.

How can I obtain values from Fractal Indicator
 Post subject: How can I obtain values from Fractal Indicator Post rating: 0   New post Posted: Mon 29 Nov, 2010, 19:08 

User rating: 0
Joined: Thu 02 Sep, 2010, 05:01
Posts: 49
Hi Support,
how can I obtain low and high values from Fractal indicator in my strategy ?

I tried with the following code, but I obtain always NaN
       Object[] vals = context.getIndicators().calculateIndicator(
                    Instrument.EURUSD,
                    Period.createCustomPeriod(Unit.Minute, 5),
                    new OfferSide[] {OfferSide.BID, OfferSide.BID},
                    "FRACTAL",
                    new AppliedPrice[] {AppliedPrice.CLOSE, AppliedPrice.CLOSE},
                    new Object[] {2},
                    0);
       context.getConsole().getOut().println("HighFractal: " + vals[0].toString() + "    LowFractal: " + vals[1].toString());



Best regards,
Frank


 
 Post subject: Re: How can I obtain values from Fractal Indicator Post rating: 0   New post Posted: Thu 02 Dec, 2010, 09:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please have a look at the following post: https://www.dukascopy.com/swiss/english ... 773#p21773


 

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