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

[EquisMetaStock Group] Re: Need guidance in Building formula



PureBytes Links

Trading Reference Links

Preston,
how to restricted display with specified priode of future date 
instead of back time priode. 

Rgds
Sat
--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> Vishal,
> 
> Try this one and see if its anything close to what you are looking 
> for.
>  
> This is how it works. 
> You would like to show the MACD and its trigger for 30 days but 
> restrict that to a period of 10 days ago.
> 
> 
> {Restricted Display v2.0}
> {Written by Preston Umrysh}
> {Correctly Displays an indicator for a specified period of time}
>  
> DisPds:=Input("Select Display Periods",1,1111,30);
> BackPds:=Input("Select Setback Periods",0,1111,10);
> 
> {Indicator} {Place your indicator/s here}
> Ind:=MACD(); 
> Ind2:=Mov(Macd(),9,E);
> 
> {Restricted Display}
> ResPds:= Alert(BarsSince(Cum(1)=LastValue(Cum(1)-
> (DisPds+BackPds))=1),1);
> Plot:=ValueWhen(1,ResPds,Ref(Ref(Ind,-BackPds),BackPds));
> Plot2:=ValueWhen(1,ResPds,Ref(Ref(Ind2,-BackPds),BackPds));
> 
> Plot; Plot2; {end}
> 
> 
> 
> 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/