Author: OKAS
Let’s see what a bearish engulfing is:
1. The previous candlestick must be a white one
2. The current candlestick must open upper the body of the previous candlestick
3. The current candlestick must close below the body of the previous candlestick
REM Compute the power of the bullish trend
// Find the lowest quote on the last 8 bars
LowPoint = LOWEST[8](LOW)
// Compute the variation of price from this point to now
Advance = CLOSE- LowPoint
// Compute the usual volatility of the stock (median of True Range)
Norm = SUMMATION[3](TR) - HIGHEST[3](TR) - LOWEST[3](TR)
REM Stock picking : only the bearish engulfing
Filter = CLOSE[1] > OPEN[1] AND OPEN > CLOSE[1] AND CLOSE < OPEN[1]
REM We keep the most serious advances
SCREENER [ Filter ] (Advance / Norm AS"Trend Power")
You must be logged in to post a comment.
Thanks a lot.
Here the same code only for Bullish Engulfing:
REM Compute the power of the bullish trend
// Find the HIGHEST quote on the last 8 bars
HighPoint = HIGHEST[8](LOW)
// Compute the variation of price from this point to now
Advance = OPEN- HighPoint
// Compute the usual volatility of the stock (median of True Range)
Norm = SUMMATION[3](TR) - HIGHEST[3](TR) - LOWEST[3](TR)
REM Stock picking : only the Bullish engulfing
Filter = OPEN[1] > CLOSE[1] AND CLOSE > OPEN[1] AND OPEN < CLOSE[1]
REM We keep the most serious advances
SCREENER [ Filter ] (Advance / Norm AS"Trend Power")
Hi! I was trying to import the code but it doesn t let me do it. Do you mind to do a ITF file? That would be very helpful!