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.

Alligator, different values code/graph
 Post subject: Alligator, different values code/graph Post rating: 0   New post 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 445 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.
 
 Post subject: Re: Alligator, different values code/graph Post rating: 0   New post Posted: Thu 16 Sep, 2010, 15:39 
User avatar

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.
 
 Post subject: Re: Alligator, different values code/graph Post rating: 0   New post 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 ??


 
 Post subject: Re: Alligator, different values code/graph Post rating: 0   New post Posted: Fri 17 Sep, 2010, 07:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please have a look at the following JForex Wiki articles:
https://www.dukascopy.com/wiki/index.php/Indicators
https://www.dukascopy.com/wiki/index.php ... #Alligator

Should you have any more questions, please do not hesitate to ask.


 

Jump to:  

cron
  © 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