In my understanding a decisive fact should be the 'trade over the weekend', so if you want to put it on a random base simply omit the trend filter and enter long or short randomly.
Re: One Night Stand System
[Re: Sphin]
#453407 07/24/1523:4907/24/1523:49
You're trading in days, not in hours. If you want to always open and close positions at a certain time, set BarZone and BarOffset accordingly. However for gap trading it probably makes sense to close the trade as early as possible, so Monday 00:00 might be ok.
Re: One Night Stand System
[Re: jcl]
#454015 08/24/1514:1308/24/1514:13
In this case, I can set BarOffset = ET + 9.5 * 60.
From the zorro help file.
BarOffset Bar start time offset in minutes. Bars and frames normally start at a date/time boundary; f.i. 60-minute bars start at every full hour, and daily bars start at UTC midnight. This can be changed with BarOffset. For daily bars, BarOffset determines the UTC minute into the day when the candle opens, and can be used for setting the bar begin to a certain time zone.
Re: One Night Stand System
[Re: RTG]
#454030 08/25/1507:5408/25/1507:54
Yes, zorro stopped responding and when restarted it subsequently 'forgot' the trade was open. I assumed the script would close out the position on the Monday and didn't think to check it myself until later in the week.
It is a demo account even though it says it is a real account on fxbook.