Engulfing body or wicks mode and filter on previous candles

Engulfing body or wicks mode and filter on previous candles

Two different requests were made in the same topic in the Probuilder forum, one to be able to have the option of using either body or wicks for an engulfing candle, the other to add a filter of a number of consecutive candles in the same direction prior to the engulfing candle.

https://www.prorealcode.com/topic/codage-englobante/

Whilst it helps with some reversal patterns against a trend, it doesn’t filter out patterns going with a trend at the end of it. As such it is not ready-made for direct trading from it, but should just be considered as a piece of code to add to other filtering criteria of your own to trigger some detections only in the zones you’re interested in.

Use Ncandles as number of consecutive candles in same direction before engulfing

Use Body as boolean 0 or 1 to trigger « candle body mode » for engulfing detection

Use Wicks as boolean 0 or 1 to trigger « candle wicks mode » for engulfing detection

Result is histogram +/-0.5 for body mode, +/-1 for wicks mode

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. avatar
    Anonymous • 12/23/2020 #

    This is very useful, look forward to testing it out. Thank you very much

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
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
Cavok Bonjour, Comment utiliser cet indicateur comme screener? Merci.

Top