PureBytes Links
Trading Reference Links
|
Hello,
I see the two following ways:
buy = ExRem( buy, sell );
for(..) {
if ( buy[i] == 1 ) ..
}
or inside the loop:
if ( ( buy[i] == 1 ) and ( buy[i-1] == 0 ) )
Nicolas
--- In amibroker@xxxxxxxxxxxxxxx, "dralexchambers"
<dralexchambers@xxx> wrote:
>
> How do I find the first day of a buy in the following loop:
>
> for (i=1; i<BarCount; i++)
> {
> if (FIRST DAY OF BUY SIGNAL ONLY)
> XXX[I] = YYYY;
> }
>
> I am looking for the first day of each buy and not subsequent days in
> the buy, eg:-
>
> Monday = No signal, or sell from previous trade
> Tues = Buy <<<- today only
> Weds = In trade
> Thurs = In trade
> Fri = Sell
>
> Thanks in advance.
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.20/664 - Release Date: 2/2/2007 3:42 PM
|