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 CaptainJack, 04-24-2026, 11:07 PM
0 responses
18 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
120 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
174 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
92 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
134 views
0 likes
Last Post cmoran13  
Working...
X