Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

strategies are stopped when opening an US based CFD chart
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=57766
Page 1 of 1

Author:  ccadar [ Sun 09 Jan, 2022, 11:55 ]
Post subject:  strategies are stopped when opening an US based CFD chart

While my strategy is running I open an US CFD chart in Jforex for example FB CFD then my strategy is being stopped with the error message:
"The following instruments are forbidden for automated trading. Unsubscribe from FB.US/USD before starting strategy."

I'm not using any US CFD in my strategies...please correct this behavior

Author:  mtnfx [ Thu 20 Jan, 2022, 11:40 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

+1 to solve that problem ...

However I feel Ducascopy just does not care about clients :( - problems may stay for ages without reply :(
I see you've raised that issue almost year ago
https://www.dukascopy.com/swiss/english ... hp?t=57665

Author:  vadim_berezhnoj [ Thu 20 Jan, 2022, 17:48 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

Hello.

Strategy started on JForex platform is automatically subscribed to all the instruments that are already subscribed in the Instruments List.
So to run it, there has to be no US stocks and ETFs in that list.

That is not a "problem", it is a restriction, and it is here to stay forever.

Regards.

Author:  ccadar [ Thu 27 Jan, 2022, 07:54 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

For COFFEE.CMD this is handled in a very polite way.. no strategy is killed and I can still open a chart of it at the same time ... but when trying to subscribe to it I get--> "It's not allowed to subscribe to COFFEE.CMD/USD instrument"

I don't understand why this restriction is not implemented at "IOrder" function level instead.. :roll:

Author:  vadim_berezhnoj [ Fri 28 Jan, 2022, 17:01 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

COFFEE.CMD is a commodity, not US stock or ETF, so strategy can subscribe and trade it.

The restriction includes trading the instruments and automated retrieving of live and historical data.
So it was implemented in subscription and not only in IOrder method.

Please explain where you have received the error "It's not allowed to subscribe to COFFEE.CMD/USD instrument"?

Regards.

Author:  ccadar [ Sat 29 Jan, 2022, 08:15 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

Hello,

Please find attached a small test program..you can try it yourself... it gave out following at subscription:


1. java.lang.IllegalArgumentException: You cannot subscribe to: AMZN.US/USD - instruments are forbidden for automated trading

2. It's not allowed to subscribe to COFFEE.CMD/USD instrument

I don't want to make automatic trading for these instruments just to subscribe to them for my alarm strategy..

I'm not aware of any US law for forbidding CFDs for automatic trading that's why I don't understand this Dukascopy policy...if they want to forbid automatic trading then please implement this restriction on calling the IOrder functions and let us use their history data ..

Attachments:
SingleSimpleFeedTest.java [1.29 KiB]
Downloaded 300 times

Author:  vadim_berezhnoj [ Wed 09 Feb, 2022, 10:58 ]
Post subject:  Re: strategies are stopped when opening an US based CFD chart

1. US stocks and ETFs are forbidder for the strategy to subscribe. These are requirements of liquidity providers.

2. To subscribe to the Coffee CFD please use the code Instrument.fromString("COFFEE.CMD/USX"). Last letter X, not D.

Kind Regards.

  Page 1 of 1