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.

indicator display in separate window/dialog ?
 Post subject: indicator display in separate window/dialog ? Post rating: 0   New post Posted: Mon 18 Oct, 2010, 18:01 

User rating: 0
Joined: Tue 10 Nov, 2009, 16:58
Posts: 65
How can I have my indicator show additional output in a separate window ? I have an indicator that has to display information that is not directly correlated with the bars on the chart (like a configurable depth and width histogram). Only solution I found so far is to directly draw the information in the main chart. That is not very pretty and interferes with the chart.

Can an indicator create a JPanel for example and draw stuff there ?

thanks


 
 Post subject: Re: indicator display in separate window/dialog ? Post rating: 0   New post Posted: Tue 19 Oct, 2010, 08:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
you could try to override drawOutput method from the IIndicator, but we strongly suggest you to use strategy for such purpose. Could you please describe, what exactly you try to do?


 
 Post subject: Re: indicator display in separate window/dialog ? Post rating: 0   New post Posted: Thu 04 Nov, 2010, 17:31 

User rating: 0
Joined: Tue 10 Nov, 2009, 16:58
Posts: 65
I want to show an histogram (a frequency chart) of let's say bar range over a certain time. The histogram therefore will not have one bar for each price bar, but instead each bar shows how many price bars are within a certain range.

Normal indicators show something correlated directly with the price bars, this one would not, so we can not just use a histogram plot.


 
 Post subject: Re: indicator display in separate window/dialog ? Post rating: 0   New post Posted: Wed 15 Jun, 2011, 12:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It looks like it would be more convenient to implement such thing from a strategy, by using IUserInterface, see an example here:
viewtopic.php?f=7&t=563&p=6830&hilit=alerter#p6830


 

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