PureBytes Links
Trading Reference Links
|
Charles,
No need for apologies, we were all rookies once. My only suggestion
is to read and study everything you can starting with the users
manual and primer. I still refer to the manual.
Those spikes are your signals. To see when you are buying and
exiting use something like this:
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;
condx * -1;
To see the moving averages make this into an indicator and place it
in the data window.
Ma3:=Mov(C,3,S);
ma13:=Mov(C,13,S);
ma39:=Mov(C,39,S);
Ma3; ma13; ma39;
If the chart and system tester don't match then you may need to load
more periods in the tester which is an option of the test.
Writing your buy signals with the "and" condition is somewhat
restrictive. Using just "OR" statements might give you more signals.
Like this:
buy:= cond1 or cond2 or cond3;
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, "cherotree1"
<mass54thcob@xxx> wrote:
>
> Preston,
>
> Thank you very much for your reply!! I apologize for all of
> the "rookie" questions but I am new to Metastock and I am trying
to
> learn.
>
> I pasted the formula that you provided and while looking at the
> results generated by the enhanced system tester, it certainly
> appears to be what I was looking for but the results are only
> generating ONE round trip in a, roughly, 12 month period. Any
idea
> what would be causing this because during that period, numerous
> signals should be generated? I have been studying the formula
> language, hoping to interpret it better, but my learning curve is
> somewhat steep.
>
> Also, when I pull up a chart of a security, using my custom
> indicator, there are a series of upward "spikes" generated of
which
> I am not sure what they represent. I was hoping the chart would
> display all 3 moving averages. Any idea what could be causing this?
> Thanks again for leading me in the proper direction and getting me
> off to a great start! Peace!
>
> Charles
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> >
> > 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@> 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/
|