| philipina 8 posts
 msg #158190
 - Ignore philipina
 | 12/14/2021 3:32:56 AM 
 Hi,
 
 Here below is a filter I just made to find stocks with Momentum.
 This is based on the 4% breakout from Stockbee but with small improvement by adding a can on the MA.
 
 /*
 This filter will search fro 4% breakout WHERE
 - Price > 0.2
 - The candle was green on the day
 - The Volume is above 100K
 - The volume must be higher than the previous day
 - The price is either above the MA50 OR above the M20 if the MA20 is moving UP
 */
 
 /*Condition 1 = Close should be above MA20 AND the MA20 is moving UP*/
 set{A1, count(close is above MA(20),1)}
 set{B1, count(MA(20) is above MA(20) 1 day ago, 1)}
 set{condition1, A1 * B1}
 
 /*Condition 2 = Close should be above MA50*/
 /*-----------------------------------------*/
 set{condition2, count(close is above MA(50), 1)}
 
 /*Condition 1 or 2 should be met*/
 set{atLeastOneMAConditionIsOK, condition1 + condition2}
 
 show stocks where close is more than 4% above close 1 day ago /*4% UP on the day*/
 and close is above open /*Candle closed green at the end of the day*/
 and close is above 0.2 /*Minimum price = 0.2*/
 and volume is above 100000 /*Minimum volume is 100K*/
 and volume is more than 5% above volume 1 day ago /*The volume must be higher than the previous day*/
 and atLeastOneMAConditionIsOK is above 0
 
 draw MA(20)
 draw MA(50)
 do not draw MA(90)
 
 
 
 
 
 
 |