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

Re: [Metastockusers] 8 days in a row: check my syntax



PureBytes Links

Trading Reference Links

Hi
 
Am using
 
X := BarsSince(C < Ref(C,-1));
Y := BarsSince(C > Ref(C,-1));
 
X-Y
 
and it works fine
 
regards
sharad lohia
----- Original Message -----
Sent: Thursday, May 26, 2005 10:05 AM
Subject: [Metastockusers] 8 days in a row: check my syntax

Sum(Ref(P,-1)<=(P),8)=8

If I plot that on the close, it should give me a +1 reading when each of the
closes for the last 8 days is higher than the last, correct?

If I've done this right, the last time we had 8 days of higher highs on the
COMPX was on 12/27/1999.



So how could I make an indicator which would display a +8 when it's been 8
days of higher highs; a +9 for 9 days, etc. & etc.?

I want to play with such a result as an exercise in elementary statistics.
e.g.: odds are .0002 ?? that the ninth day will be higher.

Regards,

Jim
Day late and a dollar short...














Yahoo! Groups Links