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

[EquisMetaStock Group] Re: Moving Average Crossover Formula



PureBytes Links

Trading Reference Links

Charles,

Not exactly sure about your buy condition but see if this is 
anything like what you are looking for.

Ma3:=Mov(C,3,S);
ma13:=Mov(C,13,S);
ma39:=Mov(C,39,S);
cond1:=ma39 > ref(ma39,-1);
cond2:= Cross(ma3,ma13);
cond3:= Cross(ma3,ma39);
condx:= Cross(ma13,ma3);
buy:=(cond1 and cond2) OR cond3;
buy;

LongEX:= condx;


Basically the buy condition will look for a day when you have 
conditions 1 and 2 being met or condition 3 being met. You will then 
get a signal of one on that day. The rest is self explanatory and 
you should be able to work out the sell side. If not let me know.

Hope this helps,


Preston







--- In equismetastock@xxxxxxxxxxxxxxx, "cherotree1" 
<mass54thcob@xxx> wrote:
>
> Hello to the group!
> 
> I am a new Metastock user and I am learning my way around. I am 
> attempting to construct a custom formula for a moving average 
> crossover with the following parameters:
> 
> 1. BUY when the 39 day SMA is moving up AND when the 3 day SMA 
crosses 
> up  over the 13 day SMA AND/OR when the 3 day SMA crosses above 
the 39 
> day SMA. EXIT when the 3 day SMA crosses back below the 13 day SMA.
> 
> 2. SELL SHORT when the 39 day SMA is moving down AND the 3 day SMA 
> crosses  below the 13 day SMA AND/OR when the 3 day SMA crosses 
below 
> the 39 day SMA.  COVER when the 3 day SMA crosses back up over the 
13 
> day SMA.
> 
> If anyone is able to assist me in doing this I would certainly 
> appreciate it. Thanks in advance and take care!
> 
> Charles
>




 
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/