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

[EquisMetaStock Group] Re: highlight 2 years intervals



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxxx, "ptc_man3" <ptc_man3@xxx> 
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/