|
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[][] |
emacsen
|
Post subject: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Mon 17 Dec, 2012, 15:44
|
|
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?
|
|
|
|
 |
API Support
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Mon 17 Dec, 2012, 15:58
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
emacsen
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Thu 20 Dec, 2012, 15:21
|
|
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+
|
|
|
|
 |
API Support
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Thu 20 Dec, 2012, 15:27
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Could you please provide your example strategy?
|
|
|
|
 |
emacsen
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Thu 20 Dec, 2012, 15:31
|
|
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
|
|
|
|
 |
emacsen
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Thu 20 Dec, 2012, 15:33
|
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: what is the output of dmi[][] and macdExt[][] |
Post rating: 0
|
Posted: Thu 20 Dec, 2012, 15:56
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
API Support wrote: What results did you get by running the example strategy with DMI?
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|