PureBytes Links
Trading Reference Links
|
Forward referencing using "Ref(DataArray,+x)" simply means that the
signal will be plotted x periods into the future, which in reality
means that the signal will appear x periods *sooner* on the chart,
thus giving the appearance to the unaware that the signals have
actually shifted backwards on the chart.
A signal shifted backwards on a chart is a signal shifted forwards
into the future.
ALM, whilst you're caught up in this simple apparent paradox, you've
missed the point of my forward-referencing solution.
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "awlaimeng" <awlaimeng@xxxx>
wrote:
> Hi! Dusant & Jose,
>
> I know that using the Ref(bingo,3) is actually forward-reference
> because of the +ve parameter. Like I mentioned earlier, when I used
> "bingo" as the last statement in my codes a signal (spike) is
> plotted on the 7th. day, which is correct. But if I used
> "Ref(bing0,-3)" then a signal (spike) is plotted on the 10th. day
> instead of on the 4th. day! However when I used "Ref(bingo,3)" the
> signal (spike) is plotted on the 4th. day - which is what I wanted
> to see visually on the chart.
>
> What I don't understand is when I used a +ve parameter in the Ref
> function the signal is plotted BACKWARD whereas if I use a -ve
> parameter in the Ref function the signal is plotted FORWARD!
>
> Hope you guys can help me clear my doubt.
>
> Best regards,
> ALM
>
> --- In equismetastock@xxxxxxxxxxxxxxx, Dusant <cooldush@xxxx> wrote:
> ALM
>
> It is "wrong" because it is referencing the future bars. Or in other
> words, the fourth bar will not show up, till the seventh bar is
> complete.
>
> However, if you wish to use the high of the fourth bar as a
> resistance reference for the future, then your code may be used.
>
> ----- Original Message -----
> From: awlaimeng
> To: equismetastock@xxxx
> Sent: Friday, May 06, 2005 5:53 PM
> Subject: [EquisMetaStock Group] Category 3 resistance pattern -
> is my codes ok?
>
>
> I have created an indicator that will trigger signal when a
> Category 3 resistance pattern is formed.
>
> For the benefits of other user, a Category 3 resistance pattern is
> formed when the 3 bars immediately prior to and immediately after
> the pivotal bar must have their highs that are lower than the high
> of the bar pinpointing the Category 3 resistance.
>
> |
> | |
> | |
> | |
>
> The codes for my indicator are as below:
>
> {Category 3 Resistance}
> L1:=Ref(H,-6);
> L2:=Ref(H,-5);
> L3:=Ref(H,-4);
> PP:=Ref(H,-3);
> R1:=Ref(H,-2);
> R2:=Ref(H,-1);
> R3:=HIGH;
> bingo:=PP>L1 AND PP>L2 AND PP>L3 AND PP>R1 AND PP>R2 AND PP>R3;
> bingo
>
> My indicator plots a vertical line on same day (that means 7th.
> day) when the "bingo" statement is true. However I wanted the
> indicator to plot the vertical line on the same day as the bar
> pinpointing the Category 3 resistance (in this case the 4th. bar).
> I was able to "force" the indicator to do that by replacing the code
> "bingo" with
> "Ref(bingo,3)".
>
> I would appreciate comment whether the code "Ref(bingo,3)" is the
> proper way.
------------------------ 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/BefplB/TM
--------------------------------------------------------------------~->
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/
|