StockFetcher Forums · General Discussion · help please. Trying to using Absolute value to change this filter<< >>Post Follow-up
mdl060374
94 posts
msg #101381
Ignore mdl060374
modified
6/28/2011 11:14:59 AM

I am trying to alter this popular filter, but am continuously getting bugs.. What am I missing.

I am trying to to maintain the column layouT based on past100 days, but changing criteria to find gains or losses being less that x%..

here is the part i am trying to change....
Original:
/* Run Forest, Run */

close is between 1 and 15
avg volume(90) above 50000

set{volcnt, count(volume above 50000, 100) }
set{volzero, count(volume equal 0, 100) }

set{x1, high - open}
set{Long_Profit, x1/open }

set{C1A, count(Long_Profit > .04 , 100)}
set{C2A, count(Long_Profit > .09, 100)}
set{C0010, C1A - C2A}




........

MY ATTEMPTS TO CHANGE ARE AS FOLLOWS (... looking to see how many days stocks closed less than +/- 2% change.)
I am using ABS to try to find absolute value, etc..
/* Run Forest, Run */

close is between 1 and 15
avg volume(90) above 50000

set{volcnt, count(volume above 50000, 100) }
set{volzero, count(volume equal 0, 100) }

set{x1, close - open}
set{Long_Profit, abs(x1/open) }

set{C1A, count(Long_Profit > .00 , 100)}
set{C2A, count(Long_Profit< .02, 100)}
set{C0010, C1A - C2A}


I am sure its an easy fix, can someone help me?

mdl060374
94 posts
msg #101454
Ignore mdl060374
7/6/2011 12:50:26 PM

hmm.. No one can help me with this? administrators? talented users that used to be here all the time?


duke56468
683 posts
msg #101458
Ignore duke56468
7/6/2011 2:49:49 PM

Fetcher[
/* Run Forest, Run */

close is between 1 and 15
avg volume(90) above 50000

set{volcnt, count(volume above 50000, 100) }
set{volzero, count(volume equal 0, 100) }

set{x1, close - open}
set{Long_Profit, abs(x1/open) }

set{C1A, count(Long_Profit > .00 , 100)}
set{C2A, count(Long_Profit< .02, 100)}
set{C0010, C1A - C2A}
]



Not sure what changes you are making but this runs with no errors

mdl060374
94 posts
msg #101482
Ignore mdl060374
7/7/2011 2:29:47 PM

thanks for your response. I actually forgot to add a littel code at the end which I meant to originally to show the column.

I added:

and add column C0010 {0_2}

and it glitches. and the "debugger" is bugged and doesnt work. THanks if you can help me .

StockFetcher Forums · General Discussion · help please. Trying to using Absolute value to change this filter<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.