Dukascopy
 
 
Wiki JStore Search Login

"goodTillTime" for pending positions
 Post subject: "goodTillTime" for pending positions Post rating: 0   New post Posted: Tue 07 May, 2013, 20:57 

User rating: 0
Joined: Sat 04 May, 2013, 16:35
Posts: 2
Location: PolandPoland
Hello,
I have problem with "goodTillTime" for pending positions. I'd like to cancel created pending position after 3 hours if not executed, but I don't know how to set "DateandTime" variable. Could you help me?
Thanks in advance!


 
 Post subject: Re: "goodTillTime" for pending positions Post rating: 1   New post Posted: Fri 10 May, 2013, 16:44 
User avatar

User rating: 6
Joined: Fri 12 Apr, 2013, 14:08
Posts: 88
Location: FranceFrance
Hello Kaliban

The solution to your problem is the to create an automatic calculation and then use the dynamic result as a variable in GoodTillTime.

Look at the example below:


Image

The first block ads 30 minutes to the last candle time. a2*60*1000 is to convert 30 minutes in milliseconds.

Than we will create a new variable out of the output value.
Image

In the pending order block, we simply drag and drop the variable created to the GoodTillTime section.

I hope that was clear enough. If not, do not hesitate to ask for more explainations.


Attachments:
Capture1.JPG [46.24 KiB]
Downloaded 1008 times
Capture.JPG [69.98 KiB]
Downloaded 1007 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: "goodTillTime" for pending positions Post rating: 0   New post Posted: Fri 10 May, 2013, 22:47 

User rating: 0
Joined: Sat 04 May, 2013, 16:35
Posts: 2
Location: PolandPoland
That is exactly what I was looking for, thank you very much! :)


 

Jump to:  

cron
  © 1998-2024 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