Dukascopy
 
 
Wiki JStore Search Login

Generic_release_strategy
 Post subject: Generic_release_strategy Post rating: 0   New post Posted: Thu 27 Oct, 2016, 17:05 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Good evening,
the objective of this strategy is to take profit from the economic release.

The strategy should
- insert the entry period (Example 07/10/2016 12:28)
- insert the closing period (Example 07/10/2016 12:30)
-Calculate the high of the previous minute candle (example at the closing of 12:28 minute candle the high is 0.8012)
-Sum this High + 0.001 (sum 10 pips to the previous high), this value is the BUYSTOP of the strategy
-Calculate the low of the previous minute candle (example at the closing of 12:28 minute candle the low is 0.8007)
-Subtract 10 pips to this low, so low - 0.001 (subtract 10 pips to the previous low), this value is the SELLSTOP
-At 12:29 the strategy open two pending position (a BUYSTOP and a SELLSTOP)
-If one pending position is filled the other one should be closed
-At 12:30 the strategy close and do not open any pending position


The strategy actually do not open positions


Attachments:
Generic_release.vfs [48.83 KiB]
Downloaded 129 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: Generic_release_strategy Post rating: 0   New post Posted: Fri 28 Oct, 2016, 09:42 
Visual JForex expert at Dukascopy
User avatar

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

From your description it is assumed that "nfpopen" and nfpclose variables are static and to be determined manually at the strategy launch thus there is no need to use "Get time unit" block which is a tool to get the time stamp dynamically.
In the attached example I've set these variables to global so that you can set them at the launch of the strategy.

In case you need these variables to work only every Friday of the month at a given time then you have to use Get time unit to catch the day of the week, make sure the day is Friday, get the time, input your time slot as a condition and here you go.


Attachments:
Generic_release_V2.vfs [50.84 KiB]
Downloaded 141 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: Generic_release_strategy Post rating: 0   New post Posted: Tue 08 Nov, 2016, 11:12 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Thanks :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