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.

API JForex-3-SDK and new indicatotrs CurrencySlopeStrength and TradersDynamicIndex
 Post subject: API JForex-3-SDK and new indicatotrs CurrencySlopeStrength and TradersDynamicIndex Post rating: 0   New post Posted: Wed 08 Feb, 2017, 16:52 

User rating: 1
Joined: Mon 01 Sep, 2014, 13:39
Posts: 34
Location: AustraliaAustralia
Hi,

With the new API JForex-3-SDK, if I want to use the new indicators CurrencySlopeStrength and TradersDynamicIndex do I have to explicitly do it as coded below?

import com.dukascopy.indicators.TradersDynamicIndex;
import com.dukascopy.indicators.CurrencySlopeStrength;
...
Object tdi = new TradersDynamicIndex();
Object css = new CurrencySlopeStrength();

You cannot use the interface IIndicators and then just call them in the program as per usual?

Thanks,
Chris.


 
 Post subject: Re: API JForex-3-SDK and new indicatotrs CurrencySlopeStrength and TradersDynamicIndex Post rating: 0   New post Posted: Thu 09 Feb, 2017, 09:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
That is not necessary. Indicators can be loaded from file by the strategy.
https://www.dukascopy.com/wiki/en/devel ... strategies


 
 Post subject: Re: API JForex-3-SDK and new indicatotrs CurrencySlopeStrength and TradersDynamicIndex Post rating: 0   New post Posted: Thu 09 Feb, 2017, 10:14 

User rating: 1
Joined: Mon 01 Sep, 2014, 13:39
Posts: 34
Location: AustraliaAustralia
API Support wrote:
That is not necessary. Indicators can be loaded from file by the strategy.
https://www.dukascopy.com/wiki/en/devel ... strategies
I'm confused, isn't this the old way to use TDI, by registering it because it's a custom indicator?

@Configurable("TDI .jfx file")
public File jfxFile = new File("C:\\temp\\TradersDynamicIndex.jfx");

Is there not a way to do it as per other indicators like below? I thought this change was made for 3.0.18? The code now is included in the API whereas before it wasn't.

private IIndicators myIndicators = null;
...
double rsi[] = myIndicators.rsi(myInstrument, myPeriod, OfferSide.BID, AppliedPrice.CLOSE, 14, Filter.WEEKENDS, 3, timeOfCurrBar, 0);

This URL doesn't have anything in the USE link to show an example of usage https://www.dukascopy.com/client/javado ... Index.html


 

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