Harami or Inside bar screener

Harami or Inside bar screener

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 “).

For the indicator :

Very simple… but useful !

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. MikeGC • 03/22/2016 #

    Beautiful, Doc.  Many thanks!  For other followers of this great indicator and screener, may I suggest that out of the multiple trading strategies one can follow using this, the continuation strategy has the highest success rate.  Just run the indicator over a chart and compare the number of reversals with the number of continuations.

  2. Doctrading • 03/22/2016 #

    Hello, It’s a nice idea. I also tried a harami strategy with a 50 moving average, works on EUR/USD Daily :
    http://www.prorealcode.com/prorealtime-trading-strategies/a-harami-trading-strategy-code-for-daily-eurusd/

  3. fesxeurex • 03/22/2016 #

    Thanks for posting,
    Apologies if this is a dumb questions but like Chinese say “If you ask a question you are fool for a day you if you dont ask you are fool for a life”  hence
    Does this display inside bar in formation or after its formed?
    Please can someone experienced shed some light on it

  4. Doctrading • 03/22/2016 #

    Hello fesxeurex,
    It can display both : when it is in formation, and when it has been formed.
    It can disappear if the harm isn’t completed yet and finally isn’t.
    Regards,

  5. the_giorgio • 03/22/2016 #

    Bonjour Doc,

    Je crois que votre définition du harami est erronée

    Critères du Harami
    Définition :
    -Petit corps compris à l’intérieur d’un corps long (désignation : bébé).

    -Couleur opposée entre les deux chandeliers nécessaire.

    je mettrai plutôt, open[1] > close [1] and open[0]<close[0] and open[0]close[1] and close[0] close[1]

  6. dfl3tch3r • 03/22/2016 #

    Great screener…Has anyone got code for trade/backtest the next bar breakout (short or long) ? Many thanks

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Doctrading Hello, As I said, I didn't use spread for the screenshot as I don't trade Gold and I don't ...
smurfy Hi, I had been losing on gold and after I manually go through the 5min chart using IG and w...
eiffel Hi Smurfy, hope you are still there... I would like to help you to write and test the code.
Manu L. Et si je prends éventuellement celui-ci, comment puis je programmer le screener pour qu'il ...
Nicolas Pour des demandes personnalisées, merci d'utiliser le forum, en ouvrant un nouveau sujet tou...
Manu L. c fait :-) https://www.prorealcode.com/topic/pro-screeners-trend-reversal-continuation-pa...
Wilko This code is the work of a simple genius! Profitability lies in simplicity and repetition.
Nicolas Good joke. FYI, you'll find many identified recurring patterns there: http://paststat.com G...
Yngve i added a MA as a filter, that improved the equity curve quit nice actually
Doctrading Hello,  The strategy should be improved, no doubt. But it was just one of my ideas, which h...
ALEALE Yes Nicolas is very difficult, macro economic data can destroy any work!!  
styrke depends which.. I personally think that it's much more easier to trade on XBTUSD, try to co...
raviesco Hello Nicolas, Thanks for the post. Do you have an updated version of this screener/indi...
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
Doctrading Hello, Someone asked me something (his results seemed to be different) on my email, but it ...
Glen Marquis Not your best..So what is your best strategy? :)
Benjamin Costa Ok thank you for your answers. Gianpiero, i have an Interactive brokers account. Noisette, i...
oldup It works on ProOrder - but  I don't like the maxWin = MaxLoss.    
oldup Just divise StopLoss /2 - Result is better  
Doctrading Bonjour, Tu as raison, il faut faire attention à la fiabilité de certains backtests. Le pro...
Duccio Hi DocTrading, I've backtested your strategy and I notice that 75% of position have been cl...
Doctrading Hello,  No, I don't use this strategy on real account, because my own strategies (that you ...
komiko 9a marche pas ? le code sur prorealtime "erreur de syntaxe l'instruction retur et autorisée ...
Nicolas En effet, il s'agit bien du code d'un indicateur et non d'un screener ou d'une stratégie de ...
RussJ Hey people Some great screeners on here but I'm pulling up too many stocks when I s...
Doctrading Defparam cumulateorders = false n=1 // Plus le "ratio" monte, moins il y a de positions ...
Malloc Bonjour :) Je sais que cette stratégie a été partagée il y a de ça plusieurs années mais ...
lilo789 Hi guys! Do you know if it is possible to set the buy size to a relative % of the available...
luigiR Hallo doc, thank again for your strategy but can you suggest me  an example of the optimizat...
Wilko Do NOT take this system live! The backtest results will never be repeated live due to a shor...
mrripley99 So I've played around with this just recently and have achieved some good results in an IG d...
Doctrading Maybe you can also change the hourly beginning of the day (not 23PM but 12AM, OOH in french)...
Duccio Hi Doctrading,there is a way to control the max loss of the positions in this code? For exa...
Doctrading Hello, Yes, there is a command I think, but I don't know it. Nicolas knows it. You can als...
Pierreee That a realy great strategy !!!  It's realy profitable in daily trade. I'm gonna put some ...
entony hello timeframe on what works best and how couples ??grazie
111111dw i am running this on the cac 5m time frame but the results are very different from the backt...

Top