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.

Modified fractal indicator
 Post subject: Modified fractal indicator Post rating: 0   New post Posted: Mon 18 Feb, 2013, 15:24 

User rating: 0
Joined: Mon 18 Feb, 2013, 14:51
Posts: 12
Location: GermanyGermany
Hello support,
i need modified FractalIndicator that show MAX and MIN only if their values are not overlapped in the future (f.e. if i have the High value 123 it must be shown only in case if in the future there is no value greater then 123), how can i do this ?
Another question is about setChartObjectListener : for objects wish are created within/by indicator (not a strategy), it is possible take selected event? I see reaction only on highlighted/highlightingRemoved events .
Thanks.


 
 Post subject: Re: Modified fractal indicator Post rating: 0   New post Posted: Tue 19 Feb, 2013, 09:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Zlatogorov wrote:
i need modified FractalIndicator that show MAX and MIN only if their values are not overlapped in the future (f.e. if i have the High value 123 it must be shown only in case if in the future there is no value greater then 123), how can i do this ?
You need to properly manage the indicator's lookback to receive sufficient inputs to do such calculations, find the source file by following these directions:
https://www.dukascopy.com/wiki/#Platform_indicator_source_files
Zlatogorov wrote:
Another question is about setChartObjectListener : for objects wish are created within/by indicator (not a strategy), it is possible take selected event? I see reaction only on highlighted/highlightingRemoved events .
Please provide an example indicator which replicates the case.


 
 Post subject: Re: Modified fractal indicator Post rating: 0   New post Posted: Tue 19 Feb, 2013, 20:29 

User rating: 0
Joined: Mon 18 Feb, 2013, 14:51
Posts: 12
Location: GermanyGermany
Hello again, i have example from https://www.dukascopy.com/wiki/#Indicato ... rt_objects
I create rectangle object with this code

IRectangleChartObject rectangle = factory.createRectangle(GUID + "RT", barFrom.getTime(), barFrom.getHigh(),
barTo.getTime(), barTo.getLow());
rectangle.setLocked(false);
rectangle.setChartObjectListener(new ChartObjectAdapter() {
public void selected(ChartObjectEvent e) {
console.getOut().println("selected");
}
} );


 
 Post subject: Re: Modified fractal indicator Post rating: 0   New post Posted: Wed 20 Feb, 2013, 08:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
What is the question?


 
 Post subject: Re: Modified fractal indicator Post rating: 0   New post Posted: Wed 20 Feb, 2013, 09:27 

User rating: 0
Joined: Mon 18 Feb, 2013, 14:51
Posts: 12
Location: GermanyGermany
Question is : how to take selected event in chart object, wish was created within indicator.


 
 Post subject: Re: Modified fractal indicator Post rating: 0   New post Posted: Wed 20 Feb, 2013, 15:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Indicator chart objects can not get selected, moved, deleted by manual actions. This is as designed.


 

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