Hello,
The code below is apparently ancient. The "A" should be
replaced with "Avg".
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Thursday, May 10, 2007 9:17
PM
Subject: Re: [amibroker] Syntax Error
showing ...Exploration, System and Indicator..Pls correct it.
You haven't defined variable 'a' .
You can see the error message if you do a search
in the help files of AB for initialize
Dave
----- Original Message -----
Sent: Thursday, May 10, 2007 12:07
PM
Subject: [amibroker] Syntax Error
showing ...Exploration, System and Indicator..Pls correct it.
Can anyone from the group check
wats going wrong on in this string of code..
AFL syntax checker saying error is
there in:--Ln:-17,Col.:-11:Error 29, Variable 'a' used without
having being initialized.
/* Exploration, System and Indicator */
//Author Steve Wiser
//Email address: slwiserr@xxxxxxcom
//May 5, 2007
*/
outsidebar = Outside();
insidebar = H <= Ref(H,-1) AND L >= Ref(L,-1);
upbar = H > Ref(H,-1)
AND L >= Ref(L, -1);
downbar = L < Ref(L,-1)
AND H <= Ref(H,-1);
barcolor= IIf(outsidebar, 1,
IIf(downbar,
4,
IIf(upbar,
5,
IIf(insidebar,6,
0 ) ) ) );
var1=MA( A, 34);
var2=MA(
A,5);
var3=var2-var1;
var4=var3-MA(var3,5);
Graph0=var4;
Graph0Style=2+4;
Graph1=Wilders(var4,5);
Graph1Style=5;
Graph0BarColor=Barcolor;
Please do the needful..
Can anyone send me corected code.
thnks in advance.
With Regards
Mohit Gupta
Email:-mohitgupta_2001@xxxxxxxxcom
Amibroker Yahoo Group
Member
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
__,_._,___
|