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.

Add indicators on chart - complete .java sample needed
 Post subject: Add indicators on chart - complete .java sample needed Post rating: 0   New post Posted: Fri 28 Dec, 2012, 14:37 

User rating: 2
Joined: Tue 25 Dec, 2012, 17:56
Posts: 15
I'm learning JForex Client, Java, Eclipse, and JForex SDK at the same time, so it is a quite steep learning curve. I try to repeat WIKI examples in JForex Client and then, when appropriate, move them over to Eclipse/SDK. Most examples published in WIKI worked out OK, but I've got stuck in WIKI->Strategy API->Strategy API->Indicators->Plot indicators on chart ( https://www.dukascopy.com/wiki/#Add_indicators_on_chart ). The downloadable FeedMultiIndOpenCharts.java compiles and provides a good starting point. Then I have problems with adding some code suggested in the text (e.g. "Specify output style"). It would be a great help if you posted another .java link that contains FeedMultiIndOpenCharts.java merged with all modifications/additions that are needed to get a display as in the "Include in OHLC" chapter. Neewbees like myself will remain eternally grateful. :mrgreen:

Regards,
leoterra


 
 Post subject: Re: Add indicators on chart - complete .java sample needed Post rating: 0   New post Posted: Fri 28 Dec, 2012, 15:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Add_indicators_on_chart/Randomize_output_style_and_include_in_OHLC


 
 Post subject: Re: Add indicators on chart - complete .java sample needed Post rating: 0   New post Posted: Fri 28 Dec, 2012, 16:53 

User rating: 2
Joined: Tue 25 Dec, 2012, 17:56
Posts: 15
Super, thanks API Support, great help.

And P.S. for newbies: if you try your programming skills and edit FeedMultiIndOpenCharts.java, concentrate and remember to add the necessary imports:

import java.awt.Color;
import java.util.Random;

import com.dukascopy.api.drawings.IOhlcChartObject;
import com.dukascopy.api.indicators.OutputParameterInfo;
import com.dukascopy.api.indicators.OutputParameterInfo.DrawingStyle;

... or wait until Java reminds you :o
leoterra


 
 Post subject: Re: Add indicators on chart - complete .java sample needed Post rating: 0   New post Posted: Fri 28 Dec, 2012, 16:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
And P.S. for newbies: if you try your programming skills and edit FeedMultiIndOpenCharts.java, concentrate and remember to add the necessary imports:

import java.awt.Color;
import java.util.Random;

import com.dukascopy.api.drawings.IOhlcChartObject;
import com.dukascopy.api.indicators.OutputParameterInfo;
import com.dukascopy.api.indicators.OutputParameterInfo.DrawingStyle;

... or wait until Java reminds you :o
Normally the full source code is attached after the code snippets.


 

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