PureBytes Links
Trading Reference Links
|
Hi Dilawar
While not giving you the answer, I believe it lies in this direction:
A1:=Mov(C,SIG,W);
Event1:=Cross(C,A1);{Blue}
Event1Bar:=((1+LastValue(Cum(Event1))-Cum(Event1))*Event1)=EVN;{The
EVN instance of Event1}
B1:=ValueWhen(1,Event1bar,C);{The value of C at that instance}
B1;
Regards,
Ron
--- In equismetastock@xxxxxxxxxxxxxxx, Dil Mira <infantrader@xxx>
wrote:
>
> Respected Sir,
>
> I have written a code posted below. I want to restrict the
horizontal lines to the event when close is above/below moving
average. Currently it displays horizontal lines on previous data
also. Please help & oblige.
>
> SIG:=Input("Enter T-Line Periods",1,200,8);
> EVN:=Input("Enter Required Event",1,100,1);
> {---------------------------------------------------------------}
> A1:=Mov(C,SIG,W);
> x:=Cross(C,A1);{Blue}
> B1:=ValueWhen(EVN,x,C);
> x1:=Cross(A1,C);{Red}
> B2:=ValueWhen(EVN,x1,A1);
> A1;B1;B2
>
> Dilawar
>
>
> ---------------------------------
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! Search.
>
> [Non-text portions of this message have been removed]
>
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/
|