stockfetchervong 16 posts msg #48302 - Ignore stockfetchervong | 
12/1/2006 10:11:55 PM
  please help me write a filter to bring only stocks that have a lower trough than the last trough and at the same time having macd histogram that have higher trough than the last macd histogram's trough - a divergence is happening- for long trade. 
 
 and write a filter do the opposite for short trade.
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48308 - Ignore TheRumpledOne modified | 
12/2/2006 12:19:47 PM
 
  	    
 
 
 
  
 Column PD2345 indicates when the POSITIVE DIVERGENCE occurred.  
 
 1000 means 2 days ago compared to today.
 0100 means 3 days ago compared to today.
 0010 means 4 days ago compared to today.
 0001 means 5 days ago compared to today.
 
 1100 means 2 and 3.
 
 I posted an RSI(2) divergence filter a long time ago.  I just replaced rsi(2) with MACD HISTOGRAM(12,36).
 
 Due to SF limitations, at the time, 4 was the limit of how manys days I could test for.
 
 HTH.
 
 
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48309 - Ignore TheRumpledOne modified | 
12/2/2006 12:23:27 PM
 
  	    
 
 I am an advanced subscriber... Let's see how far it can go!
 
 6 DAYS WORKS.
 
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48318 - Ignore TheRumpledOne | 
12/2/2006 12:49:01 PM
 
  	    
 
 FINALLY PUSHED IT TO THE LIMIT!!
 
 13 days is the max.
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48316 - Ignore TheRumpledOne modified | 
12/2/2006 12:49:23 PM
 
  	    
 
 13 days works.
 
 This power of this is AWESOME!
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48315 - Ignore TheRumpledOne modified | 
12/2/2006 12:49:45 PM
 
  	    
 
 12 days works!
 
 Is there a limit?
 
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48314 - Ignore TheRumpledOne modified | 
12/2/2006 12:50:10 PM
 
  	    
 
 11 days works... wonder how far I can go...
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48310 - Ignore TheRumpledOne modified | 
12/2/2006 12:50:29 PM
 
  	    
 
 7 days works!
 
 I reversed the order of the PD column so it's easier to add to it.
 
  
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48311 - Ignore TheRumpledOne modified | 
12/2/2006 12:50:44 PM
 
  	    
 
 8 days works!!
 
 
 
 
  | 
TheRumpledOne 6,529 posts msg #48312 - Ignore TheRumpledOne modified | 
12/2/2006 12:50:56 PM
 
  	    
 
 9 days works.
 
 
 
  |