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

[EquisMetaStock Group] Re: Rate Of Change Since A Specific Date !?



PureBytes Links

Trading Reference Links

Preston,

Thank you for this coding, and all your work with this group. 
We all appreciate this great forum.

Dan


--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> Dan,
> 
> Here an indicator that works: 
> 
> {ROC SINCE DATE}
> D1:=Input("Day",1,31,30);
> M1:=Input("Month",1,12,12);
> Y1:= Input("Year",1900,2400,2000);
> Method:=Input("method:[1]percent,  [2]points",1,2,1);
> 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);
> ValEnd:=C;
> PerfChange:=(ValEnd-ValStart)/(ValStart*0.01);
> PointChange:=ValEnd-Valstart;
> If(Method=1,PerfChange,PointChange);
> 
> 
> Hope this helps,
> 
> Preston
> 
> 
> 




 
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/