Hello,
Of course instead of ticker symbols alone you need to use FOREIGN function.
Graph0 = EMA( Foreign("$advq","C")-Foreign("$declq","C"), 19 ) - EMA(
Foreign("$advq","C")-Foreign("$declq","C"), 39 );
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: larypowell
To: [email protected]
Sent: Wednesday, January 14, 2009 3:53 AM
Subject: RE: [amibroker] Help With McClellan Osc
Howard, I appreciate the help, but am getting a syntax error, maybe someone
with eSignal can assist?
Thanks, Larry
------------------------------------------------------------------------------
From: [email protected] [mailto:[email protected]] On Behalf
Of Howard B
Sent: Tuesday, January 13, 2009 2:26 PM
To: [email protected]
Subject: Re: [amibroker] Help With McClellan Osc
Hi Lary --
The McClellan Oscillator is based on the number of advancing issues minus the
number of declining issues. Subtract a slower exponential moving average of
that from a faster moving average of that.
Looking at this web site:
http://forum.esignalcentral.com/showthread.php?s=91481c8fcaafc0edeb1c5fabc4d5e53c&postid=96971
for eSignal tickers, the ticker for the NASDAQ Number of Advancing Issues
minus Number of Declining Issues is $ADDQ.
So, the AmiBroker code for the McClellan Oscillator for the NASDAQ is
probably this:
McCQ = EMA($ADDQ,19) - EMA($ADDQ,39);
For the NYSE:
McC = EMA($ADD,19) - EMA($ADD,39);
You do not need the ADVISSUES function because eSignal has taken care of that
for you.
I may be on thin ice here because I do not subscribe to eSignal and cannot
run the code. Let us all know if this worked.
Thanks,
Howard
On Tue, Jan 13, 2009 at 8:41 AM, larypowell <[email protected]> wrote:
I am trying to get McClellan Osc to work with eSignal data
The following formula does not seem to work, any advice would be appreciate.
/*
McClellan Oscillator
*/
Graph0 = EMA( AdvIssues("$advq",(C))-DecIssues("$declq",(C)), 19 ) - EMA(
AdvIssues("$advq",(C))-DecIssues("$declq",(C)), 39 );
Thanks, Larry