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.

calculateIndicator() for AppliedPrice
 Post subject: calculateIndicator() for AppliedPrice Post rating: 0   New post Posted: Sun 09 Oct, 2011, 18:12 

User rating: -
output of stoch indicator is equal for any selection of AppliedPrice.*

indicators.calculateIndicator(myInstrument, myPeriod, new OfferSide[]{OfferSide.BID}, "stoch", new AppliedPrice[]{AppliedPrice.WEIGHTED_CLOSE}, new Object[]{fastKperiod, 3, MaType.SMA.ordinal(), 3, MaType.SMA.ordinal()}, 0);


 
 Post subject: Re: DDSJFX-570 calculateIndicator() for AppliedPrice Post rating: 0   New post Posted: Tue 11 Oct, 2011, 07:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Stochastic indicator uses various types of prices (close, high, low) these types are defined inside the indicator. There's no point in providing the applied price value for Stochatic indicator calculation, simply set the value of the parameter to null.


 

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