[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: combining multiple MACD indicators (?)



PureBytes Links

Trading Reference Links



Thanks!  I'll give this a try!

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> I ahve assumed you wanted the monthly and weekly to be rising, else
> put whatever you are looking for in place of what I have typed
> 
> TimeFrameSet(inMonthly);
> MACDm = ROC(MACD(12,26),1)>0;
> TimeFrameRestore();
> 
> TimeFrameSet(inWeekly);
> MACDw = ROC(MACD(12,26),1)>0;
> TimeFrameRestore();
> 
> Filter = TimeFrameExpand(MACDm,inMonthly) AND
> TimeFrameExpand(MACDw,inWeekly) AND Cross(MACD(12,26),0);
> 
> AddColumn(C,"close",1.3);
> 
> On Sun, 30 Jan 2005 22:07:29 -0000, mikelaurataylor
> <mikelaurataylor@xxxx> wrote:
> > 
> > 
> > I'm new so I don't know if this is really easy or not.
> > 
> > In a manual system I like to identify stocks that have a positive
> > MACD signal for long term (monthly), medium (weekly) and then 
wait
> > for it the daily to cross and/or approach zero.   I have found 
that
> > many times in this pattern (positive monthly, positive weekly, 
and
> > positive daily/crossing zero, the stock tends to jump for a few 
days
> > rather nicely.
> > 
> > Anyway, the number of periods I am using for this are the same
> > (26,12,9), but in one case I'm using monthly periods, in another
> > weekly, in another daily.
> > 
> > If I wanted to create a scan for something that has this, how do 
I
> > tell the system to look at it monthly and then switch and have it
> > check for weekly and/or daily.  In other words, how would I 
change
> > the length of a period?
> > 
> > Thanks
> > 
> > 
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> > 
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/








------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/