Dukascopy
 
 
Wiki JStore Search Login

Index and CFD trading with Visual JForex
 Post subject: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Wed 01 Feb, 2017, 15:56 

User rating: 0
Joined: Fri 09 Dec, 2016, 16:08
Posts: 6
Location: Spain, Oliva
Hello, is it possible to make a strategy with indexes? Example if stock indexes go down , sell USDJPY. I only can see currency pairs.

Thanks.


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 1   New post Posted: Thu 02 Feb, 2017, 11:36 
Visual JForex expert at Dukascopy
User avatar

User rating: 287
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1513
Location: Switzerland, Geneva
Hi,

Currently Visual Jforex doesn't support CFDs but there is a workaround to achieve your idea:
Simply build your strategy using USDJPY and another random currency, Do not use Default instrument but rather create new instrument variable and use it in your blocks. Once done, export the strategy to Jforex platform and in Historical tester switch the random instrument to JPN index then launch your test.
Currently we're experiencing an issue with Historical Tester both in VJF and JForex platforms but you can start developing your idea in VJF till we fix this issue so that you can test properly.


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Thu 02 Feb, 2017, 12:26 

User rating: 0
Joined: Fri 09 Dec, 2016, 16:08
Posts: 6
Location: Spain, Oliva
Ok, perfect. I can make the strategy with currency pairs and in the Strategy Editor change the currencies to the indexes.
The example is if in the New York session the SP500 and Dow Jones Drops, go short on USDJPY, with certain rules.

Thanks a lot.


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Thu 02 Feb, 2017, 13:21 
Visual JForex expert at Dukascopy
User avatar

User rating: 287
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1513
Location: Switzerland, Geneva
Alright,

Can you start this idea in VJF and implement these rules ?
I'll help you fine tuning this as the custom instruments has to be "visible" by setting GLobal parameter to "True". Take a look into page 24 of the User Guide to see how it looks:
https://www.dukascopy.com/vfhelper/down ... _locale=EN

Cheers


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Thu 02 Feb, 2017, 15:31 

User rating: 0
Joined: Fri 09 Dec, 2016, 16:08
Posts: 6
Location: Spain, Oliva
Thanks again, I will send you the first compilable.


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Tue 07 Mar, 2017, 12:51 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Thanks Amine :D


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Tue 07 Mar, 2017, 12:54 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Salve,

Tried to wite the strategy for EUR/USD and compile, substituting the EUR/USD with the USA500IDX/USD and it compile too with no messages. But the historical tester show a message like:

11:45:53 Strategy tester: java.lang.NullPointerException @ com.dukascopy.visualforex.visualjforex.CNDL_15Min_1H_4H_1D_1W_USA500IDXUSD_Yes.subscriptionInstrumentCheck(CNDL_15Min_1H_4H_1D_1W_USA500IDXUSD_Yes.java:390)

How could be fix ?

Thanks


 
 Post subject: Re: Index and CFD trading with Visual JForex Post rating: 1   New post Posted: Wed 08 Mar, 2017, 17:04 
Visual JForex expert at Dukascopy
User avatar

User rating: 287
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1513
Location: Switzerland, Geneva
Hi,

This is definitely not the right method unless you know exactly what you're changing and where.
The easiest way is to to switch the default instrument from the run-time parameter window that comes in JForex platform when you start a local run or from instruments menu when using historical tester.
Image
Image


Attachments:
InstChange.JPG [53.72 KiB]
Downloaded 210 times
LocalRunInstr.JPG [33.94 KiB]
Downloaded 222 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: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Fri 01 Feb, 2019, 13:59 

User rating: 0
Joined: Wed 24 Jan, 2018, 19:56
Posts: 5
Location: GermanyGermany
Hi,

every strategy i created with an currency and tried to change it to CFD by switching the default instrument (or a new created variable) in the run-time parameter window couldnt be backtested proberly. The backtest gets slower and slower and after some minutes the backtest is so slow that you have to stop it. This happens only when I switch to CFDs, currencies run very smooth in backtest.
The strategy also doesnt open any position with CFDs. Currencies on the other hand are working fine.

Here is a simple strategy that doesnt seem to work with CFDs. Is there anybody who was able to switch any strategy from currencies to cfds? Is it possible?

Image


Attachments:
CFD.PNG [99.86 KiB]
Downloaded 84 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: Index and CFD trading with Visual JForex Post rating: 0   New post Posted: Tue 05 Feb, 2019, 16:59 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 932
Location: Ukraine, Kiev
Hello.

Yes, it is possible.
Please read posts above.


 

Jump to:  

cron
  © 1998-2011 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