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.

Multiple Seperate Charts in Backtesting
 Post subject: Multiple Seperate Charts in Backtesting Post rating: 0   New post Posted: Sat 10 Mar, 2018, 10:01 
User avatar

User rating: 0
Joined: Fri 09 Mar, 2018, 23:13
Posts: 2
Location: United Kingdom,
Hi,

Would it be possible for Dukascopy to provide an example of using the SDK to open multiple seperate charts for a backtest?

I've been working through two examples from the documentation, GUIModeMultiChart which has multiple charts but in different panes in the same window, and MainOpenWindow which has multiple seperate charts but is only for live trading. When I try to integrate the two by adding what I thought would be the required changes to GUIModeMultiChart I get error

2018-03-10 08:51:53.358 INFO MainOpenChart - Subscribing instruments...
Exception in thread "main" java.lang.IllegalStateException: It's not designed to open charts in back-testing at the moment
at com.dukascopy.api.impl.connect.TesterClientImpl.openChart(TesterClientImpl.java:644)
at MainOpenChart.startStrategy(MainOpenChart.java:141)
at MainOpenChart.main(MainOpenChart.java:60)

I've attached my attempt at integration.

Many thanks in advance!


Attachments:
Dukascopy Multiple Charts.txt [14.59 KiB]
Downloaded 141 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: Multiple Seperate Charts in Backtesting Post rating: 0   New post Posted: Tue 13 Mar, 2018, 11:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The strategy is not allowed to open new charts when backtesting. Therefore, this is not possible.


 
 Post subject: Re: Multiple Seperate Charts in Backtesting Post rating: 0   New post Posted: Tue 13 Mar, 2018, 11:56 
User avatar

User rating: 0
Joined: Fri 09 Mar, 2018, 23:13
Posts: 2
Location: United Kingdom,
Thanks for your response. So just to confirm, it’s not possible to open separate charts during a backtest using any functionality within the sdk? The closest would be opening multiple panes in the same chart frame (which there are examples for)?

If this isn’t possible, within the sdk is it possible to change chart instrument using a drop down box during a backtest? I’ve seen examples in the documentation, but think they’re all for live strategies.

Thanks in advance.


 
 Post subject: Re: Multiple Seperate Charts in Backtesting Post rating: 0   New post Posted: Thu 22 Mar, 2018, 15:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Charts can only be created by tester itself. Created charts are available using ITesterUserInterface.
Charts periods and feeds can only be changed by using ITesterChartController.
Standart chart creation is not available in SDK tester.


 

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