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.

Re: Indicator Alligator
 Post subject: Re: Indicator Alligator Post rating: 0   New post Posted: Wed 11 Nov, 2015, 15:48 
User avatar

User rating: 0
Joined: Fri 06 Mar, 2015, 11:56
Posts: 19
Location: ChinaChina
Hi, Mr. Support:

I used IIndicators.macd and IIndicators.bband before, they are good.

I would like to use IIndicators.alligator() to get teeth value of some bars, but there are not parameters like MaType or Filter, what can I do?

Thank you very much!


 
 Post subject: Re: Indicator Alligator Post rating: 0   New post Posted: Thu 12 Nov, 2015, 08:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Alligator indicator is calculated using SMMA and don't have MaType parameter.
Consider this example in JForex Wiki:
https://www.dukascopy.com/wiki/#Indicat ... /Alligator


 
 Post subject: Re: Indicator Alligator Post rating: 0   New post Posted: Thu 12 Nov, 2015, 16:43 
User avatar

User rating: 0
Joined: Fri 06 Mar, 2015, 11:56
Posts: 19
Location: ChinaChina
Dear Mr Support:

I have use the method you mentioned above.
But the result is different from the data on chart.
I can't figure out why.
You didn't use different methods in IIndications from in Charts, did you?

BRDS!


 
The Best Answer  Post subject: Re: Indicator Alligator Post rating: 0   New post Posted: Fri 13 Nov, 2015, 15:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is an example of calling alligator on Renko feed.
IFeedDescriptor renkoFeedDescriptor = new RenkoFeedDescriptor(Instrument.USDSEK, PriceRange.THREE_PIPS, OfferSide.BID);
IIndicatorCalculator<double[], double[][]> calculator = indicators.alligator(renkoFeedDescriptor, AppliedPrice.CLOSE, OfferSide.ASK, 13, 8, 5);
double[] values = calculator.calculate(1);       
console.getOut().println(values[0]+ " "+ values[1]+ " "+ values[2]);


 

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