Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price & Volume condition as indicator to scan stocks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Price & Volume condition as indicator to scan stocks

    I am not sure if I am doing this properly.

    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....
    Last edited by isitpossible; 07-12-2009, 03:45 PM. Reason: Found my mistake

Latest Posts

Collapse

Topics Statistics Last Post
Started by zstheorist, Today, 07:52 PM
0 responses
6 views
0 likes
Last Post zstheorist  
Started by pmachiraju, 11-01-2023, 04:46 AM
8 responses
150 views
0 likes
Last Post rehmans
by rehmans
 
Started by mattbsea, Today, 05:44 PM
0 responses
6 views
0 likes
Last Post mattbsea  
Started by RideMe, 04-07-2024, 04:54 PM
6 responses
33 views
0 likes
Last Post RideMe
by RideMe
 
Started by tkaboris, Today, 05:13 PM
0 responses
6 views
0 likes
Last Post tkaboris  
Working...
X