syntax error in Alice4a_1.c

Posted By: DonSergio

syntax error in Alice4a_1.c - 08/15/20 07:55

hello,

i am new here and germay, my english is no so good, sorry.

ok, i have a syntax error in Alice4a-1.c from the Black Book 3. edition. this script is generated by zorro.

Code
Train EURUSD_L -Jan 2019- 31 patterns
Train EURUSD_S -Jan 2019- 34 patterns
Rules stored in Alice4a.c

Run Alice4a..
WFA Test: Alice4a EUR/USD 2010..2018
Read Alice4a_1.c.
Error in 'line 41: 
Syntax error: Wrong type ANDAND:DOUBLE:DOUBLE:LONG
  if(sig[1]<sig[4] && sig[4]<sig[2] && sig[2]<sig[5] && sig[5]<sig[3] && sig[3]<sig[0] && sig[10]<sig[11] && sig[11]<sig[7] && sig[7]<sig[8] && eq0(sig[8]-sig[9]) && sig[9]<sig[6])
Can't compile rules
Error 047: No bars to plot


have someone the same problem? a bug in zorro 2.25 ??

thanks for answers
Posted By: Petra

Re: syntax error in Alice4a_1.c - 08/15/20 10:51

Try Zorro 2.30 from the link on the download page. I believe some of the alice scripts were not compatible with 2.25, some issue with the "eq0" function.
Posted By: DonSergio

Re: syntax error in Alice4a_1.c - 08/15/20 10:55

thanks Petra for the fast answer. i try it
Posted By: Petra

Re: syntax error in Alice4a_1.c - 08/15/20 10:58

And include legacy.h, the alice scripts are very old.
Posted By: DonSergio

Re: syntax error in Alice4a_1.c - 08/15/20 11:32

zorro 230 not work for me.

my mt4 and zorro are in the same drive installed but not on C:\
i installed zorro 230 at the same way as 225 but not connected to the brige.

Login 0 MT4/5 (demo)..
!ZorroMT4.dll V4.25
!Access denied: C:\Users\....\AppData\Local\Temp\mt4sock13xxxxxxx.sys
!Check account type/number xxxxxxx
Can't connect!

TradeTest compiling...........
Login 0 MT4/5 (demo)..
!ZorroMT4.dll V4.25
!Access denied: C:\Users\....\AppData\Local\Temp\mt4sock03xxxxxxx.sys
!Check account type/number xxxxxxx
Can't connect!

i must install zorro as admin,
for this zorro looks at the temp-folder of admin.

a other problem is with zorro 225 i can only connect with my mt4 demo account when i use my login and use the real-account en zorro.
at zorro 230 not work demo or real
Posted By: DonSergio

Re: syntax error in Alice4a_1.c - 08/15/20 11:38

thanks for the tip ;-) it works

but where can i change the temp-folder location or user ?
Posted By: Petra

Re: syntax error in Alice4a_1.c - 08/15/20 11:41

"Access denied" means that either that file is locked or your user has no permission to access it. You must solve that problem, or you cannot use any version of Zorro. If you installed Zorro as admin then you will probably also need admin rights to run it. Better not install it as admin.

AppData\Local\Temp is a common folder used by many programs and when you have no access rights, many programs will not work on your PC.
Posted By: DonSergio

Re: syntax error in Alice4a_1.c - 08/15/20 12:06

i now, but i can't install zorro without admin.

zorro 225 i installed also with admin and works fine

i have tryed with admin, but the same problem.

Edit: now it works, i forget enable DLL frown

but connect only my mt4 demo-account when i use real-account in zorro with account-number & pass

thanks for the fast help

have a nice WE
© 2024 lite-C Forums