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

Counting Highs



PureBytes Links

Trading Reference Links

I want to count the number of  new 20 Day Highs that
have occurred since the market went flat.
This just counts the number of days since the first 20
day high, what am I doing wrong?

If HH20Day <> 0 Then
HH20Day = HH20Day + 1 ;

If MarketPosition=0 and high=highest(h,20) then
HH20day=1;

Thanks in advance,

Mike