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.

Keltner indicator arguments
 Post subject: Keltner indicator arguments Post rating: 0   New post Posted: Mon 31 May, 2010, 09:35 

User rating: -
Dear Dukascopy,

I've just tried to implement some Keltner magic, but I don't understand
clearly the API solution.
There is a Keltner method, which returns a double, I guess that's the
blue line.
There's an other, to which a "from" and a "to" argument should be given,
but I don't know what are they...

I would need a solution, in which I only need to give a shift argument,
and then get the 3 lines - top, mid, bottom - returned in an array.
What "from" and "to" args should I need to get actual Keltner Channel?

Sincerely,
Csaba Kincses


 
 Post subject: Re: Keltner indicator arguments Post rating: 0   New post Posted: Tue 01 Jun, 2010, 08:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
thanks for your attentions. This is our bug, we will fix it ASAP.
Meanwhile, you could use method calculateIndicator
Object[] objects = indicators.calculateIndicator(instrument, period, new OfferSide[]{OfferSide.BID}, "KELTNER", new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[] {10}, 1);
         
         for (Object o : objects)
            System.out.print((Double)o+", ");
         System.out.println();

Also you could find some usefull information here:


 

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