You can't set an array = the result of the SAME array.
--
Terry
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of l_abarr
Sent: Saturday, December 02, 2006 10:54
To: [email protected]
Subject: [amibroker] Need coding help with volume indicator
I'm new at this. I'm getting an error in the first line because the
variable 'upvol' hasn't been initialized. I want UpVol to remain the
same as yesterday if C < O. Thanks for any help!
UpVol =IIf(C > O, V, Ref(UpVol,-1));
DownVol =IIf(C < O, V, Ref(DownVol,-1));
Period = Param("Period",3,2,10,1);
UpVolAvg = EMA( UpVol, Period ) ;
DownVolAvg = EMA( DownVol, Period ) ;
Plot(UpVolAvg,"UpVolume", colorGreen);
Plot(DownVolAvg, "DownVolume", colorRed);
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
Yahoo! Groups Links