Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Invalid Bar Setup #484435
10/25/21 22:42
10/25/21 22:42
Joined: Jan 2020
Posts: 29
L
Leohermoso Offline OP
Newbie
Leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 29
I found this while upgrading from 2.35 to 2.40

Running the simple code

Code
function run() 
{
	LookBack = 1600;
	set(LOG + PARAMETERS);
	setf(PlotMode, PL_ALL + PL_FINE);
	MaxLong = MaxShort = -1;
	BarPeriod = 1;
	BarOffset = 60 * 9;
	
}


There are no errors when I click trade, however the same code on 2.40 triggers a
Code
Registered: Zorro S Subscription


_New compiling...........
Login 0 MT4/5..
!ZorroMT4.dll V4.26.
!Modal DTVM Ltda.  connected at UTC 10-25 22:30
Error 030 - invalid bar setup
Logout.. ok



I think you could take a deeper look into this.

Tks in advance

Leo Hermoso

Re: Invalid Bar Setup [Re: Leohermoso] #484443
10/26/21 10:31
10/26/21 10:31
Joined: Apr 2008
Posts: 581
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 581
Austria
Wrong bar offset?

Re: Invalid Bar Setup [Re: Leohermoso] #484446
10/26/21 11:15
10/26/21 11:15
Joined: Jan 2020
Posts: 29
L
Leohermoso Offline OP
Newbie
Leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 29
Maybe, my point is: The same code run nicely on zorro 2.35 but throw the above error on zorro 2.4

Re: Invalid Bar Setup [Re: Leohermoso] #484447
10/26/21 12:06
10/26/21 12:06
Joined: Feb 2017
Posts: 1,634
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,634
Chicago
The error message says that you have an invalid bar setup. Perhaps you should fix your bar setup.

Re: Invalid Bar Setup [Re: Leohermoso] #484448
10/26/21 13:39
10/26/21 13:39
Joined: Jan 2020
Posts: 29
L
Leohermoso Offline OP
Newbie
Leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 29
Sorry Guys, maybe I was not clear, and I will try again!


IF I run the script above in the ZORRO VERSION 2.35 I see NO error message, right?

BUT, if I run the exact same script in ZORRO VERSION 2.40 THERE'S AN ERROR MESSAGE!


VERSION 2.35 NO ERRORS - SAME SCRIPT
VERSION 2.40 ERROR - SAME SCRIPT


I suggest you try to reproduce the problem as the step-by-step was provided.

Best regards.

Re: Invalid Bar Setup [Re: Leohermoso] #484450
10/26/21 14:03
10/26/21 14:03
Joined: Feb 2017
Posts: 1,634
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,634
Chicago
Version 2.40 better detects your script bugs. This is a good thing.

Also, do you see how your BarOffset is greater than your BarPeriod? That's illegal. It can be "0 or a positive number smaller than BarPeriod".
https://zorro-project.com/manual/en/barperiod.htm

Re: Invalid Bar Setup [Re: Leohermoso] #484465
10/27/21 12:08
10/27/21 12:08
Joined: Jan 2020
Posts: 29
L
Leohermoso Offline OP
Newbie
Leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 29
Andrew, thank you very much! I think I completely misunderstood the BarOffset.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1