| mystiq 650 posts
 msg #74470
 - Ignore mystiq
 | 5/16/2009 7:20:20 PM 
 TRO
 'OR Implementation */
 /* by definition OR is TRUE IF A is TRUE, B is TRUE, or A AND B is TRUE*/
 /* THEREFORE by counting and adding, if the sum is greater than 0 the OR condition is TRUE. */
 /* Copyright 2003 by Avery T. Horton, Jr. */
 /* Permission to use OR Implementation withing StockFetcher Granted */
 /* Permission to publish or post on any other forum DENIED */
 /* ----------------------------------------------------------------*/
 set{A, count(close above 100, 1)}
 set{B, count(volume above 50,000,000, 1)}
 set{OR1, A + B} show stocks where OR1 above 0]
 =======================================================
 set{OR1, A + B} returns a set statement error when i substitue my variable(am i missing something?)
 
 set{A, count(doji > 0 1 day ago,1)}
 set{B, count(doji > 0 2 days ago,1)}
 set{OR1,A + B} show stocks where OR1 above 0
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #74476
 - Ignore TheRumpledOne
 | 5/16/2009 7:39:25 PM 
 set{A, count(close above 100, 1)}
 set{B, count(volume above 50,000,000, 1)}
 set{OR1, A + B} show stocks where OR1 above 0]
 
 
 Yes, you made a TYPO see that "]" ??
 
 It should be a "}"
 
 
 
 
 
 
 
 | 
| mystiq 650 posts
 msg #74481
 - Ignore mystiq
 modified
 | 5/17/2009 2:41:40 AM 
 TRO- it seemd to work only for your formula - I corrected the TYPO with same results
 
 set{OR1, A9 + B9}                                              Error: Syntax error in filter.
 set{A9, count(doji > 0 1 day ago,1)}               OK
 set{B9, count(doji > 0 2 days ago,1)}             OK
 show stocks where OR1 above 0                   Unable to process due to set{} errors.
 ===================================CLICK BELOW=============================================
 set{A9, count(doji > 0 1 day ago,1)}
 set{B9, count(doji > 0 2 days ago,1)}
 set{OR1, A9 + B9}
 show stocks where OR1 above 0
 set{HiLoRng, High -  Low}
 set{ClOpRng, abs(Close minus Open)}
 set{ClOp_HiLo_ratio, ClOpRng / HiLoRng}
 set{Range, count(HiLoRng is below .05, 1)}
 set{Body, count(ClOp_HiLo_ratio is less than .02, 1)}
 set{doji, Range * Body}
 
 
 | 
| Eman93 4,750 posts
 msg #74482
 - Ignore Eman93
 | 5/17/2009 3:32:51 AM 
 
 
 
 
 | 
| Eman93 4,750 posts
 msg #74483
 - Ignore Eman93
 | 5/17/2009 3:45:05 AM 
 I took a look at it...... you need to set another var for doji 1 day ago and doji 2 days ago...
 because its another var, my guess...
 
 post the whole thing and i will take a look....
 
 The reds lost time to go to bed.........
 
 
 | 
| chetron 2,817 posts
 msg #74485
 - Ignore chetron
 | 5/17/2009 8:40:40 AM 
 YOU DON'T NEED ALL THE LOGIC
 
 I JUST POSTED THE TRIPLE DOJI FILTER IN THE DOJI THREAD
 
 HTH
 
 
 | 
| mystiq 650 posts
 msg #74490
 - Ignore mystiq
 | 5/17/2009 12:00:26 PM 
 Eman93 5/17/2009 3:45:05 AM
 I took a look at it...... you need to set another var for doji 1 day ago and doji 2 days ago...
 because its another var, my guess...
 post the whole thing and i will take a look....
 The reds lost time to go to bed.........
 ========================================Eman93 that is the whole filter.....
 chetron 5/17/2009 8:40:40 AM
 YOU DON'T NEED ALL THE LOGIC
 I JUST POSTED THE TRIPLE DOJI FILTER IN THE DOJI THREAD
 HT
 ========================================thx CHET but need the OR solution also, not just the AND solution.....
 
 
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #74492
 - Ignore TheRumpledOne
 | 5/17/2009 12:51:37 PM 
 
 
 
 You have to define and calculate a variable BEFORE you use it in a calculation.
 
 
 
 
 | 
| mystiq 650 posts
 msg #74507
 - Ignore mystiq
 | 5/17/2009 10:01:38 PM 
 TRO:::Thx 4 da solution:You have to define and calculate a variable BEFORE you use it in a calculation.
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #83456
 - Ignore TheRumpledOne
 | 11/24/2009 10:10:09 PM 
 pop to the top
 
 
 |