Dukascopy
 
 
Wiki JStore Search Login

How to create a Loop Pending Open orders in VisualJForex?
 Post subject: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Mon 12 Aug, 2013, 11:25 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Dear Dukascopy friends and soport team:

I have a question about How to create a strategy that repeat the Pending Open again and again But when the position (buy or sell pending open) get stopped out or took profit price hit. (that means that the PENDING OPEN block had already finish and when the price get again to the same price level of the Pending Open block, the process beguin again. Always with one position open until hit the TP or SL.

When I work with the LOOP VIEWER block it works like and endless Loop :!: , as you imagine the program dont wait to stop loss or take profit to enter a new pending open, just buy or sell new and new pending opens all the time and get margin call. :(

So would you mind to help me with this stuff? How may I create an order with the block?

Thank a lot

González


 
 Post subject: Re: How to create a Loop Pending Open orders in VisualJForex? Post rating: 1   New post Posted: Mon 12 Aug, 2013, 12:33 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Hello! Actually i suppose you are thinking to complex...it can be done very easily...


Image

You only need to put this and on every new signal it will be checked if that argument is true and then it proceeds to open a new pending order.

If you want additional information please provide us with your strategy so that we can have a look into it ;)


Attachments:
State_Close.png [16.28 KiB]
Downloaded 872 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: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Tue 20 Aug, 2013, 10:31 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Thanks a lot dirk_r1;

I have a question about that IF...Dont know haw to conect it? Could you help me, I just send you the file VFS.


Also I have another question, as you can see in the file there are four diferent pending order sell1, sell2, buy 1 buy 2. All they have take profits and sl. But how can I get A STOP LOSS TO BREAK EVEN in sell2 and buy2 when the TAKE PROFITS (sell1 or buy1) are hit?


Thanks again :D


Attachments:
vv3.vfs [80.72 KiB]
Downloaded 420 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: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Tue 20 Aug, 2013, 15:18 
Visual JForex expert at Dukascopy
User avatar

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

Please check viewtopic.php?f=165&t=49458 for setting a SL to BE.

The other thing:

Image

Please tell me if there were still errors.


Attachments:
BE_if_TP.png [61.41 KiB]
Downloaded 872 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: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Wed 21 Aug, 2013, 10:37 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Hi Dirk, thaks a lot...I try it like that but dont move the stop loss to reak even when sell1 or buy1 gets the take profit price level.

Also The first question that I asked was about how to put the IF for when the pending orders are finished (by TP or SL) when the price again hit the level of the pending order again entry the position sell1-sell2 or buy1 buy2.

I better send you my strategy for more details. Could you check that out, fell free to change anything you think is porrly done in my strategy VV32.vfl

Thanks again.

Gonzalez


Attachments:
vv32.vfs [85.14 KiB]
Downloaded 424 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: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Wed 28 Aug, 2013, 12:41 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Sorry but it does not make sense.
If TP is reached then position closes and there is no SL to move to breakeven.


 
 Post subject: Re: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Wed 28 Aug, 2013, 12:52 
User avatar

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

Please check the file vv32.vfl, and you will see that there are Two pending order BUY and Two pending orders SELL. So the idea is that when the first order (BUY1 or SELL1 get to the TP objetive, the second pending order (BUY2 or SELL2) that is already in the market (because the price of entry is the same) will move the stop loss to break even (buy2 or sell2 orders).

Make sense now?

Thanks Vadim


 
 Post subject: Re: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Wed 28 Aug, 2013, 14:50 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Yes, now it makes sense.
Lets make it less complicated. For example:
If Buy position is closed then we go through all Buy positions and set SL on break-even.
Same for sell. Because it is easier to make it with Position Viewer the with Variables.
download/file.php?mode=view&id=4401


Attachments:
Cool_BreakEven.vfs [24.02 KiB]
Downloaded 586 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: How to create a Loop Pending Open orders in VisualJForex? Post rating: 0   New post Posted: Mon 23 Sep, 2013, 10:20 
User avatar

User rating: 0
Joined: Mon 15 Jul, 2013, 11:59
Posts: 49
Location: Spain, Madrid
Thanks Vadim, I just got back from vacation.

It works very good the stop loss to break even. Thanks again :D


 

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