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.

can someone explain the parameters
 Post subject: can someone explain the parameters Post rating: 0   New post Posted: Fri 08 Jul, 2011, 17:58 

User rating: -
double sma = indicators.sma(instrument, selectedPeriod, OfferSide.BID, AppliedPrice.CLOSE, smaTimePeriod, indicatorFilter,
candlesBefore, prevBar.getTime(), candlesAfter)[0];

this calculates the sma.
i want to calculate the sma for bid.volume. so what should i modify this sma parameters.


 
 Post subject: Re: can someone explain the parameters Post rating: 0   New post Posted: Mon 11 Jul, 2011, 07:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
SMA does not work over volume but price. The line you've posted already calculates SMA for BID price. See more on use of indiacator usage in a strategy:
https://www.dukascopy.com/wiki/index.php ... Indicators


 

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