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.

trend filter indicator not displayed properly
 Post subject: trend filter indicator not displayed properly Post rating: 0   Post Posted: Wed 06 Jun, 2012, 12:18 
User avatar

User rating: 1
Joined: Wed 06 Jul, 2011, 23:12
Posts: 42
Location: Romania, Bucharest
Dear API Support,


I have designed the indicator attachd bellow wich is a mix of MACD, DMI and CCI that acts as a less noisy trend filter.

Probably I have an error in the code because the indicator should display a positive or negative value all the time but it only does so at certain moments. All the values displayed are correct, but I can't figure why the indicator is not continously displayed. If I refresh the chart, than everything is ok, but in real time it has pauses in the values shown.

I also attach two pictures showing the real time defectous behavior and how it is supposed to look like (and it actualy does but only on refresh).


Thanks for your support!


Attachments:
CCIMACDDI.java [12.16 KiB]
Downloaded 278 times
chart_in_real_time.png [9.33 KiB]
Downloaded 376 times
chart_after_refresh_of_the_indicator.png [9.29 KiB]
Downloaded 324 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: trend filter indicator not displayed properly Post rating: 0   Post Posted: Fri 08 Jun, 2012, 13:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Try to add the following code after line 200:
indicatorInfo.setRecalculateAll(true);


 

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