Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 405 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
trades closed today #473358
07/01/18 08:35
07/01/18 08:35
Joined: Nov 2017
Posts: 4
nsw
M
matty019 Offline OP
Guest
matty019  Offline OP
Guest
M

Joined: Nov 2017
Posts: 4
nsw
Anyone know how i can restrict my staregy to only open 1 trade per day ?

Re: trades closed today [Re: matty019] #473469
07/10/18 17:27
07/10/18 17:27
Joined: May 2018
Posts: 134
S
SBGuy Offline
Member
SBGuy  Offline
Member
S

Joined: May 2018
Posts: 134
If you BarPeriod is 1440, then only 1 trade can be generated per day, usually.

If you have a shorter BarPeriod, perhaps you can check the various trade stats for trade or no trade in the current bar.

http://zorro-project.com/manual/en/winloss.htm

Or you can use a global variable with the date of the last trade, if today=lasttradedate, then don't enter another trade.

Re: trades closed today [Re: SBGuy] #473617
07/27/18 08:37
07/27/18 08:37
Joined: Nov 2017
Posts: 4
nsw
M
matty019 Offline OP
Guest
matty019  Offline OP
Guest
M

Joined: Nov 2017
Posts: 4
nsw
thanks


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1