|
One trade per day |
DEMO3jZNEC
|
Post subject: One trade per day |
Post rating: 0
|
Posted: Wed 25 May, 2016, 22:57
|
|
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 
|
|
|
|
 |
GainCraft
|
Post subject: Re: One trade per day |
Post rating: 0
|
Posted: Thu 26 May, 2016, 09:10
|
|
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. 
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.
|
|
|
|
|
 |
amine_chourou
|
 |
Post subject: Re: One trade per day |
Post rating: 1
|
Posted: Thu 26 May, 2016, 14:48
|
|
Visual JForex expert at Dukascopy |  |
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
|
|
|
|
 |
amine_chourou
|
Post subject: Re: One trade per day |
Post rating: 1
|
Posted: Mon 30 May, 2016, 12:48
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, Here is it:  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.
|
|
|
|
|
 |
DEMO3jZNEC
|
Post subject: Re: One trade per day |
Post rating: 0
|
Posted: Mon 30 May, 2016, 22:39
|
|
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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|