PureBytes Links
Trading Reference Links
|
Jose,
There's one issue I noted with my plot, namely - it starts with a value of
zero (you may have to scroll to the left edge of the chart to see it). This
is an issue when plotted on, say, IPOs as Metastock resizes the Y-axis to
accommodate all prices & indicator plots. Thus, when I plot a 20-day pivot
(identical to the 5-day pivot in my example except for the periods used) on
a chart of GOOG (Google), the prices are horrbly squished as Metastock
displays the entire gamut from 0 (my initial plot value) to the stock's
recent high of ~320. Is there anyway to make the indicator plot only when it
"kicks in" with a value and not start with a zero value?
JD
==========================================
From: "Jose Silva" <josesilva22@xxxxxxxxx>
Reply-To: equismetastock@xxxxxxxxxxxxxxx
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Re: Displace indicator backward
Date: Thu, 18 Aug 2005 07:12:33 -0000
John, I'm no expert on the inner workings of MetaStock's PREV function,
so the following is just a guess.
Whilst it's true that the two PREV's cancel each other, the LastValue
(variable+PREV-PREV) trick probably works because most likely
MetaStock processes the first series of +PREV loops, before dealing
with the -PREV lot. Spaces between MS functions probably have no
impact other than taking valuable formula space; commas will produce
errors.
jose '-)
http://metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "John Doe"
<ms001122@xxxx> wrote:
> Jose,
>
> Thanks for the quick and, as usual, accurate reply! Two questions
> though: it seems counterintuitive to use +PREV and -PREV together;
> don't these values just cancel each other out? And should they always
> be used without a space or comma inbetween i.e. as +PREV-PREV
> and not +PREV -PREV or +PREV, -PREV?
>
> JD
> Each day I learn something new
> =====================================
>
> From: "Jose Silva" <josesilva22@xxxx>
> Reply-To: equismetastock@xxxxxxxxxxxxxxx
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: [EquisMetaStock Group] Re: Displace indicator backward
> Date: Wed, 17 Aug 2005 06:43:34 -0000
>
> Try this MS trick to extend forward-referencing to the edge of your
> chart:
>
> LastValue(Ref(Fml("My indicator"),5)+PREV-PREV)
>
>
> jose '-)
> http://metastocktools.com/#metastock
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "John Doe"
> <ms001122@xxxx> wrote:
> Hi,
>
> I created a 5 day pivot high indicator, hereafter called "My indicator".
> It identifies a pivot high that is also a 5-day high. Also, and this is
> important, the pivot is not marked (identified) till 5 days have passed
> since its occurrence.
>
> But when I plot "My indicator" on a chart, the line starts 5 days after
> each pivot high (since the pivot is identified only 5 days later) and
> continues till the right edge of the chart. In order to make the line
> coincide with the bar where the pivot high is located, I used
> Ref(My Indicator, +5) but then the line stops 5 bars short of the right
> edge of the chart!
>
> I want to plot the line so that it coincides with the pivot high (even
> though the pivot is identified 5 days later), yet continues to the right
> edge of the chart. I suspect the Cum(1) argument is needed but I
> couldn't code it with success. Can somebody please help? Thanks.
>
> JD
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hl26go8/M=362343.6886682.7839641.1493532/D=groups/S=1705375617:TM/Y=YAHOO/EXP=1124376857/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html">Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> 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/
|