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.
1 2 3 4 5 6 7 8 9 10 11 |
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" |
Share this
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials