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.

what is the output of dmi[][] and macdExt[][]
 Post subject: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Mon 17 Dec, 2012, 15:44 
User avatar

User rating: 1
Joined: Sat 24 Sep, 2011, 12:11
Posts: 31
Location: China,
indicator dmi has 3 lines to output ADX ,DI+,DI-,
but itself is a 2-dimension array.
so does dmi[0][0] refer to DI+ and dmi[1][0] refer to DI- ?

same as dmi ,what about macd?


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Mon 17 Dec, 2012, 15:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Run the following example with DMI, MACD, etc.:
https://www.dukascopy.com/wiki/#Indicator_metadata/Retrieve_indicator_metadata


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Thu 20 Dec, 2012, 15:21 
User avatar

User rating: 1
Joined: Sat 24 Sep, 2011, 12:11
Posts: 31
Location: China,
still have some problems with dmi[][],
how to get value of DI-?

the output seems to be adx and DI+


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Thu 20 Dec, 2012, 15:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please provide your example strategy?


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Thu 20 Dec, 2012, 15:31 
User avatar

User rating: 1
Joined: Sat 24 Sep, 2011, 12:11
Posts: 31
Location: China,
double [][] dmi_34=indicators.dmi(instrument, selectedPeriod, OfferSide.BID, 34, indicatorFilter, 30, currBar.getTime(), 0);
int dmi_len=dmi_34[0].length-1;
double DI_p =dmi_34[0][dmi_len];
double DI_n =dmi_34[1][dmi_len];//is this right?


just like this


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Thu 20 Dec, 2012, 15:33 
User avatar

User rating: 1
Joined: Sat 24 Sep, 2011, 12:11
Posts: 31
Location: China,
dmi[][] outputs ADX and DI+,according to real time chart and message table


 
 Post subject: Re: what is the output of dmi[][] and macdExt[][] Post rating: 0   New post Posted: Thu 20 Dec, 2012, 15:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
API Support wrote:
Run the following example with DMI, MACD, etc.:
https://www.dukascopy.com/wiki/#Indicato ... r_metadata
What results did you get by running the example strategy with DMI?


 

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