Dukascopy
 
 
Wiki JStore Search Login

Problem with GoodTillTime
 Post subject: Problem with GoodTillTime Post rating: 0   New post Posted: Sun 26 Apr, 2015, 06:05 
User avatar

User rating: 0
Joined: Sat 25 Apr, 2015, 09:22
Posts: 5
Location: ItalyItaly
Hi all, i am a newbie of VJF and I have a problem with goodTillTime. I would like to automatic cancel a pending order if il doesn't execute in 23hours (daily candles).
Could you help me please?
I attach my strategy
Thank u very much


Attachments:
EURUSD_DailyBreakout.vfs [25.73 KiB]
Downloaded 139 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: Problem with GoodTillTime Post rating: 0   New post Posted: Wed 29 Apr, 2015, 09:27 
Visual JForex expert at Dukascopy
User avatar

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

Actually there is several topics treating your question but I'll give you couple of hints about that:
Error 1: an expiry of 23 hours means 23*60*60*1000 = 82'800'000 in linux time. You have a typo mistake as you're using 828'000'000 which means 230 hours ! ( about 9 and half days :) )
Error 2: You keep updating the expiry time variable (Valido) every hour and therefore the order- if still in pending status- is modified every hour with a new expiry time (last candle time +23 hours) --> Never expire. You need to make sure that the GTT variable is calculated only once before the order submit. Check the attached example for more info.

Hope this helps!

Cheers


Attachments:
GTT.vfs [27.26 KiB]
Downloaded 146 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: Problem with GoodTillTime Post rating: 0   New post Posted: Thu 30 Apr, 2015, 10:01 
User avatar

User rating: 0
Joined: Sat 25 Apr, 2015, 09:22
Posts: 5
Location: ItalyItaly
Thank u very much, i think it could work
Sorry but i havn't yet found a source or progressive learning, so i miss basic elements (like variable "Pending Positions.position").
Could u suggest me something to read or view?
Thank u again and see u


 
 Post subject: Re: Problem with GoodTillTime Post rating: 0   New post Posted: Fri 01 May, 2015, 16:41 
Visual JForex expert at Dukascopy
User avatar

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

Well the best source of knowledge for the time being is Visual Jforex Helper and YouTube when searching by the keyword "Visual Jforex". We are currently updating the helper (available from the "Help" menu > Docuementation) on a regular basis.

Enjoy!


 

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