Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

How to close a pending order if an open position takes profit
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=49415
Page 1 of 1

Author:  seancappone [ Fri 14 Jun, 2013, 21:34 ]
Post subject:  How to close a pending order if an open position takes profit

as you see in the title... I have to fix this stuff...

Image

Author:  vadim_berezhnoj [ Mon 17 Jun, 2013, 12:26 ]
Post subject:  Re: How to close a pending order if an open position takes profit

Please be more specific about your request.

Author:  Para [ Fri 21 Jun, 2013, 13:26 ]
Post subject:  Re: How to close a pending order if an open position takes profit

Does that answer your question?

Image

Attachments:
Capture.JPG [171.37 KiB]
Downloaded 685 times
Capture.JPG [148.53 KiB]
Downloaded 395 times
WIIGO.vfs [40.67 KiB]
Downloaded 302 times

Author:  Bruno_Grunberg [ Fri 21 Jun, 2013, 16:50 ]
Post subject:  Re: How to close a pending order if an open position takes profit

Hello

I have change my login name. Para is now Bruno Grunberg (my real name).

Author:  seancappone [ Fri 21 Jun, 2013, 20:27 ]
Post subject:  Re: How to close a pending order if an open position takes profit

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

Image

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
.......

Author:  vadim_berezhnoj [ Mon 24 Jun, 2013, 10:01 ]
Post subject:  Re: How to close a pending order if an open position takes profit

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.

Image

Attachments:
Pic1.png [195.95 KiB]
Downloaded 596 times

Author:  seancappone [ Mon 24 Jun, 2013, 13:21 ]
Post subject:  Re: How to close a pending order if an open position takes profit

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.

Image



and if position was in loss? I mean, I want to open the new position only if I reach a stop loss price

Author:  seancappone [ Mon 24 Jun, 2013, 20:00 ]
Post subject:  Re: How to close a pending order if an open position takes profit

I discovered it on my way if it's in loss, anyway thanks a lot =)

Author:  vadim_berezhnoj [ Tue 25 Jun, 2013, 11:17 ]
Post subject:  Re: How to close a pending order if an open position takes profit

You are welcome

  Page 1 of 1