hinkognito
New member
Hi Team,
Thank you to everyone in the community. I have been lurking here for a while and wanted to ask for a little help.
I am trying to create a signal for a 3 bar pattern. I am running into an issue with doji candles and I don't know how to address it.
Here is the pattern I am attempting to indicate:
It is a candle sandwiched between an inside candle on each side. Wicks are ignored.
Disclaimer - I am a thinkscript novice so let me apologize in advance for my attempt.
plot X = if close[2]>open[2] and close[2]<=open[1] and open[2]>=close[1] and open[1]>=close and close[1]<=open then low else double.nan;
Many Thanks in advance.
Thank you to everyone in the community. I have been lurking here for a while and wanted to ask for a little help.
I am trying to create a signal for a 3 bar pattern. I am running into an issue with doji candles and I don't know how to address it.
Here is the pattern I am attempting to indicate:

It is a candle sandwiched between an inside candle on each side. Wicks are ignored.
Disclaimer - I am a thinkscript novice so let me apologize in advance for my attempt.
plot X = if close[2]>open[2] and close[2]<=open[1] and open[2]>=close[1] and open[1]>=close and close[1]<=open then low else double.nan;
Many Thanks in advance.
Last edited by a moderator: