|
Strategy trigger multiple orders |
mad_max
|
Post subject: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Tue 15 Oct, 2013, 13:33
|
|
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,  
Attachments: |
StrategyLog.jpg [247.71 KiB]
Downloaded 685 times
|
MultipleOrders.jpg [20.05 KiB]
Downloaded 643 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.
|
|
|
|
|
 |
RICHDAD
|
Post subject: Re: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Tue 15 Oct, 2013, 14:25
|
|
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,   Search my posts
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Tue 15 Oct, 2013, 18:12
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Did you use this: ?  or when you are calculating on tick vice versa
Attachments: |
Instrument_only.png [9.89 KiB]
Downloaded 611 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.
|
|
|
|
|
 |
mad_max
|
Post subject: Re: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Wed 16 Oct, 2013, 08:53
|
|
User rating: 0
Joined: Mon 07 May, 2012, 07:24 Posts: 69 Location: CroatiaCroatia
|
dirk_r1 wrote: Did you use this: ?  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.  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.
|
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Wed 16 Oct, 2013, 09:24
|
|
Visual JForex expert at Dukascopy |  |
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 
|
|
|
|
 |
mad_max
|
Post subject: Re: Strategy trigger multiple orders |
Post rating: 0
|
Posted: Wed 16 Oct, 2013, 09:39
|
|
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  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  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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|