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
avatar
Anonymous Sorry I mean vertical red / green line
avatar
Anonymous Found: just remove "T coloured(r,g,b) as "Top", Bo coloured(r,g,b) as "Bottom"... after return
darbes Hi I tried to use indicator in a strategy code. But backtesting is asking to define Signalb...
avatar
Anonymous Thanks for sharing! On the other hand can we remove the vertical gray lines?
ShaunG Appreciated! Thanks 100%
tonbijl good afternoon when i enter the code i get an error message Syntax error
rispardin no entiendo como funciana este indicador, por favor alguien podria explicar como utilizarlo???
AVT No se trata de un solo indicador, pero cada linea muestra otra información, de abajo hacia ...
IV Mcm Your indicator is interesting, I evaluated its relevance with the squeeze to detect the phas...
dzim0032 J'avais oublié de mettre un commentaire pour la vente du scalper dont les règles sont justes...
andreag76 Thank you Francesco78 !
juanj What happened after August 21?
jpgcreatestrading Hi Manel, i have found this same issue, some strategies (but not all) that are written with ...
avatar
bjoern With the same parameters? For me the results are negative
avatar
bjoern Oh ok, with the initial posted parameters it is positive
victormork yes! It's not like you want to put it on live but when I for example take the version I have...
Doctrading Hello, Higher timeframes are better. I suggest D1 or H4.Best regards,
Pinkybouh hello, I propose to add another conditions: ie: haussier: close > open and close >...
TheHovisTrader I'd be interested in the actual profit of this - in the example the stop range is at least 2...
Nicolas Restart your platform in order to be sure to use the last version, there was a version rollb...
bertrandpinoy bonjour voud pouvez m envoyer le code modifier par vous?
Nicolas Désolé , je ne comprends pas votre question.
Jessar Hi friends, is there any way to program the system to close the position when you have a lon...
Pring00 Hello @Nicolas, thanks for this code! Just what i was looking for. I'm fairly new to this...
Nicolas Needs custom coding, ask for a mod in a dedicated topic, in the appropriate forum please.
jelogui merci beaucoup Nicolas, je m'en occupe.
zeD22 Hello There Nicolas, When i try to copy the code i get an Error says: the following varia...
Nicolas Download the itf file and import it.
Ciccio As written some posts above, there is an update here https://www.prorealcode.com/prorealtim...
Mrmamps079 Hi Admin, I can't plug this indicator on my metatrader 4 on my laptop. When I add it on my i...
Nicolas Sorry but we do not provide any help for mt4 users. Our website is dedicated to ProRealTime ...
Maxime Leleux Nice screener but the 2 candelsticks around the doji should be long sticks (red and green). ...
Nicolas Hi, there's no reason why it should not work on a 5 min chart. Just apply the indicator on y...
Percygreen77 good evening sorry for my english but the indicator don't work can you help me i have 10.3 v...
Nicolas By adding it on price, it should display the pattern detection on the price chart, and not ...
Madrosat Bonjour Nicolas Je souhaiterais faire colorier le fond du graphique supérieur en vert lorsq...
Nicolas Merci d'ouvrir un sujet dans le forum approprié.
Nwab Hello Mr Nicolas.. Please how can I set this up as an indicator to work on mt5. Your guidan...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
Nicolas Well done supertiti, nicely coded and very accurate.
Dimi.A Beautiful.

Top