Dukascopy
 
 
Wiki JStore Search Login

One trade per day
 Post subject: One trade per day Post rating: 0   New post Posted: Wed 25 May, 2016, 22:57 
User avatar

User rating: 0
Joined: Wed 14 Mar, 2012, 19:04
Posts: 46
Location: Switzerland, Kloten
Hi
I want only one trades is allowed per day. How can I implement this?
Thanks
Chris :)


 
 Post subject: Re: One trade per day Post rating: 0   New post Posted: Thu 26 May, 2016, 09:10 
User avatar

User rating: 0
Joined: Tue 24 May, 2016, 11:04
Posts: 6
Location: Estonia, Tallinn
You can just work with Candle Event, filtering it by Period Day - if it's workaround is not enough, here example:
You can check Day of Month of existing orders (pending and markets) with block "GetTimeUnit".
Each position has "Creation Time" and itis compared with "Tick Time" throw "GetTimeUnit".
Variable "isTodayOrderExists" will tell you exists or not the order today.
See screen and example, if any questions - welcome.


Image


Attachments:
File comment: Example Screen
OneTradePerDay.png [234.79 KiB]
Downloaded 353 times
File comment: Example on GainCraft
OneTradePerDayExample.vfs [6.55 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.
 
The Best Answer  Post subject: Re: One trade per day Post rating: 1   New post Posted: Thu 26 May, 2016, 14:48 
Visual JForex expert at Dukascopy
User avatar

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

Filtering candles in the beginning of the strategy (aka period subscription) is sufficient to tell the strategy to check the rest of the conditions once/period:
To do so, simply drop an IF block filled with Default period = Last candle: Candle period
and set the default period to daily.

Cheers


 
 Post subject: Re: One trade per day Post rating: 1   New post Posted: Mon 30 May, 2016, 12:48 
Visual JForex expert at Dukascopy
User avatar

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

Here is it:


Image

You may need to send me your strategy and highlight your requirement

Thanks !


Attachments:
1H.JPG [100.53 KiB]
Downloaded 367 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: One trade per day Post rating: 0   New post Posted: Mon 30 May, 2016, 22:39 
User avatar

User rating: 0
Joined: Wed 14 Mar, 2012, 19:04
Posts: 46
Location: Switzerland, Kloten
Hi
Enclosed my strategy. Where should I put this one day funkction?
regards
chris


Attachments:
BBANDS0_1.vfs [31.77 KiB]
Downloaded 148 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: One trade per day Post rating: 1   New post Posted: Tue 31 May, 2016, 10:43 
Visual JForex expert at Dukascopy
User avatar

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

I see that you have a specific trading period which changes somehow the idea of my previous post but I'll try to show you 2 ways to do that:
1/ Let's assume that you need one single trade per day and you don't have a specific time preference for that : an idea like the V1 example could fit your need
2/ an enhanced version of V1 is V2 that includes trading time conditions

My previous post's idea is valid only if your trading period is set to 1Day
Cheers


Attachments:
BBANDS0_1_V1.vfs [38.86 KiB]
Downloaded 155 times
BBANDS0_1_V2.vfs [41.54 KiB]
Downloaded 151 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.
 

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