|
Attention! Read the forum rules carefully before posting a topic.
Submit JForex API bug reports in this forum only. Submit Converter issues in Converter Issues. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
strategies are stopped when opening an US based CFD chart |
ccadar
|
Post subject: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Sun 09 Jan, 2022, 11:55
|
|
User rating: 2
Joined: Mon 05 Nov, 2012, 11:56 Posts: 80 Location: Germany,
|
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
|
|
|
|
![](images/spacer.gif) |
mtnfx
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Thu 20 Jan, 2022, 11:40
|
|
User rating: 18
Joined: Thu 20 Apr, 2017, 22:42 Posts: 165 Location: Russian Federation,
|
|
|
|
![](images/spacer.gif) |
vadim_berezhnoj
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Thu 20 Jan, 2022, 17:48
|
|
Visual JForex expert at Dukascopy | ![User avatar](https://www.dukascopy.com/imageserver/img/873577ff108d2548ea46be1cf76852ff/60_3/image.jpg) |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
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.
|
|
|
|
![](images/spacer.gif) |
ccadar
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Thu 27 Jan, 2022, 07:54
|
|
User rating: 2
Joined: Mon 05 Nov, 2012, 11:56 Posts: 80 Location: Germany,
|
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.. ![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
|
|
|
|
![](images/spacer.gif) |
vadim_berezhnoj
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Fri 28 Jan, 2022, 17:01
|
|
Visual JForex expert at Dukascopy | ![User avatar](https://www.dukascopy.com/imageserver/img/873577ff108d2548ea46be1cf76852ff/60_3/image.jpg) |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
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.
|
|
|
|
![](images/spacer.gif) |
ccadar
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Sat 29 Jan, 2022, 08:15
|
|
User rating: 2
Joined: Mon 05 Nov, 2012, 11:56 Posts: 80 Location: Germany,
|
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 345 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.
|
|
|
|
|
![](images/spacer.gif) |
vadim_berezhnoj
|
Post subject: Re: strategies are stopped when opening an US based CFD chart |
Post rating: 0
|
Posted: Wed 09 Feb, 2022, 10:58
|
|
Visual JForex expert at Dukascopy | ![User avatar](https://www.dukascopy.com/imageserver/img/873577ff108d2548ea46be1cf76852ff/60_3/image.jpg) |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
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.
|
|
|
|
![](images/spacer.gif) |
|
Pages: [
1
]
|
|
|
|
|