PureBytes Links
Trading Reference Links
|
I found the following in an FAQ from Equis:
The only way to search for a trendline breakout would be to create a
custom formula that draws your Trendlines. There are not any
functions that specifically address trendlines. Trendlines are
usually drawn manually. To calculate a trendline it would be
necessary to explain to MetaStock mathematically, the rules you use
to draw your manual trendline. If you can explain the rules
mathematically you will be able to calculate your trendlines. If you
cannot explain the rules mathematically it will not be possible to
draw your trendlines with custom formulas.
We provide many example formulas that might help to create your
trendlines. For example there are Slope formulas posted in the
Technical Support Formulas section of the Equis web site
http://www.equis.com.
Here is an example of the "Trendline of Highs" custom formula:
Pds := 5;
FirstPeak := LastValue( Peak(1,H,pds));
SecondPeak := LastValue( Peak(2,H,pds));
DeltaVertical := FirstPeak - SecondPeak;
DeltaHorizontal :=
LastValue( PeakBars(2,H,pds)) -
LastValue( PeakBars(1,H,pds));
DeltaPerBar := DeltaVertical / DeltaHorizontal;
BarNoSecondPeak := LastValue(
Cum(1) - PeakBars(2,H,pds));
Trend := If(Cum(1) < BarNoSecondPeak,
BarsSince(Cum(1) >= BarNoSecondPeak),
SecondPeak +
(DeltaPerBar * (Cum(1) - BarNoSecondPeak)));
If(FirstPeak <= SecondPeak,
Trend,
BarsSince(FirstPeak <= SecondPeak));
I haven't tried it, so I'm not sure how it works.
Trader Joe...
--- In Metastockusers@xxxxxxxxxxxxxxx, "keith" <fib1618@xxxx> wrote:
> I'd like to experiment with drawing some lines using MS8 ,
starting them from a given starting point each time.
>
> this sounds easy with "Arctan" but I can't figure it out, must be
slow!
>
> 1/ the Y array prob would be a Date, prob have to use Jose's ( or
Roy's ? ) date counter to start with , to nominate the starting date.
>
> 2/ what would the X array be? a small fraction ?
>
> simply draw a line from a point, say a low or a high, at a
nominated rise & run, sounds easy doesn't it.
>
> could someone with greater knowledge than I please show me how this
can be done, maybe MS can't do it !
>
>
> thanks Keith
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|