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?
|