Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, alibaba, Konsti, 2 invisible), 1,418 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
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,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,729
Chicago

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

Joined: Jun 2016
Posts: 49
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: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
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: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
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: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
Thanks so much Petra


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1