|
How define specific position? |
uzin2
|
Post subject: How define specific position? |
Post rating: 0
|
Posted: Mon 18 Aug, 2014, 19:54
|
|
User rating: 0
Joined: Wed 13 Aug, 2014, 19:41 Posts: 5 Location: Poland,
|
Hello i try make strategy but i need define position and i dont know how can do it, for exampel, we put a few pending orders and now i want to make: if pending order 01 is open - cancel pending order 02, and if pending order 03 is open - put pending order 04, i dont know how i can define this specific pending order/position in block if.
|
|
|
|
|
amine_chourou
|
Post subject: Re: How define specific position? |
Post rating: 1
|
Posted: Tue 19 Aug, 2014, 10:39
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hiya,
For this, you can use the comment variable in your pending open block, then once the order is identified with a comment, you can use it in a condition.
Hope this helps.
|
|
|
|
|
uzin2
|
Post subject: Re: How define specific position? |
Post rating: 0
|
Posted: Tue 19 Aug, 2014, 20:44
|
|
User rating: 0
Joined: Wed 13 Aug, 2014, 19:41 Posts: 5 Location: Poland,
|
Something like that? This not working, can U check this please?
Attachments: |
qazxsw.vfs [36.47 KiB]
Downloaded 183 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.
|
|
|
|
|
|
amine_chourou
|
Post subject: Re: How define specific position? |
Post rating: 1
|
Posted: Wed 20 Aug, 2014, 09:39
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
After looking to your example, your idea could be easily achieved simply using position variables (Buy001, Sell001) you can use several pending open orders and identify them with position variables then you manage these positions accordingly: Once Buy001 is filled then cancel Sell001, you can also add additional position variables that identifies your 'pending order' block (I assume that you'll set another calculation conditions if you'll work with many entries). The comment variable use here is not that functional, you can delete it.
If you need any help, please right down your conditions and send us your strategy and we'll do our best to help you.
Thanks
|
|
|
|
|
uzin2
|
Post subject: Re: How define specific position? |
Post rating: 0
|
Posted: Wed 20 Aug, 2014, 20:42
|
|
User rating: 0
Joined: Wed 13 Aug, 2014, 19:41 Posts: 5 Location: Poland,
|
This is one part of my strategy which i m trying build, This should work like:
If pending orders buy001 and sell001 not exist - set pending orders buy001 and sell001 10pips from actual price, if buy001 is open - cancel sell001 and if sell001 open - cancel buy001
this is only one part of strategy, but i dont have idea how obtain what i want.
You wrote: "you can use several pending open orders and identify them with position variables then you manage these positions accordingly: Once Buy001 is filled then cancel Sell001"
I dont know which variables in block "if" i should use, for exampel: i want something like that: if buy001 is open, cancel sell001, i tried set condition - in block "if" i used in peremetr 1 - buy001 --- position amount and "1" in parametr 2 but this not working. It is possible to You build mini strategy with guidelines: if pending order buy001 not exist, set it 10 pips above actual price, and if buy001 is open, set buy002 10 pips above actual price?
Thank You for help Regards
|
|
|
|
|
amine_chourou
|
Post subject: Re: How define specific position? |
Post rating: 1
|
Posted: Wed 01 Oct, 2014, 10:39
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi there, Sorry for the late reply, your post somehow fell between the cracks That said, your need looks easily feasible at first glance, please check the attached file and advise. We'll make sure providing you with the quickest reply for your next posts. Thanks !
Attachments: |
EntrySample.vfs [26.75 KiB]
Downloaded 212 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
]
|
|
|
|
|