Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() | There could be two reasons for not getting any hits (if the compile is correct): 1. the starting population is too small, or 2. the formula is not doing what you hoped The first is easy to check ... just set population to All US Stocks. If still no hits, then break the formula down to smaller pieces and make sure each piece works right ... -Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 4) = 4 and Bol_Upper(9,1.2) < Bol_Upper(9,1.2)[1] would become: Bol_Upper(9,1.2) < Bol_Upper(9,1.2)[1] (check it by itself) ... and ... -Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 4) = 4 (check it by itself) if the first piece works but the second doesn't, break the second down: Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2] (checks for just one bar before current to be "up" ... if that works, then try this form, which should give the same results: -Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 1) = 1 if that works, then gradually increase the two final "1's" to 2's then 3's then 4's ... each time you add another test, it gets tougher to satisfy and you will get fewer hits. I can't take time to do a full development and tuning process for you ... but hopefully that "plan" will lead you to a solution, or at least to help focus on the problem area. |