|
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.
Return Values on Stochastic oscillator |
vamana2734
|
Post subject: Return Values on Stochastic oscillator |
Post rating: 0
|
Posted: Thu 09 May, 2013, 14:08
|
|
User rating: 0
Joined: Thu 09 May, 2013, 14:01 Posts: 9 Location: SingaporeSingapore
|
Hi,
JavaDoc only lists the return value of the stochastic oscillator as a double []. Can you specify what is passed in the array elements?
For example, I am using
Current_Stoch = indicators.stoch(instrument, period, side, fastKPeriod, slowKPeriod , slowKMaType, slowDPeriod, slowDMaType, shift );
what will be Current_Stoch[0], Current_Stoch[1],Current_Stoch[2], .. etc.?
I was checking JavaDoc and for none of the indicators, the return value has been described. I might be missing a better description of the indicators but I could not find any. I only found the stochastic strategy example on Wiki, even there we are not told what the return values are.
Can you help?
Thanks, Vamana
|
|
|
|
 |
API Support
|
Post subject: Re: Return Values on Stochastic oscillator |
Post rating: 0
|
Posted: Thu 09 May, 2013, 14:26
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
vamana2734
|
Post subject: Re: Return Values on Stochastic oscillator |
Post rating: 0
|
Posted: Thu 09 May, 2013, 14:30
|
|
User rating: 0
Joined: Thu 09 May, 2013, 14:01 Posts: 9 Location: SingaporeSingapore
|
Thanks for the quick response. I will look at that page.
Thanks, Vamana.
|
|
|
|
 |
tcsabina
|
Post subject: Re: Return Values on Stochastic oscillator |
Post rating: 0
|
Posted: Thu 30 May, 2013, 12:26
|
|
User rating: 164
Joined: Mon 08 Oct, 2012, 10:35 Posts: 676 Location: NetherlandsNetherlands
|
I don`t know if you get further with the linked page, but this one describes it better, IMHO: https://www.dukascopy.com/wiki/#Indicato ... r_by_shiftSo if you use the shift parameter, the 1st element in the array is the indicator value of the current bar. The 2nd element is the previous bar, etc. From my experience I can say that it is always good the create a very simple strategy with the required indicator, and compare the strategy`s output with the indicator on the chart. With that you can be sure that you are using the correct parameters for the indicator. More on this at: https://www.dukascopy.com/wiki/#Add_indi ... de_in_OHLC
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|