Dukascopy
 
 
Wiki JStore Search Login

Two strategies running at the same time with Pending Orders, ned help
 Post subject: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Thu 14 Nov, 2013, 10:53 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Hi;

I am running two differents strategies created by visualjforex in my real acount Jforex. The strategies works the same but one place 2 pending orders BUY STOP and the other estrategy place 2 pending orders SELL STOP.

The estrategies place pending orders if there are no Open Position and if there are no Pending Position already at that time (other ways If i dont place those 2 conditions IF its place each minute two new pending orders...so in cuple minutes place a lot orders and thats a caos). Each minute calculate those if blocks and check ok the conditions in order to enter or not 2 new pending open orders in each strategy independently.

This is how IF blocks make posible the strategy (for buy strategy) same for the other strategy but sell stop pending open orders). Thats right, and works ok all day long but running just one at a time and not together like I want to.
Image

But the problem that I got is that when running together both strategies (lests call them, pending buy and pending sell strategies) Dont place the four pending orders when conditions price is ok, just place 2 pending orders of 1 estrategy. I have to go to Positions bottom at jforex platform and select all the positions and cancel all the positions at Jforex, then at that milisecond time place the four pending orders like should be done at the beguin when I ran the strategies first time (2 pending buy and 2 pending sell).

I think that because the strategy IF open position=0 and IF pending position=0, the JFOREX even there are two diferrent programs running, the jforex undestood that there are already 2 pending position (lest say for example 2 pending from the buy strategy file) so dont place the 2 pending orders of the other strategy file. Also i have other strategies to work together at a time so worry me that doesnt work independently each strategy at the same running time.

Do you have any ideas about how to make works together both strategies?

thanks a lot. :?


Attachments:
pending_orders_positions_amount.png [100.45 KiB]
Downloaded 848 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Tue 19 Nov, 2013, 08:41 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Hi;

Also even if I have just one strategy running (created in vjforex) in real acount Jforex, and I put pending orders by hand NOT EA (manual trading) so the strategy DO NOT beguin at all because allready there are pending orders at jforex.

Any help, because I ned to trade with more thant one pending orders and so on.

By the way I just got started in Netbeans, you think will be better for make the EA in java rather than Visualjforex, I apreciated your opinion as an expert.

thanks


 
 Post subject: Re: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Tue 19 Nov, 2013, 11:46 
Visual JForex expert at Dukascopy
User avatar

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

As far as I understood you can merge your 2 strategies in a single one:
You need to add a filter in order to recognize BuyStop pending orders from Sell Stop ones, it could be done as follow:
Image
out of the multiple action block you can place your conditions. You could also set your open position number to more than zero or to set an output variable to your Pending open blocks in order to identify them : and then : IF pending open is filled or cancelled (depending on your conditions) move forward ...

Hope this helps


Attachments:
SellStop_BuyStop filter.JPG [107.73 KiB]
Downloaded 821 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Tue 19 Nov, 2013, 11:52 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Following your latest question about Netbeans:
Visual JForex is JAVA based: A strategy built using VJF blocks is currently 100% JAVA based (behind the scene :))

You could also edit your VJF code and workout its performance if you wish.


 
 Post subject: Re: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Fri 22 Nov, 2013, 12:52 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
amine_chourou wrote:
Hi,

As far as I understood you can merge your 2 strategies in a single one:
You need to add a filter in order to recognize BuyStop pending orders from Sell Stop ones, it could be done as follow:
Image
out of the multiple action block you can place your conditions. You could also set your open position number to more than zero or to set an output variable to your Pending open blocks in order to identify them : and then : IF pending open is filled or cancelled (depending on your conditions) move forward ...

Hope this helps


Hi Amine;

Thank you for this help, I like the idea of split the pending orders in BUY and Sell orders. I remake the strategy but when I set this new blocks that you show me didnt work at all the strategy at jforex dont place any orders. If I take off those blocks put a lot of pending orders each minute (that is my strategy headache problem).

I attach the vfs strategy chance1 with comments about what works and what doesnt. Could you take a look and show me how I should implement your idea, because i like it. :)

In order to trade in real jforex I ned to put pending orders 2 buy and 2 sell all the time those are closed. No more than two buy and two sell. But of course I ned to trade together with other strategies so its important what I told before about. (I think that because the strategy IF open position=0 and IF pending position=0, the JFOREX even there are two diferrent programs running, the jforex undestood that there are already 2 pending position (lest say for example 2 pending from the buy strategy file) so dont place the 2 pending orders of the other strategy file. Also i have other strategies to work together at a time so worry me that doesnt work independently each strategy at the same running time.)


Attachments:
Chance1.vfs [63.44 KiB]
Downloaded 361 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 1   New post Posted: Fri 22 Nov, 2013, 18:35 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Please correct me if I am wrong:

Here is at least the logic as far as I understand...

Though, there is a bug which will be removed next week (in assign-block)

Nice weekend!


Attachments:
Chance1_1.vfs [73.73 KiB]
Downloaded 374 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Mon 25 Nov, 2013, 09:09 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
dirk_r1 wrote:
Greetings!

Please correct me if I am wrong:

Here is at least the logic as far as I understand...

Though, there is a bug which will be removed next week (in assign-block)

Nice weekend!


Hi Dirk;

I have no idea about the assign bug that you said. The problem that I got is about the Amine´s idea about how to split the buy pending orders from the sell pending orders, so I can trade several pending orders at one time with diferent strategies at ones.

Thanks for your help, I run the strategy and place 10 sell pending orders and 10 buy pending orders. And when the orders get filled and stoped out or got take profits do not place 2 new pending orders I think you told me that is a bug that will be fixed this week? right?

Also you are asking me about: This logic makes no sense: You enter when Price>low and Price <High - so you enter either

that if blocks is for place a new pending buy order(buy stop by ask) just when the price is lower than the entry price (higher), and for sell pending order ( sell stop by bid) when the price is bigger than entry price (lower)...so i think that would be ok...the only problem is the 10 pending orders that place, it shold be place just 2 buy and 2 sell.

Thanks for your help.


 
 Post subject: Re: Two strategies running at the same time with Pending Orders, ned help Post rating: 1   New post Posted: Mon 25 Nov, 2013, 18:20 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Ok. Great. I learned something :)

Please tell me if it is was your searching for...

I am looking forward hearing from you :)


Attachments:
Chance2.vfs [67.07 KiB]
Downloaded 335 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Tue 26 Nov, 2013, 16:17 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Thank you so much for your reply. You did a good job with the strategy.

I have been testing it all day long, and now the strategy put 2 pending sell orders and 2 pending buy orders at ones at same time, so thats just great. Really it is.

But I saw that when the 2 pending orders get filled either the position got win (tp) or get loss (sl) the strategy place no 2 but FOUR new pending orders. I dont get why happens that, why doesnt just put 2 new pending orders sell, why four? It is that about the assing bug that you told me? Could you fix it? thanks in advance.

This is the mesage from jforex as you can see:
2013-11-26 15:10:52 Position 56544986 ENTRY #221405752 price changed from 1.35537 USD to 1.3535 USD
2013-11-26 15:10:51 Order #221405752 ENTRY BUY 1000 EUR/USD @ LIMIT 1.3540 IF ASK => 1.3535 had been sent at 2013-11-26 15:10:51 manually
2013-11-26 15:10:47 Position 56544984 ENTRY #221405747 price changed from 1.35537 USD to 1.3535 USD
2013-11-26 15:10:47 Order #221405747 ENTRY BUY 1000 EUR/USD @ LIMIT 1.3540 IF ASK => 1.3535 had been sent at 2013-11-26 15:10:47 manually
2013-11-26 15:10:42 Position 56544986 STOP LOSS #221405753 price changed from 1.35487 USD to 1.3523 USD
2013-11-26 15:10:42 Order #221405752 ENTRY BUY 1000 EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 had been sent at 2013-11-26 15:10:42 manually
2013-11-26 15:10:35 Position 56544984 STOP LOSS #221405749 price changed from 1.35487 USD to 1.35235 USD
2013-11-26 15:10:35 Order #221405747 ENTRY BUY 1000 EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 had been sent at 2013-11-26 15:10:35 manually
2013-11-26 14:46:00 Order ACCEPTED: #221429763 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.3511 IF ASK <= 1.3511 - Position #56556999
2013-11-26 14:46:00 Order ACCEPTED: #221429762 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.3526 - Position #56556999
2013-11-26 14:46:00 Order ACCEPTED: #221429761 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.3516 IF BID <= 1.3521 - Position #56556999
2013-11-26 14:46:00 Order ACCEPTED: #221429760 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.3511 IF ASK <= 1.3511 - Position #56556998
2013-11-26 14:46:00 Order ACCEPTED: #221429759 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.3526 - Position #56556998
2013-11-26 14:46:00 Order ACCEPTED: #221429758 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.3516 IF BID <= 1.3521 - Position #56556998
2013-11-26 14:46:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35160 IF BID <= 1.3521 is sent at 2013-11-26 14:45:59.970 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:46:00 Order ACCEPTED: #221429757 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.3511 IF ASK <= 1.3511 - Position #56556997
2013-11-26 14:46:00 Order ACCEPTED: #221429756 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.3526 - Position #56556997
2013-11-26 14:46:00 Order ACCEPTED: #221429755 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.3516 IF BID <= 1.3521 - Position #56556997
2013-11-26 14:46:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35160 IF BID <= 1.3521 is sent at 2013-11-26 14:45:59.905 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:46:00 Order ACCEPTED: #221429754 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.3511 IF ASK <= 1.3511 - Position #56556996
2013-11-26 14:46:00 Order ACCEPTED: #221429753 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.3526 - Position #56556996
2013-11-26 14:46:00 Order ACCEPTED: #221429752 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.3516 IF BID <= 1.3521 - Position #56556996
2013-11-26 14:45:59 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35160 IF BID <= 1.3521 is sent at 2013-11-26 14:45:59.797 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:45:59 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35160 IF BID <= 1.3521 is sent at 2013-11-26 14:45:59.794 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:45:08 Order FILLED at 1.35439 USD (#221422649 STOP LOSS BUY 0.001 mil. EUR/USD IF ASK => 1.35434) - Position #56555545
2013-11-26 14:45:08 Order FILLED at 1.35439 USD (#221422637 STOP LOSS BUY 0.001 mil. EUR/USD IF ASK => 1.35434) - Position #56555541
2013-11-26 14:45:08 Order FILLED at 1.35439 USD (#221422652 STOP LOSS BUY 0.001 mil. EUR/USD IF ASK => 1.35434) - Position #56555546
2013-11-26 14:45:08 Order FILLED at 1.35439 USD (#221422633 STOP LOSS BUY 0.001 mil. EUR/USD IF ASK => 1.35434) - Position #56555540
2013-11-26 14:45:05 Order FILLED at 1.35339 USD (#221422635 Parent Order #221422632 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334) - Position #56555540
2013-11-26 14:45:05 Order FILLED at 1.35339 USD (#221422654 Parent Order #221422648 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334) - Position #56555545
2013-11-26 14:45:05 Order FILLED at 1.35339 USD (#221422656 Parent Order #221422651 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334) - Position #56555546
2013-11-26 14:45:05 Order FILLED at 1.35339 USD (#221422639 Parent Order #221422636 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334) - Position #56555541
2013-11-26 14:08:00 Order ACCEPTED: #221422656 Parent Order #221422651 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334 - Position #56555546
2013-11-26 14:08:00 Order has been rejected by interbank party. System will resubmit this order.
2013-11-26 14:08:00 Order ACCEPTED: #221422654 Parent Order #221422648 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334 - Position #56555545
2013-11-26 14:08:00 Order has been rejected by interbank party. System will resubmit this order.
2013-11-26 14:08:00 Order ACCEPTED: #221422653 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35284 IF ASK <= 1.35284 - Position #56555546
2013-11-26 14:08:00 Order ACCEPTED: #221422652 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35434 - Position #56555546
2013-11-26 14:08:00 Order ACCEPTED: #221422651 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 - Position #56555546
2013-11-26 14:08:00 Order ACCEPTED: #221422650 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35284 IF ASK <= 1.35284 - Position #56555545
2013-11-26 14:08:00 Order ACCEPTED: #221422649 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35434 - Position #56555545
2013-11-26 14:08:00 Order ACCEPTED: #221422648 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 - Position #56555545
2013-11-26 14:08:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 is sent at 2013-11-26 14:08:00.277 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:08:00 Order ACCEPTED: #221422639 Parent Order #221422636 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334 - Position #56555541
2013-11-26 14:08:00 Order has been rejected by interbank party. System will resubmit this order.
2013-11-26 14:08:00 Order ACCEPTED: #221422638 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35284 IF ASK <= 1.35284 - Position #56555541
2013-11-26 14:08:00 Order ACCEPTED: #221422637 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35434 - Position #56555541
2013-11-26 14:08:00 Order ACCEPTED: #221422636 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 - Position #56555541
2013-11-26 14:08:00 Order ACCEPTED: #221422635 Parent Order #221422632 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID => 1.35334 - Position #56555540
2013-11-26 14:08:00 Order has been rejected by interbank party. System will resubmit this order.
2013-11-26 14:08:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 is sent at 2013-11-26 14:08:00.196 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:08:00 Order ACCEPTED: #221422634 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35284 IF ASK <= 1.35284 - Position #56555540
2013-11-26 14:08:00 Order ACCEPTED: #221422633 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35434 - Position #56555540
2013-11-26 14:08:00 Order ACCEPTED: #221422632 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 - Position #56555540
2013-11-26 14:08:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 is sent at 2013-11-26 14:08:00.090 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:08:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35334 IF BID <= 1.35384 is sent at 2013-11-26 14:08:00.086 GMT by the strategy "Chance2": from the local computer
2013-11-26 14:07:41 Order FILLED at 1.35269 USD (#221405743 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35269 IF ASK <= 1.35269) - Position #56544982
2013-11-26 14:07:41 Order FILLED at 1.35269 USD (#221405746 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35269 IF ASK <= 1.35269) - Position #56544983
2013-11-26 14:02:11 Order FILLED at 1.35365 USD (#221405744 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369) - Position #56544983
2013-11-26 14:02:11 Order FILLED at 1.35365 USD (#221405741 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369) - Position #56544982
2013-11-26 11:55:01 Order ACCEPTED: #221405754 TAKE PROFIT SELL 0.001 mil. EUR/USD @ LIMIT 1.35637 IF BID => 1.35637 - Position #56544986
2013-11-26 11:55:01 Order ACCEPTED: #221405753 STOP LOSS SELL 0.001 mil. EUR/USD @ MKT IF BID <= 1.35487 - Position #56544986
2013-11-26 11:55:01 Order ACCEPTED: #221405752 ENTRY BUY 0.001 mil. EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 - Position #56544986
2013-11-26 11:55:00 Order ENTRY BUY 1000 EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 is sent at 2013-11-26 11:55:00.528 GMT by the strategy "Chance2": from the local computer
2013-11-26 11:55:00 Order ACCEPTED: #221405750 TAKE PROFIT SELL 0.001 mil. EUR/USD @ LIMIT 1.35637 IF BID => 1.35637 - Position #56544984
2013-11-26 11:55:00 Order ACCEPTED: #221405749 STOP LOSS SELL 0.001 mil. EUR/USD @ MKT IF BID <= 1.35487 - Position #56544984
2013-11-26 11:55:00 Order ACCEPTED: #221405747 ENTRY BUY 0.001 mil. EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 - Position #56544984
2013-11-26 11:55:00 Order ENTRY BUY1000 EUR/USD @ LIMIT 1.35587 IF ASK => 1.35537 is sent at 2013-11-26 11:55:00.363 GMT by the strategy "Chance2": from the local computer
2013-11-26 11:55:00 Order ACCEPTED: #221405746 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35269 IF ASK <= 1.35269 - Position #56544983
2013-11-26 11:55:00 Order ACCEPTED: #221405745 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35419 - Position #56544983
2013-11-26 11:55:00 Order ACCEPTED: #221405744 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369 - Position #56544983
2013-11-26 11:55:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369 is sent at 2013-11-26 11:55:00.226 GMT by the strategy "Chance2": from the local computer
2013-11-26 11:55:00 Order ACCEPTED: #221405743 TAKE PROFIT BUY 0.001 mil. EUR/USD @ LIMIT 1.35269 IF ASK <= 1.35269 - Position #56544982
2013-11-26 11:55:00 Order ACCEPTED: #221405742 STOP LOSS BUY 0.001 mil. EUR/USD @ MKT IF ASK => 1.35419 - Position #56544982
2013-11-26 11:55:00 Order ACCEPTED: #221405741 ENTRY SELL 0.001 mil. EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369 - Position #56544982
2013-11-26 11:55:00 Order ENTRY SELL 1000 EUR/USD @ LIMIT 1.35319 IF BID <= 1.35369 is sent at 2013-11-26 11:55:00.109 GMT by the strategy "Chance2": from the local computer
2013-11-26 11:54:39 Strategy "Chance2" Strategy ID: 65B6B0099FD3CFB08F0D667F0236FC4F is started at 2013-11-26 11:54:39.093 GMT on the local computer with parameters "defaultSlippage:"=[5], "defaultTakeProfit:"=[10], "defaultPeriod:"=[1 Min], "defaultTradeAmount:"=[0,001], "defaultStopLoss:"=[5], "defaultInstrument:"=[EUR/USD]
2013-11-26 11:54:39 Starting "Chance2" strategy at 2013-11-26 11:54:39.067 GMT on the local computer
Image


Attachments:
4pendingorders_sell.png [214.79 KiB]
Downloaded 674 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Thu 28 Nov, 2013, 11:45 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings.

Give me please some time to identify the problem.
I will come back to you once I found it.

Thx


 
 Post subject: Re: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Thu 28 Nov, 2013, 12:38 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Hi Dirk;

No problem take your time. I appreciate that.

Thanks


 
 Post subject: Re: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Thu 28 Nov, 2013, 13:12 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hi Guys.

When you check Position Amount it returns sum of all positions on account.
To get positions opened only by specific strategy you have to mark them with some kind of Strategy ID.
Following example always holds its own 3 positions.

download/file.php?mode=view&id=5176


Attachments:
StrategyID.vfs [31 KiB]
Downloaded 451 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: Two strategies running at the same time with Pending Orders, ned help Post rating: 0   New post Posted: Mon 02 Dec, 2013, 11:12 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
vadim_berezhnoj wrote:
Hi Guys.

When you check Position Amount it returns sum of all positions on account.
To get positions opened only by specific strategy you have to mark them with some kind of Strategy ID.
Following example always holds its own 3 positions.

download/file.php?mode=view&id=5176



Hi;

I change the strategy as your example but place each minute several pending orders. Did i get it right? could you take a look. thanks Vadim. Maybe your example just work for OPEN AT MARKET rather than pending orders?


Attachments:
Chance6.vfs [66.48 KiB]
Downloaded 402 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.
 

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