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

Multiple copies of strategy on multiple instruments
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=57423
Page 1 of 1

Author:  funkyman [ Fri 21 Aug, 2020, 18:25 ]
Post subject:  Multiple copies of strategy on multiple instruments

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 503 times

Author:  funkyman [ Tue 25 Aug, 2020, 17:30 ]
Post subject:  Re: Multiple copies of strategy on multiple instruments

Problem resolved.Watch this: https://youtu.be/i5TD-UXNsDQ?list=PL2Xj ... akHWKM55EI

Author:  funkyman [ Wed 02 Sep, 2020, 13:13 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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?

Author:  vadim_berezhnoj [ Thu 03 Sep, 2020, 15:36 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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.

Author:  funkyman [ Tue 08 Sep, 2020, 10:16 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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 504 times
Screen Sharing Picture 8 Sep 2020 11.00.31 GMT+2.png [148.52 KiB]
Downloaded 486 times

Author:  vadim_berezhnoj [ Wed 09 Sep, 2020, 09:58 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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.

Author:  funkyman [ Wed 09 Sep, 2020, 14:30 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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 504 times
Screen Shot 2020-09-09 at 15.29.16.png [456.07 KiB]
Downloaded 478 times

Author:  vadim_berezhnoj [ Tue 22 Sep, 2020, 15:47 ]
Post subject:  Re: (Solved) Multiple copies of strategy on multiple instruments

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.

  Page 1 of 1