Dukascopy
 
 
Wiki JStore Search Login

manage orders with simple hedge strategy... error"Cannot create order with label that already exists"
 Post subject: manage orders with simple hedge strategy... error"Cannot create order with label that already exists" Post rating: 0   New post Posted: Sun 11 Oct, 2015, 23:42 
User avatar

User rating: 0
Joined: Mon 21 Sep, 2015, 21:50
Posts: 3
Location: ItalyItaly
hi everyone,

I am trying to build up a strategy that covers my entries in the market with hedge.
it should just submit pending orders ( sell or buy) every time a "trade event" of a opened order comes.
I am receiving this error " Cannot create order with label that already exists ".
I found a similar questions in the forum ... but is not for visual forex.. so i am not understanding well what i should do.
How can i manage labels of positions in a iteratively way in visual Jforex?
thanks.
i am not english... so hope you can understand....


 
 Post subject: Re: manage orders with simple hedge strategy... error"Cannot create order with label that already exists" Post rating: 0   New post Posted: Mon 12 Oct, 2015, 14:09 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi there,

Thanks for reaching out to us !
Well I'm sure there should be an example of what you described somewhere in this forum but can you please describe more the functional spec of your strategy and attach your progress in vfs format so that I can have a look ?

Thanks !


 
 Post subject: Re: manage orders with simple hedge strategy... error"Cannot create order with label that already exists" Post rating: 0   New post Posted: Mon 12 Oct, 2015, 19:42 
User avatar

User rating: 0
Joined: Mon 21 Sep, 2015, 21:50
Posts: 3
Location: ItalyItaly
hi,
thanks for answering me.
I attached .vjs file


regards


Attachments:
tocheck_hedge.vfs [34.5 KiB]
Downloaded 157 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: manage orders with simple hedge strategy... error"Cannot create order with label that already exists" Post rating: 0   New post Posted: Tue 13 Oct, 2015, 14:34 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Quote:
it should just submit pending orders ( sell or buy) every time a "trade event" of a opened order comes.

I saw that you worked on trade event start point but you need to know that the trade point start is triggered every time any message related to order/position submit is made including order creation, execution, change, cancellation. so basically you need to filter out the nature of the message if you don't need you conditions to be executed on any message that comes.
Can you please explain in details what are you expecting from the strategy to do ?

Thanks


 
 Post subject: Re: manage orders with simple hedge strategy... error"Cannot create order with label that already exists" Post rating: 0   New post Posted: Tue 13 Oct, 2015, 22:40 
User avatar

User rating: 0
Joined: Mon 21 Sep, 2015, 21:50
Posts: 3
Location: ItalyItaly
hi,
i am at the beginning so..... i can be totally wrong!
lets say i do my technical analysis on eur/usd chart and decide to open a position.
i would like to manage my manual order with an "hedge strategy" rather than a SL / TP. hopefully, in the worst case, i can lose less pips and so have a better risk rewards.

i have tried to put a filter on the amount of pending orders ( should be every time only one) but it doesn't work.I don't know why it just continue to open orders.
( at least i don't have the error about the label... )

i have notice that when a pending order is submitted/opened, it is characterized by the state: FILLED FULLY. i can't find that option when i use the variable state (STA) of the menu: trading event > trade message position

thank you.
regards


 

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