PureBytes Links
Trading Reference Links
|
Dear Richard, Thanks for the code. Seems to work well. I have another I need
some help on but it is to long to describe. Would you be interested? Thanks
again.
best'
cvmjr.
-----Original Message-----
From: richard macneil <rickinri@xxxxxxx>
To: Charles V. Mercer, Jr. <sundance@xxxxxxxxxxx>
Date: Saturday, October 10, 1998 6:26 PM
Subject: Re: Code
>I assume you mean you want to paint the bar after 4 closes that were
>higher/lower than the each of the past 4 bars each being lower than the
>previous bar. You need one for up and one for down.I made them so you could
>change the numbers in a row , so you could look at 2 or 6 or 8 etc. paste
>each into its own paint bar study.I tried them and they seem to work let me
>know
>Rick
>
>
>{4 bars up}
>Input: PRICE(CLOSE),barsback(4);
>VAR:COUNTERUP(0);
>if C> C[1] THEN COUNTERUP=COUNTERUP+1 ELSE COUNTERUP=0;
>
> IF COUNTERUP >= barsback THEN BEGIN
> Plot1(High,"High");
> Plot2(Low,"Low");
> IF CheckAlert Then Alert = TRUE;
>End;
>
>
>
>******************************************************
>{4 bars down}
>Input: PRICE(CLOSE),barsback(4);
>VAR:COUNTERdwn(0);
>if C< C[1] THEN COUNTERdwn=COUNTERdwn+1 ELSE COUNTERdwn=0;
>
> IF COUNTERdwn >= barsback THEN BEGIN
> Plot1(High,"High");
> Plot2(Low,"Low");
> IF CheckAlert Then Alert = TRUE;
>End;
>
>
|