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

Take profit is changing.
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=51757
Page 1 of 1

Author:  Maxim_Lobanov [ Thu 09 Oct, 2014, 20:24 ]
Post subject:  Take profit is changing.

Good evening! Could you help me please.

buy order opened by market price. From this price we need to add 10pips to open buy stop. If buy stop order opened the common take profit is changing.


Thank you very much!
Image

Attachments:
GBPjpy1.jpg [129.7 KiB]
Downloaded 620 times
GbpJpy_1_01.vfs [36.01 KiB]
Downloaded 83 times
GBPjpy.jpg [131.82 KiB]
Downloaded 271 times

Author:  amine_chourou [ Fri 10 Oct, 2014, 10:11 ]
Post subject:  Re: Take profit is changing.

Greetings,

thanks for your post. Can you please provide more details regarding your request:
When the pending open is triggered, which TP will be changed ? the one related to the first market order or the the one related the pending open ?
How the TP order has to be changed ? following which condition (s) or calculation ?

Thanks

Author:  amine_chourou [ Fri 10 Oct, 2014, 14:07 ]
Post subject:  Re: Take profit is changing.

Your previous post is now pasted here:

[ I accidentally locked the topic and now will continue here.
viewtopic.php?f=146&t=51757

When the pending open is triggered, which TP will be changed? the one related to the first market order or the the one related the pending open ?
- Both

How the TP order has to be changed ? following which condition (s) or calculation ?
- First order – t/p 10pp
-After the opening of buy stop: first order t/p = 0, second order t/p = 10pp.]

When you say : "After the opening of buy stop: first order t/p = 0" this means that the first TP should be changed to 0pips ? which mean closing immedialtely the previous position once the pending order is triggered. Is this correct ?

Author:  Maxim_Lobanov [ Fri 10 Oct, 2014, 14:29 ]
Post subject:  Re: Take profit is changing.

1)opened the first buy order in the market. 173.30
2)After the opening of buy stop 173.20
3)first byu order t/p = 0 , second order t/p = 10pp

Thank you for your patience!

Author:  amine_chourou [ Fri 10 Oct, 2014, 15:44 ]
Post subject:  Re: Take profit is changing.

Hi,
from your statement:
first byu order t/p = 0 , second order t/p = 10pp

As per my understanding, a TP = 0 is an instant position closing as the the TP will be changed to the current market price and therefore executed. In case you mean another thing please provide more details/explanations.

I've changed your previous example and increased the TP pending order for testing purpose as 0.1pip for JPY based currency is quite small. I also changed the calculation way as you were considering the number of positions in a price calculation while you probably meant the open price. In case you meant something else; please advice./

Thanks

Attachments:
GbpJpy_1_02.vfs [51.73 KiB]
Downloaded 91 times

Author:  Maxim_Lobanov [ Fri 10 Oct, 2014, 17:51 ]
Post subject:  Re: Take profit is changing.

Thanks
I talked about the other.
the pictures will be more accessible.

I corrected the error in my program

Image
Image

Attachments:
3_1.jpg [98.67 KiB]
Downloaded 550 times
2_1.jpg [95.29 KiB]
Downloaded 551 times

Author:  Maxim_Lobanov [ Fri 10 Oct, 2014, 19:08 ]
Post subject:  Re: Take profit is changing.

I corrected the error in my program.

Please help me . How do I transfer take profit, as pictured in the picture.

Thank you very much!

Image

Attachments:
GbpJpy_1_03.vfs [52.43 KiB]
Downloaded 91 times
GbpJpy_1_03.vfs [47.49 KiB]
Downloaded 93 times
1_1.jpg [129.5 KiB]
Downloaded 615 times

Author:  amine_chourou [ Mon 13 Oct, 2014, 08:55 ]
Post subject:  Re: Take profit is changing.

Hi there,

As per my understanding, here is how to change the TP as you shown in your previous screenshot:

Image

Hope this helps otherwise feel free to post your question in the Russian section of VJF forum:
viewforum.php?f=175

Attachments:
TP_Price.JPG [72.4 KiB]
Downloaded 553 times

Author:  Maxim_Lobanov [ Thu 16 Oct, 2014, 18:42 ]
Post subject:  Re: Take profit is changing.

Thank you very much! I understood everything and I succeeded!

Author:  Maxim_Lobanov [ Tue 21 Oct, 2014, 19:26 ]
Post subject:  Re: Take profit is changing.

Good evening! Could you help me please.

1. After the closing of the order all pending orders must be deleted.
2. Is it possible to do this through the command "if long.state- closed"?
I am trying to do it through this command but unsuccessfully

If test strategii displays an error.
Image

Attachments:
GbpJpy_2_01.vfs [63.28 KiB]
Downloaded 91 times
error.png [102.95 KiB]
Downloaded 404 times

Author:  amine_chourou [ Wed 22 Oct, 2014, 15:56 ]
Post subject:  Re: Take profit is changing.

Hi there,

You have several layers of pending order in your strategy and I'm not sure which order should be filled (Market?V2/v3? ...). To help you, I've rebuilt your strategy and included some modifications to avoid the errors. Please review it and feel free to modify it to meet your needs.

Attachments:
GBPJPY_1_03.vfs [65.3 KiB]
Downloaded 98 times

  Page 1 of 1