This little handy screener allows you to easily detect “Harami” ( in Japanese), or “inside bar” (in English).
Without going into details , you will agree that it is useful to detect a number of these, particularly on forex where many strategies are working with it.
Here is the code of the screener, to detect them. Remember to select the desired market (eg “Forex”) and timeframe ( for example, ” Daily “).
REM inside bar
c1= high[0] < high[1]
c2= low[0] > low[1]
insidebar = c1 and c2
screener[insidebar]
For the indicator :
REM inside bar
c1= high[0] < high[1]
c2= low[0] > low[1]
insidebar = c1 and c2
return insidebar
Very simple… but useful !