Dukascopy
 
 
Wiki JStore Search Login

Strategy trigger multiple orders
 Post subject: Strategy trigger multiple orders Post rating: 0   New post Posted: Tue 15 Oct, 2013, 13:33 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Hello,

I have one strategy started on remote server (demo and live), but now I faced with strange issue. When buy or sell conditions met, strategy sent multiple orders to platform!? I was trying avoid this with IF block (All Positions.Positions Amount < 1), Last Trade Message (IF last message = filled), also tried with Assign block after BUY/SELL block submit order. None of that work. When test strategy in VJF and JF environment, everything work correct. Strategy open only ONE position.
I don't know, maybe I doing something wrong, but I'm still confused.

So, questions are:

1. what is best approach to disable opening another position after position is already open?
2. why differences between test strategy and start strategy on remote server?

regards,

Image
Image


Attachments:
StrategyLog.jpg [247.71 KiB]
Downloaded 686 times
MultipleOrders.jpg [20.05 KiB]
Downloaded 644 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: Strategy trigger multiple orders Post rating: 0   New post Posted: Tue 15 Oct, 2013, 14:25 
User avatar

User rating: 3
Joined: Fri 28 Jun, 2013, 17:16
Posts: 39
mad_max wrote:
Hello,

I have one strategy started on remote server (demo and live), but now I faced with strange issue. When buy or sell conditions met, strategy sent multiple orders to platform!? I was trying avoid this with IF block (All Positions.Positions Amount < 1), Last Trade Message (IF last message = filled), also tried with Assign block after BUY/SELL block submit order. None of that work. When test strategy in VJF and JF environment, everything work correct. Strategy open only ONE position.
I don't know, maybe I doing something wrong, but I'm still confused.

So, questions are:

1. what is best approach to disable opening another position after position is already open?
2. why differences between test strategy and start strategy on remote server?

regards,

Image
Image


Search my posts


 
 Post subject: Re: Strategy trigger multiple orders Post rating: 0   New post Posted: Tue 15 Oct, 2013, 18:12 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Did you use this: ?

Image
or when you are calculating on tick vice versa


Attachments:
Instrument_only.png [9.89 KiB]
Downloaded 612 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: Strategy trigger multiple orders Post rating: 0   New post Posted: Wed 16 Oct, 2013, 08:53 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
dirk_r1 wrote:
Did you use this: ?

Image
or when you are calculating on tick vice versa

Hello Dirk and all...

At the beginning of the strategy I always put an "If block" as a filtering rate. Whether it is the starting point of the strategy is the Candle or Tick. After that comes the IF block to make sure there is an open position.


Image

regards


Attachments:
Filter.jpg [98.4 KiB]
Downloaded 614 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: Strategy trigger multiple orders Post rating: 0   New post Posted: Wed 16 Oct, 2013, 09:24 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Well it's hard to tell whats going wrong without providing the .vfs file. It's just guessing :D


 
 Post subject: Re: Strategy trigger multiple orders Post rating: 0   New post Posted: Wed 16 Oct, 2013, 09:39 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
dirk_r1 wrote:
Greetings!

Well it's hard to tell whats going wrong without providing the .vfs file. It's just guessing :D


Was try to upload strategy earlier, but got error #2030!?
Luckily, almost forgot my exported version in HD. So here it is...
It is kinda complicated :lol: but think you'll get a clue.

regards


Attachments:
TTrsi_v5.vfs [74.8 KiB]
Downloaded 291 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.
 

Jump to:  

  © 1998-2025 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