PureBytes Links
Trading Reference Links
|
Jack
It sounds to me as though you need a PREV latch to lock in the trade entry
price, followed by a mechanism that gives a signal every time the integer of
% change is different from the previous bar.
Roy
----- Original Message -----
From: "superfragalist" <j3ttt@xxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Thursday, July 24, 2003 7:11 AM
Subject: [EquisMetaStock Group] Re: Tim--Code for %price increments
> Thanks Tim,
>
> The code you posted is one way of tracking the rise and fall of
> prices by percent. What I'm trying to do is to write a statement for
> my expert that will put a dot on my chart each time there's been a
> cumulative price increase of 1% on the long side or a 1% decrease on
> the short side.
>
> I wrote a zig zag formula that would plot it in an indicator window
> but I haven't been able to get it in to an expert version that will
> put the dots on the chart. I'm close but not quit there.
>
> If you have any ideas let me know.
>
> Thanks
> Jack
>
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "timinwaedi" <timinwaedi@xxxx>
> wrote:
> > --- In equismetastock@xxxxxxxxxxxxxxx, "superfragalist"
> <j3ttt@xxxx>
> > wrote:
> > > Has anyone seen any code for creating an expert or indicator that
> > > will identify when a price moves up x% from the entry price and
> > then
> > > moves up x% again from the previous x% increase.
> > >
> > > Jack
> >
> > Hi Jack,
> >
> > Try this indicator:
> > -----------------------------------------------------------------
> > {Percentage Crossover w/Input}
> > Percentage:=Input("Enter the percentage threshhold;",0.1,20,3.0);
> > base:=(100-Percentage)/100;
> > top:=(100+Percentage)/100;
> > If((C*base)>PREV,C*base,If((C*top)<PREV,C*top,PREV))
> >
> > -----------------------------------------------------------------
> >
> > Regards,
> >
> > Tim
>
>
>
> 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/
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/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/
|