PureBytes Links
Trading Reference Links
|
Hi again Eric,
Just thinking - you might want to add;
if count >1 and count <= 3 then
count= 0
That should re-set count to 0 so as to be ready for the next test.
Without a re-set for count under all conditions you could start the next
test with some left over value that didn't reach the 4 or more trip
point.
Larry
ericzhou wrote:
>
> Larry, thanks a lot for your help!
>
> Eric
>
> ----- Original Message -----
> From: "Larry" <lameyering@xxxxxxxxxxxxx>
> To: <omega-list@xxxxxxxxxx>
> Sent: Saturday, January 14, 2006 8:57 PM
> Subject: Re: code help
>
> > Hi Eric,
> >
> > How about some thing like;
> >
> > if con 1 = true then
> > count = count +1
> > if con 2 = true then
> > count = count +1
> > etc.
> >
> > if count >= 4 then begin
> > plot a dot
> > count=0
> > end
> >
> > Larry
> >
> > ericzhou wrote:
> > >
> > > Hi list,
> > >
> > > Does anyone have idea on coding this:
> > > To count the number of criteriias that have been met at the last bar.
> > > for example, if any four conditions out of six become true, plot a dot or
> > > paintbar.
> > >
> > > Any suggestion will be much appreciated.
> > >
> > > Eric
|