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

[EquisMetaStock Group] Re: MACD Histogram Cycle and Trigger with 4 Green 1 Red or 4 Red 1 Green



PureBytes Links

Trading Reference Links

Alvin,

Here's the buy and sell formula.

Give it a try and let me know if its what you need.

Preston



g:=3; {periods of consecutive higher MACD's}
{RedGreen MACD Histogram}
X:= MACD();
Green:=If(X> Ref(X,-1) ,X,0);
Red:=If(X<Ref( X,-1),X,0) ;
buy:= BarsSince(green=0)=g;
buy;

r:=3; {periods of consecutive lower MACD's}
{RedGreen MACD Histogram}
X:= MACD();
Green:=If(X> Ref(X,-1) ,X,0);
Red:=If(X<Ref( X,-1),X,0) ;
sell:= BarsSince(red=0)=r;
sell;



------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

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

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