PureBytes Links
Trading Reference Links
|
Hi Roy,
You are amazing !
What can I say ? great job !
Thanks for your help,
Regards,
Marco
Roy Larsen a écrit :
> Hi Marco
>
>
> Taking just one RSI Range.
>
> R:=RSI(14);
> A:=R<30 AND R>=20;
> B:=Max(1,Cum(A));
> Cum(A*ADX(14))/B;
>
> Repeat the process for each range. The Max() function is included to prevent divide-by-zero errors.
>
>
> Kind regards
>
> Roy
> www.metastocktips.co.nz
>
>
>
>
>
> ----- Original Message -----
> From: "khamsina11" <Khamsina11@xxxxxxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Saturday, March 12, 2005 12:02 AM
> Subject: Re: [EquisMetaStock Group] How to count the number of occurences ?
>
>
>
>
> Hi Roy,
>
> Yes absolutely :)
> Your code works fine ! (as usual). Thank you very much.
>
> What I would like to do now is a litte bit more tricky : I want to take
> the average of the ADX for each RSI interval.
>
> Let's imagine :
>
> R:=RSI(C,14);
> Cum(R<20 and R>=10) returns 3 occurrences.
>
> In other words, Th RSI was 3 times within the 10 - 20 interval.
>
> For each occurrence, the corresponding values of the ADX were :
>
> - First occurrence of the RSI within the interval (R<20 and R>=10) : the
> ADX value was 50.
> - Second occurrence of the RSI within the interval (R<20 and R>=10) :
> the ADX value was 30.
> - Third occurrence of the RSI within the interval (R<20 and R>=10) : the
> ADX value was 25.
>
> So, the final result is :
>
> - Average of the ADX for the RSI interval (R<20 and R>=10) = (50+30+25)/3.
>
> Your help would be greatly appreciated.
>
> Thanks in advance,
>
> Marco
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> 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/
|