I am trying to creat a indicator (scan):
1. Stocks price between 1 and 10 with Volume > 10 M
2. Stocks price between 10 and 100 with Volume > 100 K
3. Stocks price greater than 100 with Volume > 10 K
protectedoverridevoid OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
//Plot0.Set(Close[0]);
// Set the value
if (((Close[0] > 1 && Close[0] < 10 ) && Volume[0] > 10000000) ||
((Close[0] >= 10 && Close[0] < 100 ) && Volume[0] > 100000) ||
(Close[0] >= 100 && Volume[0] > 10000))
{
Plot0.Set(1);
}
else
Plot0.Set(0);
}
Found my mistake and seems to be working now....