Dukascopy
 
 
Wiki JStore Search Login

Multiple copies of strategy on multiple instruments
 Post subject: Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Fri 21 Aug, 2020, 18:25 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
I want to use multiple copies of my strategy on multiple pairs.Strategy actually places a pending orders on subscribed instruments but not 1 trade per instrument only.It places 3 or 4 (sometimes more) pendings order per 1 instrument.I want 1 order per instrument.

Any advice?


Attachments:
FiboTrader.vfs [70.99 KiB]
Downloaded 501 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 copies of strategy on multiple instruments Post rating: 0   New post Posted: Tue 25 Aug, 2020, 17:30 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
Problem resolved.Watch this: https://youtu.be/i5TD-UXNsDQ?list=PL2Xj ... akHWKM55EI


 
 Post subject: Re: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Wed 02 Sep, 2020, 13:13 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
But another problem is that other copy of my strategy moves stoploss on different instrument.It would be cool to implement Position Id checking in all filled trades.

Any advice?


 
 Post subject: Re: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Thu 03 Sep, 2020, 15:36 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

For that please check the Manual, point 7.6. How to identify and work with positions.
https://www.dukascopy.com/vfhelper/down ... _locale=EN

Regards.


 
 Post subject: Re: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Tue 08 Sep, 2020, 10:16 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
Thanks a lot Vadim for your answer, I have another question for you.

I have only one FiboTrader.java and i've made a multiple copies of Fibotrader.jfx to trade multiple pairs as you can see in the attached picture.

Is this correct or each pair must have it's own FiboTrader.java file ?


Attachments:
FiboTrader.vfs [76.51 KiB]
Downloaded 501 times
Screen Sharing Picture 8 Sep 2020 11.00.31 GMT+2.png [148.52 KiB]
Downloaded 483 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: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Wed 09 Sep, 2020, 09:58 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Different names of the strategy will help you to control it on different settings.
More about running the strategies https://www.dukascopy.com/wiki/en/forex ... tegies-tab

Regards.


 
 Post subject: Re: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Wed 09 Sep, 2020, 14:30 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
I've made some changes again.

Now every strategy has its own .java file and in every strategy I've replaced defaultInstrument variable with fixed instrument.

But problem is that one strategy influences other pair and orders are closed immediately after filled.

USDJPY strategy closed GBP/CAD order.

I think there must be some bug in position viewer omitting the comments of the open trades.


Attachments:
Untitled.png [30.82 KiB]
Downloaded 502 times
Screen Shot 2020-09-09 at 15.29.16.png [456.07 KiB]
Downloaded 476 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: (Solved) Multiple copies of strategy on multiple instruments Post rating: 0   New post Posted: Tue 22 Sep, 2020, 15:47 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
vadim_berezhnoj wrote:
For that please check the Manual, point 7.6. How to identify and work with positions.
https://www.dukascopy.com/vfhelper/down ... _locale=EN


Regards.


 

Jump to:  

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