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

Re: [EquisMetaStock Group] Re: Numbering Problem



PureBytes Links

Trading Reference Links


Thanks MC

Cheers,
Hank



--- 2009年3月19日 星期四,p_panther_73 <mchantzi@xxxxxxxxx> 寫道﹕

> 寄件人: p_panther_73 <mchantzi@xxxxxxxxx>
> 主題: [EquisMetaStock Group] Re: Numbering Problem
> 收件人: equismetastock@xxxxxxxxxxxxxxx
> 日期: 2009 3 19 星期四 上午 8:53
> In case I get it right, are you asking for the number of
> bars in a row?
> 
> In this case you could simply write:
> 
> BarsSince(C<=Ref(C,-2))
> 
> Then you should create new symbols in expert advisor for
> every single value, 1,2,...etc.
> 
> For e.g. you should name a new symbol "1" and
> then write down
> 
> BarsSince(C<=Ref(C,-2))=1
> 
> Then a new symbol, named "2" with
> 
> BarsSince(C<=Ref(C,-2))=2
> 
> and so on.
> 
> 
> Regards,
> 
> mc
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh
> <no_reply@xxx> wrote:
> >
> > Hank,
> > 
> > The idea is very similar to that of the Demark
> indicators.
> > 
> > Try this:
> > 
> > Condition:=If(C > Ref(C,-2),1,0);
> > Count:= Cum(Condition);
> > If(count > Ref(count,-1),count,0);
> > 
> > Preston
> > 
> >  
> > 
> > --- In equismetastock@xxxxxxxxxxxxxxx, Henry Pang
> <hankpang@> wrote:
> > >
> > > Dear All, 
> > > 
> > > I am trying to number the bar using Expert
> Advisor. The rule is very simple "Close must be higher
> than the Previous 2 days close" (C >Ref (C,-2)) and
> I wish to number them 1 by 1.... Unfortunately, I only get 1
> for all the bar. Please help.. The attached file is S&P
> 500 for your reference. 
> > > 
> > > Thank you
> > > 
> > > Cheers,
> > > Hank 
> > > 
> > > 
> > >      
> Yahoo!香港提供網上安全攻略,教你如何防範黑客!
> 請前往 http://hk.promo.yahoo.com/security/ 了解更多!
> > >
> >


      Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http://hk.promo.yahoo.com/security/ 了解更多!


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

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/