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

Re: [EquisMetaStock Group] How to count the number of occurences ?



PureBytes Links

Trading Reference Links

Hi Andrew

The hard ones get left for Jose.

I recall that I did something like finding the three lowest RSI values a little while back. I see if 
I can find the thread at the TradeEquity Yahoo group. The problem with this sort of exercise in 
MetaStock is that it probably requires the use of LastValue(). That's OK for an indicator, but it 
precludes the use of the code in a systems test.

Kind regards

Roy
www.metastocktips.co.nz






----- Original Message ----- 
From: "Andrew Tomlinson" <andrew_tomlinson@xxxxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Friday, March 11, 2005 1:43 PM
Subject: RE: [EquisMetaStock Group] How to count the number of occurences ?


> That was too easy. How about this one - I want to take the average of the
> three highest peaks in an unbounded oscillator over the last 6 months (also
> the three lowest, but I'm assuming that will flow from the first answer).
>
> Any takers?
>
> Best
> Andrew
>
>
>
>
> -----Original Message-----
> From: Roy Larsen [mailto:rlarsen@xxxxxxxxxxxxxx]
> Sent: Thursday, March 10, 2005 6:18 PM
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: Re: [EquisMetaStock Group] How to count the number of occurences ?
>
>
>
> Hi Marco
>
> Is this what you mean?
>
> R:=RSI(C,14);
> Cum(R<10);
> Cum(R<20 and R>=10);
> Cum(R<30 and R>=20);
> Cum(R<40 and R>=30);
> Cum(R<50 and R>=40);
> Cum(R<60 and R>=50);
> Cum(R<70 and R>=60);
> Cum(R<80 and R>=70);
> Cum(R<90 and R>=80);
> Cum(R>=90);
>
>
> Kind regards
>
> Roy
> www.metastocktips.co.nz
>
>
>
>
> ----- Original Message ----- 
> From: "khamsina11" <Khamsina11@xxxxxxxx>
> To: <equismetastock@xxxxxxxxxxxxxxx>
> Sent: Friday, March 11, 2005 10:48 AM
> Subject: [EquisMetaStock Group] How to count the number of occurences ?
>
>
>>
>>
>>
>> Hi,
>>
>> I would like to know (for all the data available) the number of times
>> an
>> indicator has been within an interval.
>>
>> For example, with a RSI : 0-9, 10-19, 20-29..... until 100.
>>
>> Thanks for your help,
>>
>> Marco
>>
>>
>>
>>
>>
>>      Yahoo! Groups Sponsor
>>            ADVERTISEMENT
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> ----------
>> Yahoo! Groups Links
>>
>>  a.. To visit your group on the web, go to:
>> http://groups.yahoo.com/group/equismetastock/
>>
>>  b.. To unsubscribe from this group, send an email to:
>> equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>>
>>  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>> Service.
>>
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>      Yahoo! Groups Sponsor
>            ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------------------
> Yahoo! Groups Links
>
>  a.. To visit your group on the web, go to:
>  http://groups.yahoo.com/group/equismetastock/
>
>  b.. To unsubscribe from this group, send an email to:
>  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>
>  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/