Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by 7th_zorro. 04/16/24 13:19
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (rki, Ayumi), 475 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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: 32
L
leohermoso Offline OP
Newbie
leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 32
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: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
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: 32
L
leohermoso Offline OP
Newbie
leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 32
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,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
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: 32
L
leohermoso Offline OP
Newbie
leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 32
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,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
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: 32
L
leohermoso Offline OP
Newbie
leohermoso  Offline OP
Newbie
L

Joined: Jan 2020
Posts: 32
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