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