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 argusthome, 03-08-2026, 10:06 AM
0 responses
84 views
0 likes
Last Post argusthome  
Started by NabilKhattabi, 03-06-2026, 11:18 AM
0 responses
47 views
0 likes
Last Post NabilKhattabi  
Started by Deep42, 03-06-2026, 12:28 AM
0 responses
29 views
0 likes
Last Post Deep42
by Deep42
 
Started by TheRealMorford, 03-05-2026, 06:15 PM
0 responses
32 views
0 likes
Last Post TheRealMorford  
Started by Mindset, 02-28-2026, 06:16 AM
0 responses
66 views
0 likes
Last Post Mindset
by Mindset
 
Working...
X