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

[amibroker] First day of buy signal



PureBytes Links

Trading Reference Links

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