Hello all, by coincidence I was working on the same issue and can't seem to get
my head around it why this doesn't work.
This is what I do:
Simple buy statement:
Buy = Cond1 AND Cond2 AND Cond3;
Then I wish to check the last five bars if the buy statement is true and write
the tickers to a watch list.
MyPeriod = 5;
for( i = 1; i < MyPeriod AND i < BarCount; i++ )
{
if( Buy[i] )
{
CategoryAddSymbol( "", categoryWatchlist, 58 );
}
}
This adds nothing at all to the watchlist. Where does my logic go wrong on this
one?
Thanks