Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,484 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
syntax error #486100
06/08/22 23:12
06/08/22 23:12
Joined: Jun 2016
Posts: 53
F
faustf Offline OP
Junior Member
faustf  Offline OP
Junior Member
F

Joined: Jun 2016
Posts: 53
Hi is many time i dont use zorro , and i been beginner and now i am also super beginner , why return syntax error ADD POINTER in this part of code ?
Code
 if ((priceL+priceH) > 82){
	   plot("Dotted",1.01*price(),DOT,GREEN); 
  }


sorry again for disturb

Re: syntax error [Re: faustf] #486111
06/09/22 10:34
06/09/22 10:34
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Yes, adding function pointers is a fat bug. Call the functions instead.

Re: syntax error [Re: faustf] #486130
06/09/22 19:21
06/09/22 19:21
Joined: Jun 2016
Posts: 53
F
faustf Offline OP
Junior Member
faustf  Offline OP
Junior Member
F

Joined: Jun 2016
Posts: 53
sorry i am not expert can you explain me how correct or show me exmple for study sorry

Re: syntax error [Re: faustf] #486131
06/09/22 19:27
06/09/22 19:27
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago

Re: syntax error [Re: AndrewAMD] #486135
06/10/22 19:33
06/10/22 19:33
Joined: Jun 2016
Posts: 53
F
faustf Offline OP
Junior Member
faustf  Offline OP
Junior Member
F

Joined: Jun 2016
Posts: 53
thanks so much , exist also some video tutorial ??? thanks

Re: syntax error [Re: faustf] #486138
06/10/22 21:37
06/10/22 21:37
Joined: Jun 2016
Posts: 53
F
faustf Offline OP
Junior Member
faustf  Offline OP
Junior Member
F

Joined: Jun 2016
Posts: 53
sorry again i want for try to understund how work zorro, i want try to mesure in pips a candel and if is up to X ,it must draw a point in chart for do taht i create this script
function run()
{
set(PLOTNOW);
int de=((priceL()+priceH())*PIP)

printf("%c de");
if (((priceL()+priceH())*PIP)> 82){
plot("Dotted",1.01*price(),DOT,GREEN);
}
}

but i have some questions:
1. why not print ? i ttry also in this mode printf(de);
2. why not draw a point in chart ?

thanks at all

Re: syntax error [Re: faustf] #486142
06/11/22 07:51
06/11/22 07:51
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
For converting price to pips you must divide by PIP, not multiply. And for candle height you must subtract H-L, not add. Also use var instead of int.

How to use printf, read the tutorial, its on the first page.

Re: syntax error [Re: Petra] #486145
06/11/22 20:15
06/11/22 20:15
Joined: Jun 2016
Posts: 53
F
faustf Offline OP
Junior Member
faustf  Offline OP
Junior Member
F

Joined: Jun 2016
Posts: 53
Thanks so much Petra


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1