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

[EquisMetaStock Group] Re: Numbering Problem



PureBytes Links

Trading Reference Links

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!­»´ä´£¨Ñºô¤W¦w¥þ§ð²¤¡A±Ð§A¦p¦ó¨¾½d¶Â«È! ½Ð«e©¹ http://hk.promo.yahoo.com/security/ ¤F¸Ñ§ó¦h!
> >
>




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

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/