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

[EquisMetaStock Group] Re: 10 day new high...



PureBytes Links

Trading Reference Links

All,

Fisrt, I would like to thank everyone that has helped me with this code.
I think you all have answered my question. I will take the code in Prestons post and do some testing. I will report back my test results.

Thanks

gpham01


--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> All,
> 
> Had a chance to plot some indicators on a chart.
> 
> Here is what I used
> 
> {Test HHV}
> A1:=HHV(H,10) > Ref(HHV(H,9),-1);
> A2:=HHV(H,10) > Ref(HHV(H,10),-1);
> A3:= Ref(HHV(H,9),-1)< H;
> A4:= H = HHV(H,10);
> A1; A2*2; A3*3; A4*4;
> 
> All four can signal on the same day at times. A2 and A4 give incorrect signals though.
> 
> As MC pointed out h>hhv(h,10) will always be false or never give a signal. The reason is due to the fact that the high of the day is used in the calculation for the HHV. This becomes obvious when you look at A1 and A3 above.
> 
> I hope this answers the question that gpham01 had.
> 
> Thanks everyone for your input.
> 
> 
> Preston
> 
>   
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> >
> > MC,
> > 
> > Appreciate the input. I'm still having problems getting around the use of the ref() statement. I quess I'll have to plot it out on a chart...maybe this p.m.  At least we're headed in the right direction now...or maybe not. 
> > 
> > Just had a thought of turning around the comparison and using something more like HHV(H,9) < H 
> > 
> > Preston
> > 
> > 
> > 
> > --- In equismetastock@xxxxxxxxxxxxxxx, "p_panther_73" <mchantzi@> wrote:
> > >
> > > h>hhv(h,10) will always be false.
> > > 
> > > h>ref(hhv(h,9),-1) is correct.
> > > 
> > > h=hhv(h,10) isn't, since we can easily have a repeated high.
> > > 
> > > 
> > > Regards,
> > > 
> > > mc
> > > 
> > > --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> > > >
> > > > So far we have 
> > > > 
> > > > H = HHV(H,10)
> > > > 
> > > > and
> > > > 
> > > > H>Ref(HHV(H,9),-1)
> > > > 
> > > > Since we are looking for a "new high" would we really want our high to be egual to the highest high of the last 10 days? 
> > > > 
> > > > Shouldn't we look for a high that is higher than the highest high of the last 10 days?
> > > > 
> > > > If we use a ref(HHV(H,9),-1) would we be comparing our values to the latest set of high values or the set that was just prior?
> > > > 
> > > > 
> > > > Therefore I believe that using H > HHV(H,10) will give us the value we are looking for.
> > > > 
> > > > Anyone else agree?
> > > > 
> > > > 
> > > > Preston
> > > > 
> > > > 
> > > > 
> > > >  
> > > > 
> > > > 
> > > > --- In equismetastock@xxxxxxxxxxxxxxx, "gpham01" <gpham01@> wrote:
> > > > >
> > > > > 
> > > > > 
> > > > > I am trying to write a exploration that will search for stocks at a 10 day new high. I'm not haveing much luck, Does anyone have any code that would point me in the right direction?
> > > > > 
> > > > > Thanks
> > > > > 
> > > > > gpham01
> > > > >
> > > >
> > >
> >
>




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

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/