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.

ichimoku indicator example?
 Post subject: ichimoku indicator example? Post rating: 0   New post Posted: Thu 12 May, 2011, 06:35 

User rating: 0
Joined: Fri 08 Apr, 2011, 03:23
Posts: 5
Hi Support, I am going through the javadoc and wants to utilize the following methods to get some calculated values using ichimoku. I don't understand why some of values would be needed to be passed into these methods, such as numberOfCandlesBefore and after. And I also don't have clue how values are being returned.

Do you have any example or more details on what's being returned by these methods? I am looking for typical tenkan, kijun, senkou, and chikou span values just like how it is displayed on the indicators on the chart.



double[] ichimoku(Instrument instrument,
Period period,
OfferSide side,
int tenkan,
int kijun,
int senkou,
int shift)
throws JFException
Throws:
JFException
ichimoku

double[][] ichimoku(Instrument instrument,
Period period,
OfferSide side,
int tenkan,
int kijun,
int senkou,
long from,
long to)
throws JFException
Throws:
JFException
ichimoku

double[][] ichimoku(Instrument instrument,
Period period,
OfferSide side,
int tenkan,
int kijun,
int senkou,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter)
throws JFException
Throws:
JFException


 
 Post subject: Re: ichimoku indicator example? Post rating: 0   New post Posted: Thu 12 May, 2011, 07:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Have a look at the following posts:
viewtopic.php?f=6&t=3561
https://www.dukascopy.com/wiki/index.php ... Indicators


 
 Post subject: Re: ichimoku indicator example? Post rating: 0   New post Posted: Thu 12 May, 2011, 17:29 

User rating: 0
Joined: Fri 08 Apr, 2011, 03:23
Posts: 5
Hi I went through the webpage you suggested a while ago. And I couldn't find what I was looking for. I understand that page just contains examples and there's no way that you can cover all indicators out there.

I tested the ichimoku methods and dump out the data in arrays as as history tester is running. I tried to match the values in array to what I see on the graphical representation of ichimoku. they did not match.

here's my simple code to dump of the result
  public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
         if (instrument == Instrument.EURUSD && period == Period.THIRTY_MINS){
             double [] result = new double [7];
             result = indicators.ichimoku(instrument, period, OfferSide.ASK, 9, 26, 52, 0);
             for (int i=0; i < 7; i++)
             console.getOut().println("element " + i + " is [" + result[i] + "]");
         }
    }


 
 Post subject: Re: ichimoku indicator example? Post rating: 0   New post Posted: Mon 16 May, 2011, 08:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please make sure platform flats filter is disabled (Tools/Preferences/Chart/Flats filtration).


 

Jump to:  

  © 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