Dukascopy
 
 
Wiki JStore Search Login

BUG: The S/L and T/P are positioned incorrectly PENDING order
 Post subject: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 10:28 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Hi you all,

I have discovered a probable BUG with the Pending order. When in the pending order block you enter a stoploss and profit take value, it does not calculate those values from your ENTRY LINE, but from the low of the previous candle! This is the case if you use the get candles history function in order to calculate the previous high so you can determine the Pending entry based on the the history.

Did you guys also have this problem? Is there a solution?

Thanks

Balazs


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 12:07 
Visual JForex expert at Dukascopy
User avatar

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

I've made the following test:
get historical 5 candles
retrieving the highest high candle value
and then opening a entry Limit position @ highest price with TP & SL in pips.

The TP and Sl prices are correctly calculated upon the entry highest price. (10 pips for SL and 15 for SL)

If the upper does not match with your tests/explanations, please post your strategy so that we can investigate.

Thanks


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 12:21 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
for me it is not working. I calculate the highest value for the previous 8 hourly candles, then ad 10 pips and that will be my BUY STOP entry. I add the deafult S/L and T/P values, which are 35 and 100 pips.

The Entry value is calculated correctly, but the SL and TP values are calculated of the last candle and not my conditional entry level. see the VFS file below.

Help would be really appreciated.

Balazs


Attachments:
early_wrong _SL.vfs [48.58 KiB]
Downloaded 471 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: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 12:59 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
One correction. Use other flow in Loop Viewer:

Image


Attachments:
Pic1.png [39.42 KiB]
Downloaded 904 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: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 14:10 
Visual JForex expert at Dukascopy
User avatar

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


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 14:31 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Thank you all for the response,

I will be posting a calculation i made, when i am at home, i am on my ipad now.

But is there a way to set the sl and pt based on the entry level??? Without that, the ealry bird system would be impossible to program like many other system as well...

Any ideas?


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 15:09 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Sorry, I was wrong for my previous post. The SL and TP should be calculated from the entry price and not the current ask/bid prices.
We will investigate deeper the issue and keep you posted...


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 15:21 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Thanky you so much.

And for that matter, there is one other major issue with this strategy. As you can see, i only made the buy side, with the high of the previous 8 candles. When i complete the strategy by making the low of the previous 8 candles with also a 10 pip bigger for the sell st entry, you will see that the system does NOT do it the sme way as for the BUY STOP. Actually, i have not figured out yet, what it does, but it absolutely does not do, what it is supposed to.

Any ideas?


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Wed 17 Jul, 2013, 17:22 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Here is the full strategy posted. As I mentioned before, you will see that the lowest point are incorrectly calculated and therefor a short position is taken on EVERY cycle... I have copied the same structure as on the highest candle... It seems something is not working as it is supposed to.


Attachments:
early1-1.vfs [54.61 KiB]
Downloaded 443 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: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 10:29 
Visual JForex expert at Dukascopy
User avatar

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

In order to get the lowest value, you need to replicate the same logic as the "Highest" but in the first "Assign" box: instead of giving the value 0, you need to assign bigger value so that the system will know that this variable will start by getting the value of 10 for instance and then start looking for lower which will happen in the first cycle. The lowest value will take then the first candle low value and will keep looping and assigning lower values if the condition IF is verified.

I've took the example of 10 as most of the currency pair's prices are less than that except for precious metals. If you want your strategy to be valid for all currency prices, then you need to assign a start value at 1500 for example (as the highest price is the XAU/USD@1280,....)


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 10:31 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
In strategy you'v provided SL and TP would be calculated from price of pending order (TARGET_SELL).
But in process of execution slippage can happen. So price would be a little different.


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 10:49 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Dear Amin and Vadim,

I would like to thank you again for your time and help. However, your last comments are unfortunatley incorrect. Amin, I have tried value 10 and it does not work with. It still take the open of the candle at 6GMT and enters a short sell, NOT taking the low of the previous 8 candles. Have you tried it out on your computer with my file, changing the variable? Did it work with you?

Vadim. I am aware of slippage, however, the system logic does not place the SL and TP according to my entry level, but on the LOW or HIGH of the calde at 6 GMT when my conditional order is created. This can not be correct. As I know, Amin is working on this problem. Correct?

thanks

Balazs


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 11:05 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Attachment:
early1-1.vfs [56.67 KiB]
Downloaded 456 times


I am sorry if I understand you correctly but at least this one calculates the lowest price of the last 8 candles correctly...


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 11:13 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Dirk,

Eureka!!!! it works.. Thanks so much. I took value 10 instead of a 1000. Probably I have value incorrect in my head. Can you tell me what the value 1000 inplies?

Then we only have the issue with the incorrect placement of the SL and TP values correct?

thanks

Balazs


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 17:32 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
OK, maybe i have to explain the value: I could also take 10 as a value but if you want for example calculate a currency pair which is higher than 10 (USDRUB) it won't work. You have to setup a value which is higher than the currency pair in order to subtract it to get the lowest price.

Regarding to the second point: That is a bug. Probably it will be fixed tomorrow.

Have a nice day and happy trading! ;-)


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Thu 18 Jul, 2013, 22:16 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Looking forward to the fix! :-)

However I encountered another strange problem today. I can not save, nor export my completed strategy. If I want toopen the file, it will say:
error #2030

If I import the file I have just exported it will come up after 4 minutes of loading only to showme the 4 initial blocks of the strategy completely disordered.
Ever heard about something like this before?


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Fri 19 Jul, 2013, 10:56 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Dirk,

Will you give me a shout when the SL TP problem is solved?
And have you read my post above.. Strange isn;t it??


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Fri 19 Jul, 2013, 11:11 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
One last thing.

1.) As I mentioned, I can not save my strategies any more. I have exported the file, but subsequently I can not load it any more. So I have attached the file here. Is there anyway for you to open it on your computer, run it, export it with a different name and post it here? because if I download the file form here, visual Jforex WILL load it! (very strange, but this is the only way it works here)

2.) I have finished the strategy. Two things don;t work. The first one you are working on: the correct SL and TP values
But the other thing I can not solve. It is at the very and of the strategy. When a position is entered either up or down, subsequently a pending order is created in the opposite direction with an entry price of the SL of the order filled. Now, so far so good, this works (with the incorrect SL values). BUT now I want this new pending order to be cancelled if my original trade hits the PROFIT take.... and this does NOT happen. Please take a look, because I think I did everything correctly....

thanks again so much. Mercy beacoup!!


Attachments:
early1-1-2.vfs [75.04 KiB]
Downloaded 444 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: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Fri 19 Jul, 2013, 17:51 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
I tried to load your strategy, but I think it somehow got corrupted. It almost crashed my session of Chrome.
It finally loaded after awhile and it's nothing but random blocks on top of one another with no connection in between them.
My advice is to build it again and save it on your account, and also copy the source code as a backup.
Make more than 1 copy on the account ;)

Cheers


 
 Post subject: Re: BUG: The S/L and T/P are positioned incorrectly PENDING order Post rating: 0   Post Posted: Mon 22 Jul, 2013, 06:53 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Hi Guys,

any news on the Bug issue with the SL and TP?


 

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