Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/06/26 05:32
Purchase A8 full licence version
by jcl. 10/05/26 12:12
Respect History setting for Z systems
by AndrewAMD. 10/02/26 15:43
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 10,657 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Alice1 (Black Book) – missing weekend-open bars in H1, results c #489684
10/02/26 03:36
10/02/26 03:36
Joined: Oct 2026
Posts: 1
J
julienp Offline OP
Guest
julienp  Offline OP
Guest
J

Joined: Oct 2026
Posts: 1
Hi,

I'm reproducing Alice1 from the Black Book (EUR/USD, H1, 2016-2026, price history from the Zorro site, Zorro 3.11.2). With the original script I get roughly the book's result (PF around 1.4).

On the chart, there is a gap of exactly 3 hourly bars after the weekend open: these 3 bars are missing and seem to be merged into the next bar, although every broker I checked shows them.

I added BR_WEEKEND with StartWeek/EndWeek (and BarZone) to make those 3 bars reappear, so the bars match my broker (Darwinex/MT5). With otherwise the same logic, the result changes a lot: PF drops to about 1.1 with a much less regular equity curve. Removing only the weekend lines brings back the book's result.

The effect seems even stronger on higher timeframes, for example H4, where the first bar after the weekend is clearly distorted without these settings.

So my question: is this expected? Are those weekend bars skipped on purpose by default (to keep the example simple, or because those hours are illiquid), or am I doing something wrong in my setup? This is the script I used:

Code
function run()
{
  set(LOGFILE,PLOTNOW,PRELOAD);
  Fill = 3;
  Outlier = 0;
  LookBack = 1000;

  BarZone = 2;             // match broker bars (Darwinex/MT5)
  BarMode = BR_WEEKEND;
  StartWeek = 10000;       // Monday 00:00
  EndWeek = 60000;         // Saturday 00:00

  StartDate = 20160101;
  EndDate = 20260201;
  MaxLong = MaxShort = 1;

  vars Prices = series(price());
  vars Trends = series(Laguerre(Prices,0.05));
  vars MMI_Raws = series(MMI(Prices,500));
  vars MMI_Avgs = series(Laguerre(MMI_Raws,0.05));

  Stop = 10*ATR(500);
  Lots = 1;

  if(falling(MMI_Avgs)) {
    if(valley(Trends))
      enterLong();
    else if(peak(Trends))
      enterShort();
  }
}


Asset EUR/USD and bar period 60 are selected in the Zorro window. Screenshot of the gap attached.

Thanks!

Attached Files zorro alice .pngzorro my script.png
Last edited by julienp; 10/02/26 03:46.
Re: Alice1 (Black Book) – missing weekend-open bars in H1, results c [Re: julienp] #489689
Yesterday at 12:02
Yesterday at 12:02
Joined: Jul 2000
Posts: 28,139
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,139
Frankfurt
I readily believe that you get gaps and bad results with your settings. Unless you trade on the Moscow stock exchange, better use the default weekend and time zone for currencies. Their weekend begins with market close in New York and ends at market open in Sydney. Even if your broker has weekend bars of currencies, they are not from regular trading, and better don't use them for a strategy.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1