Dukascopy
 
 
Wiki JStore Search Login

How to make strategy draw in additional panes
 Post subject: How to make strategy draw in additional panes Post rating: 0   New post Posted: Thu 15 Sep, 2011, 15:07 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
I know how to make a strategy draw in the price-time space (where the candles are).

But is it possible to draw in the additional panes, (e.g. where stochastic oscillator indicator is drawn), from the strategy?

To clarify:
Attachment:
how to draw in other panes.png [42.28 KiB]
Downloaded 522 times

The best would be if I could draw in a blank new pane (e.g. y-axis 0 - 100) without having to add an indicator. Is this possible?


 
 Post subject: Re: JFOREX-3219 How to make strategy draw in indicator panes Post rating: 0   New post Posted: Thu 22 Sep, 2011, 15:38 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Just to emphasize, this feature would be appreciated. Currently, I can resort only to this:
Attachment:
nasty workaround.png [102.89 KiB]
Downloaded 530 times

which is troublesome, of course.


 
 Post subject: Re: JFOREX-3219 How to make strategy draw in additional panes Post rating: 0   New post Posted: Mon 19 Mar, 2012, 20:11 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Are there any plans to implement something along these lines? I've waited almost a year... :)

Or has it been implemented already somewhere in the new API?


 
The Best Answer  Post subject: Re: JFOREX-3219 How to make strategy draw in additional panes Post rating: 0   New post Posted: Thu 14 Jun, 2012, 10:15 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There were added into API:

- int getSubChartsCount();
returns a chart sub panels count
- void addSubIndicator(IIndicator indicator);
creates a new sub panel and adds an indicator onto it
- void addSubIndicatorByPanelIndex(Integer subPanelIndex, IIndicator indicator);
adds an indicator on the existing panel by index (0 - upper one sub panel; getSubChartsCount()-1 - bottom panel)
- void addToSubChart(int subPanelIndex, IChartObject chartObject);
adds a chart object to the sub panel specified by index (0; getSubChartsCount()-1)

Available in 2.6.71


 

Jump to:  

  © 1998-2024 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