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

[EquisMetaStock Group] Re: code for first 10 days' closes<11th day high, plse



PureBytes Links

Trading Reference Links

rayhhc,

Correct this 

A:= mov(close,10,s);
B:= mov(high,10,s);
A<B;


Should be 

A:= mov(close,10,s);
B:= mov(high,11,s);
A<B;

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> rayhhc,
> 
> It appears that you are asking for
> 
> code for first 10 days' closes<11th day high, plse
> 
> It is hard to understand exactly what you are looking for or 
planning 
> on doing with this type of signal indicator. Several ideas come to 
> mind. One is to use the close of the 10th bar and high of the 11th 
> bar. This would require using cum() to count the bars. Something 
like:
> 
> A:= ValueWhen(1,cum(1)=10,close);
> B:= ValueWhen(1,cum(1)=11,high);
> A<B;
> 
> Or maybe you just wanted to look at the high and close of 10 and 11 
> days ago. Like this:
> 
> A:= ref(close,-10);
> B:= ref(high,-11);
> A<B;
> 
> A final option is to use moving averages like this:
> 
> A:= mov(close,10,s);
> B:= mov(high,10,s);
> A<B;
> 
> 
> Hope something here will be of value to you,
> 
> 
> Preston
>



------------------------------------

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/