|
How to close a pending order if an open position takes profit |
seancappone
|
Post subject: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Fri 14 Jun, 2013, 21:34
|
|
User rating: 0
Joined: Fri 14 Jun, 2013, 21:26 Posts: 35 Location: Italy, Turin
|
as you see in the title... I have to fix this stuff...
|
|
|
|
|
vadim_berezhnoj
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Mon 17 Jun, 2013, 12:26
|
|
Visual JForex expert at Dukascopy | |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Please be more specific about your request.
|
|
|
|
|
Para
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Fri 21 Jun, 2013, 13:26
|
|
User rating: 6
Joined: Fri 12 Apr, 2013, 14:08 Posts: 88 Location: FranceFrance
|
|
|
|
|
Bruno_Grunberg
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Fri 21 Jun, 2013, 16:50
|
|
Site Administrator | |
User rating: ∞
Joined: Fri 21 Jun, 2013, 16:50 Posts: 197 Location: FranceFrance
|
Hello
I have change my login name. Para is now Bruno Grunberg (my real name).
|
|
|
|
|
seancappone
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Fri 21 Jun, 2013, 20:27
|
|
User rating: 0
Joined: Fri 14 Jun, 2013, 21:26 Posts: 35 Location: Italy, Turin
|
Yes, was something like that, but to semplify my strategy here is the new fix I need example open position 1 IF pos1 TP-> Restart strategy pos1 SL-> open @mkt pos 2 IF pos2 TP->restart strategy pos2 SL-> open @mkt pos3 any ideas? Shall you also please give me a screen with the boxes that I need to force the strategy to start this chain 1 time per time? I mean until all the positions (pos1, 2,3...) are closed (tp or sl), so we have 0 position in machine, it dosn't open new pos1 .......
|
|
|
|
|
vadim_berezhnoj
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Mon 24 Jun, 2013, 10:01
|
|
Visual JForex expert at Dukascopy | |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Greeting. Sorry, but it is hard to understand your request. I`ll give you example and you will try to use it in your strategy. If pos2 was closed with positive P&l then open at market pos3. In logic of program it would be: If trade event happened with pos2 (compare position IDs) and TradeEvent was position close and Position was in profit then open at market.
Attachments: |
Pic1.png [195.95 KiB]
Downloaded 596 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.
|
|
|
|
|
|
seancappone
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Mon 24 Jun, 2013, 13:21
|
|
User rating: 0
Joined: Fri 14 Jun, 2013, 21:26 Posts: 35 Location: Italy, Turin
|
vadim_berezhnoj wrote: Greeting. Sorry, but it is hard to understand your request. I`ll give you example and you will try to use it in your strategy. If pos2 was closed with positive P&l then open at market pos3. In logic of program it would be: If trade event happened with pos2 (compare position IDs) and TradeEvent was position close and Position was in profit then open at market. and if position was in loss? I mean, I want to open the new position only if I reach a stop loss price
|
|
|
|
|
seancappone
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Mon 24 Jun, 2013, 20:00
|
|
User rating: 0
Joined: Fri 14 Jun, 2013, 21:26 Posts: 35 Location: Italy, Turin
|
I discovered it on my way if it's in loss, anyway thanks a lot =)
|
|
|
|
|
vadim_berezhnoj
|
Post subject: Re: How to close a pending order if an open position takes profit |
Post rating: 0
|
Posted: Tue 25 Jun, 2013, 11:17
|
|
Visual JForex expert at Dukascopy | |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|