Dukascopy
 
 
Wiki JStore Search Login

How do I reduce the number of trades to 1 per hour?
 Post subject: How do I reduce the number of trades to 1 per hour? Post rating: 0   New post Posted: Thu 08 Jan, 2015, 20:10 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Hi,

My Strategy opens positions at the particular time i.e. at 1, 5, 9, 17 and 21 GMT. The problem is as follows: if e.g. a trade is opened at 9 GMT and closed at 9.35 GMT after that the system opened a SECOND trade. If the SECOND trade is opened at 9.38 GMT and closed at 9.45 GMT the system opened a THIRD trade and so on. So, the system could open not 1 but 2, 3 or even more trades per 1 hour.

I need to have just 1 trade opened per 1 hour, e.g. if a trade is opened at 9 GMT and closed at 9.35 GMT I did not need to have the SECOND trade opened till 17 GMT. In the other words I need to have the 1st trade opened at 1 GMT, the 2nd trade opened at 5 GMT, the 3rd trade opened at 9 GMT, the 4th trade opened at 17 GMT and the 5th trade opened at 21 GMT.

Please help me to adjust my Strategy this way. Thank You in advance.


Attachments:
newRSIMACD1.vfs [51.41 KiB]
Downloaded 189 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 do I reduce the number of trades to 1 per hour? Post rating: 1   New post Posted: Mon 12 Jan, 2015, 16:47 
Visual JForex expert at Dukascopy
User avatar

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

Generally speaking, if you need to trade on a specific period, you need to simply to subscribe to this period: for example, trading on 1hour basis requires an IF block with the default period = candle (BID/ASK) period.
in case no filter is applied and if a strategy use the candle start method, the system will consider all available trading periods and therefore will trade on the minimum one which is 10 seconds. This statement depends on the strategy conditions and specifics.

Thanks


 
 Post subject: Re: How do I reduce the number of trades to 1 per hour? Post rating: 0   New post Posted: Tue 13 Jan, 2015, 12:04 
Visual JForex expert at Dukascopy

User rating: 1
Joined: Wed 06 Aug, 2014, 15:28
Posts: 25
Location: LatviaLatvia
Hi,

attached you can find the Strategy, which we discussed on the Webinar.


Attachments:
newRSIMACD1reviewafteronetoone.vfs [47.76 KiB]
Downloaded 170 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 do I reduce the number of trades to 1 per hour? Post rating: 0   New post Posted: Tue 13 Jan, 2015, 13:01 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Hi,

Thanks again for your help. I imported the strategy and I was going to test it on the Historical tester. However, I have the question. In the first IF block you have estimated a default period of 10 min. In our previous conversation you told me that default period had to be 1 hour (if I understood you correctly). In other words trading on 1hour basis requires an IF block with the default period = candle (BID/ASK) period. Please, check that again and let me know what default period should be used 10 min or 1 hour.

I look forward to hearing from you.


 
The Best Answer  Post subject: Re: How do I reduce the number of trades to 1 per hour? Post rating: 0   New post Posted: Tue 13 Jan, 2015, 14:37 
Visual JForex expert at Dukascopy

User rating: 1
Joined: Wed 06 Aug, 2014, 15:28
Posts: 25
Location: LatviaLatvia
Right you need to change the default variable. Default variable - defaultperiod - right mouse click "edit variable" - change it to "hourly", but than you need to check always if you are testing it in the default parameters if it is on hourly.
Or just change the default period in to hourly(see attachment). Than the period is unchangeable even if you change it before you test the strategy in the parameters.

Information if you put in a block variable which are from the default list. This you can always change before running the strategy in the parameters.


Attachments:
newRSIMACD1reviewafteronetoone_Changehourly.vfs [46.82 KiB]
Downloaded 192 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 do I reduce the number of trades to 1 per hour? Post rating: 0   New post Posted: Tue 13 Jan, 2015, 16:14 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Everything is ok now. Thanks a lot for your help.


 

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