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 Segwin, 05-07-2018, 02:15 PM
10 responses
1,768 views
0 likes
Last Post Leafcutter  
Started by Rapine Heihei, 04-23-2024, 07:51 PM
2 responses
30 views
0 likes
Last Post Max238
by Max238
 
Started by Shansen, 08-30-2019, 10:18 PM
24 responses
943 views
0 likes
Last Post spwizard  
Started by Max238, Today, 01:28 AM
0 responses
10 views
0 likes
Last Post Max238
by Max238
 
Started by rocketman7, Today, 01:00 AM
0 responses
7 views
0 likes
Last Post rocketman7  
Working...
X