|
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.
Alligator, different values code/graph |
[juanc]
|
Post subject: Alligator, different values code/graph |
Post rating: 0
|
Posted: Wed 15 Sep, 2010, 10:30
|
|
User rating: 0
Joined: Fri 10 Sep, 2010, 09:23 Posts: 8
|
Hello,
I´m very new in JForex and I´m sure my problem will be easy to solve but at the moment I´m not abble to do it. I´m using the alligator indicator and the value I get is not the value I see in the graph.
Here you have two samples of code I have tryed in the onTick event, both give me the same result:
mAllig = indicators.alligator(instrument, Period.THIRTY_MINS, OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 13, 8, 5, 0); mJaw = mAllig[0]; mTeeth = mAllig[1]; mLips = mAllig[2]; // mAllig = indicators.alligator(instrument, Period.THIRTY_MINS, OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 13, 8, 5, Filter.ALL_FLATS, 1, tick.getTime(), 0); mJaw = mAllig[0][0]; mTeeth = mAllig[1][0]; mLips = mAllig[2][0];
As you can see I´m using 13,8,5 time periods for jaw, teeth and lips, with median price and prices in the bid side. The instrument is EUR/CHF, and at 03/09/2010 11:30:00 I get diferent values - Graph -> TickVal: 1,3021 - Teeth: 1,2999 (See the attched picture) - Code -> TickVal: 1,3021 - Teeth: 1,3017 (Jaw: 1,3008 Lips: 1,3025)
Please, could you tell me how to get the same value of the graphic.
Thanks, Juan.
Attachments: |
eur_chf_alligator.JPG [455.16 KiB]
Downloaded 444 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
API Support
|
Post subject: Re: Alligator, different values code/graph |
Post rating: 0
|
Posted: Thu 16 Sep, 2010, 15:39
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, Alligator is a leading indicator, maybe you are simply comparing the wrong values. Please have a look at the attached picture.
Attachments: |
aligator.PNG [22.13 KiB]
Downloaded 482 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
[juanc]
|
Post subject: Re: Alligator, different values code/graph |
Post rating: 0
|
Posted: Thu 16 Sep, 2010, 16:18
|
|
User rating: 0
Joined: Fri 10 Sep, 2010, 09:23 Posts: 8
|
Sorry, but I can´t see very well the pictures (no values, no time ...) What do you mean with "leading indicators" ??
I just see in the graphic at 03/09/2010 11:30:00 the teeth value 1,2999 and thats the value I want to read, not 1,3017. Do you mean I have to shift the time to read that value ??
|
|
|
|
 |
API Support
|
Post subject: Re: Alligator, different values code/graph |
Post rating: 0
|
Posted: Fri 17 Sep, 2010, 07:48
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|