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 [email protected], "dralexchambers"
<[EMAIL PROTECTED]> 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.
>


Reply via email to