Hi all,
Here is another code written for someone. It detects the patterns with 2 opposite candles, with exactly the same highest / lowest point.
You will understand better with the picture.
It remains me the strategy “Slingshot”
Note that this strategy “Slingshot” can’t be backtested, because we can’t know if the SL or the TP is reached first.
I think that this indicator could be very useful with some trend filters / considering the size of candles.
Voici un autre code à la demande d’un de mes lecteurs.
Il s’agit de détecter les configurations mettant en jeu 2 bougies de couleurs opposées, présentant exactement le même plus haut / plus bas.
Cela me rappelle d’ailleurs la stratégie “Slingshot”, que j’avais décrite sur le site clubforex1.fr.
INDIC = 0
IF close[1] < open[1] and close > open and low[1] = low THEN
INDIC = 1
ENDIF
IF close[1] > open[1] and close < open and high[1] = high THEN
INDIC = -1
ENDIF
return INDIC as "2 candles Reversal"