PureBytes Links
Trading Reference Links
|
Roy,
Thanks - thats what I needed. I need to take a little time to
understand your second indicator - thanks again.
Shaun
--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx>
wrote:
> Shaun
>
> On seeing your code I think the HighestSince() function is more
appropriate.
> The type of indicator shown below is very limited because it can
only trail
> one trade. I think a better approach is to have a trail that
either "resets"
> at the beginning of each new trade, or when the trailing stop is
breached.
> The "multiple use" approach is a must if you intend back-testing at
some
> point.
>
> D:=Input("Start day" ,1,31,12);
> M:=Input("Start month",1,12,8);
> Y:=Input("Start year" ,1980,2003,2002);
> A:=DayOfMonth()=D AND Month()=M AND Year()=Y;
> HighestSince(1,A,L*.95);
>
> Here's something that's a little more complex but should give you
something
> to think about.Once you learn how this works you'll be in a
position to
> adapt it for your own requirements. Have fun.
>
> {Trailing Stop Example}
> N:=Fml("Your Entry");
> X:=Fml("Your Exit"); {independent exit}
> Tr:=If(PREV=0,If(N,C,0), If(X {normal exit} OR
> C<HighestSince(1,PREV=0,L*0.95), {stop loss}
> 0,PREV));
> Xb:=If(Tr=0 AND Alert(Tr>0,2),C,0);{exit bar}
> Trail:=If(Alert(Tr>0,2),HighestSince(1,Alert(Tr>0,2)=0,L*0.95),0);
> Tr; Trail; Xb {or Xb>0 for binary signal};
>
> Roy
>
>
> ----- Original Message -----
> From: "shauncris" <spc901@xxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Tuesday, March 18, 2003 5:33 PM
> Subject: Re: [EquisMetaStock Group] indicator that starts from a
specified
> date
>
>
> > Thanks Roy,
> >
> > I have had a look at the valuewhen() function but cannot yet see a
> > way to make it work for me (I am still thinking!). Can you have a
> > look at the formula I currently have (in my previous post to
Preston)
> > and suggest a way I can use the valuewhen function.
> >
> > Thanks
> > Shaun
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx>
> > wrote:
> > > Shaun
> > >
> > > Use the ValueWhen() function to start a display at a specific
> > point. The
> > > number of NUL bars (N/A display) that this function creates is a
> > problem in
> > > many situations, but you can use it to your advantage for
> > situations like
> > > this.
> > >
> > > Roy
> > >
> > > ----- Original Message -----
> > > From: "shauncris" <spc901@xxxx>
> > > To: <equismetastock@xxxxxxxxxxxxxxx>
> > > Sent: Tuesday, March 18, 2003 12:58 AM
> > > Subject: [EquisMetaStock Group] indicator that starts from a
> > specified date
> > >
> > >
> > > > I want to create a stop loss line that only starts calculating
> > from a
> > > > specified date (when the share was bought). I can partially
do
> > this
> > > > with an 'if' function which tests if the date has yet occurred
> > (using
> > > > dayofmonth, month and year functions). But the 'if' function
> > > > requires a formula to use if the result of the test is false
(ie
> > > > before the specified date). I dont want anything to be
displayed
> > if
> > > > the date is before the specified date. How do I do this? Is
> > there
> > > > something like a null value or function I can specify if
the 'if'
> > > > function is false, or should I be using something other than
> > > > the 'if' function?
> > > >
> > > > Thanks
> > > > Shaun
> > > >
> > > >
> > > > Yahoo! Groups Sponsor
> > > > ADVERTISEMENT
> > > >
> > > >
> > > >
> > > >
> > > > To unsubscribe from this group, send an email to:
> > > > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service.
> > > >
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> >
> >
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Your own Online Store Selling our Overstock.
http://us.click.yahoo.com/rZll0B/4ftFAA/46VHAA/BefplB/TM
---------------------------------------------------------------------~->
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/
|