Peter,
Plot the HUI index on a chart.
Then plot the following as an indicator.
lastDay:=LastValue( DayOfMonth( ));
Date:=DayOfMonth( )>=lastDay;
y:=Date AND Alert(Date=0, 2);
Gold:= Security( "XAU",C);
If(y=1,Ref(gold, -1),gold) ;
Let me know how if this does the trick for you.
Preston
--- In
equismetastock@ yahoogroups. com, Peter Fertig <pfertig@xxx >
wrote:
>
> Preston,
> Â
> I tried your proposal for the recent US Labour Day. In the function
input, I typed in both, the date of the Labour Day and the trading
day before. Nevertheless, as soon as I inserted gold (XAU=), there
was again a gap at the market holiday in the Amex Gold Bugs index.
> Â
> But again, thanks for the tip.
> Â
> Peter
>
> --- pumrysh
<
no_reply@xxxxxxxxxx s.com> schrieb am Fr, 26.9.2008:
>
> Von: pumrysh <
no_reply@xxxxxxxxxx s.com>
> Betreff: [EquisMetaStock Group] Re: interruptions in line charts on
market holidays
> An:
equismetastock@ yahoogroups. com> Datum: Freitag, 26. September 2008, 4:34
>
>
>
>
>
>
> Peter,
>
> Here's a bit of code that addresses your problem:
>
> D1:=Input("Day" ,1,31,30) ;
> M1:=Input("Month" ,1,12,12) ;
> Y1:= Input("Year" ,1900,2400, 2000);
> D:=DayOfMonth( ); M:=Month(); Y:=Year();
> Date:=D>=D1 AND M=M1 AND Y=Y1 OR Y>Y1 OR Y=Y1 AND M>M1;
> Start:=Date AND
Alert(Date=0, 2);
> ValStart:=ValueWhen (1,Start, C);
> Valstart;
>
> The key is the Start variable. Notice that the alert condition is
> used to hold the _expression_ true for the specified period. This was
a
> trick that Roy Larsen came up with to resolve the problem.
Something
> similar should work in your case.
>
> Hope this helps,
>
> Preston
>
> --- In equismetastock@ yahoogroups. com, Peter Fertig <pfertig@ >
> wrote:
> >
> > Hello,
> >
> > On of the advantages of MetaStock is that one could easily
compare
> differnet, but related instruments just by drag & drop. I wanted to
> compare the development of spot gold and the Amex gold bugs index.
> However, as gold is trading also on US market holidays, and the HUI
> index is not trading on US market holidays, dragging the
line of
the
> HUI index into the gold chart resulted in a line with interruptions
> on those days, the US were out for a holiday. Is there any way to
get
> a smooth line, which is not interrupted on those days?
> >
> > Best regards
> > Peter
> >
> > ____________ _________ _________ _________ _________ __
> > Do You Yahoo!?
> > Sie sind Spam leid? Yahoo! Mail verfügt über einen
herausragenden
> Schutz gegen Massenmails.
> >
http://mail. yahoo.com
> >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ____________ _________ _________ _________ _________ __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
Schutz gegen
Massenmails.
>
http://mail. yahoo.com>