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.

TVS indicator can not add filter
 Post subject: TVS indicator can not add filter Post rating: 0   New post Posted: Mon 31 Dec, 2012, 15:23 

User rating: 0
Joined: Mon 31 Dec, 2012, 15:03
Posts: 5
I would like to have the same indicator in onBar method:
double indicator = indicators.tvs(Instrument.EURUSD, Period.FOUR_HOURS, OfferSide.BID, AppliedPrice.CLOSE, 25, 0);

BUT I need to add a filter "Filter.ALL_FLATS"
I have read the documentation, for example here https://www.dukascopy.com/client/javadoc/
but is is difficult to understand it without strong background in trading (I do not have the same).
Could somebody help me with it?


 
 Post subject: Re: TVS indicator can not add filter Post rating: 0   New post Posted: Mon 07 Jan, 2013, 09:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
use the candle-interval method, see:
https://www.dukascopy.com/wiki/#Indicator_Calculation/Calculate_indicator_by_candle_interval


 

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