[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: highlight 2 years intervals



PureBytes Links

Trading Reference Links

Fernando,

The original formula never worked in the first place. It did not 
highlight 2 year intervals. It did use a 2 year calculation period. 

All that I have provided you with is a way to incorporate a starting 
point for the calculations.

If you start in 1907 and use a 10 year count, the first year after 
1907 that is divisible by 10 would be 1910. The next would be 1920 
and so on.

hope this helps,

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, Fernando Santos 
<ptc_man3@xxx> wrote:
>
> Hi
> 
> Thank you for the explanation.
> Something weird is happening, I have DJIA data from 1900 and if we 
choose 1907 and start the count at 10 years he don't start in 1907 
but in 1910, 1920, 1930 instead of 1907, 1917, 1927...
> 
> Why is this happening?
> 
> thank you
> 
> 
> 
> ----- Original Message ----
> From: pumrysh <no_reply@xxxxxxxxxxxxxxx>
> To: equismetastock@xxxxxxxxxxxxxxx
> Sent: Saturday, May 12, 2007 11:05:56 PM
> Subject: [EquisMetaStock Group] Re: highlight 2 years intervals
> 
> 
>     
> Try this:
> 
> 
> 
> StYear:=Input( "Start counting from",1800,2200, 2000);
> 
> interval:=Input( "Signal years divisible by",1,100,2) ;
> 
> start:= Year()>=StYear;
> 
> If(start,Mod( Year(),interval) =0,0)
> 
> 
> 
> By using an if statement it eliminates everything that is not 
equal 
> 
> or less than the start date thus calculations only begin after 
your 
> 
> selected date.
> 
> 
> 
> Hope this helps,
> 
> 
> 
> Preston  
> 
> 
> 
> --- In equismetastock@ yahoogroups. com, "ptc_man3" <ptc_man3@ .> 
> 
> wrote:
> 
> >
> 
> > Hi
> 
> > 
> 
> > I'd like to change this formula so it would be possible to start 
> 
> the
> 
> > interval in a year choosen by us. I tried this but didn't work :-
(
> 
> > 
> 
> >
> 
> > StYear:=Input( "Start counting from",1800,2200, 2000);
> 
> > interval:=Input( "Signal years divisible by",1,100,2) ;
> 
> > Mod(Year()=StYear, interval) =0
> 
> > 
> 
> > 
> 
> > any help would be appreciated and of course a small explanation 
on 
> 
> why
> 
> > it didn't work would be, again, appreciated
> 
> > 
> 
> > Thank you
> 
> >




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/