Here's the thinkScript code from the video: def greenCandle = close > open; def prevCandleLow = low < low[1] and close[1] < open[1]; def upperWick = high - close; def lowerWick = open - low; def wickCondition = lowerWick >= 4*upperWick; plot signal = greenCandle and prevCandleLow and wickCondition; signal.setPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
These vids are awesome! Ofc you can combine various bar patterns with any number of other things, like MAs, crossovers, etc., etc., and have a nice little tradable system with edge.
This indicator is very useful. Thanks to you, this is where I learned how to Thinkscript. I've added this indicator, and I found an error. Because you have the wickCondition set with 4*upperWick, and when the greenCandle has no upper wick, then this value (high - close) becomes a zero thus the multiplier of 4 becomes zero too and you end up having a up arrow even a mini down wick on the green candle.
I don't know anything about coding, but is there a way to artificially add a constant to the upper wick to make it a positive number with which to run the tool?
i added def adjustedUpperWick = upperWick + 0.0001; and it appears to be functioning and has identified some no wick candles that appear to be reversal indicators. Let me know what you see.
Thankyou for the awesome video. I appreciate your time and effort. I was confused about scripting and looking for some course to master this technique. I am new in trading (day). Need more help, do you have a course for beginners.
TOS has a shooting star pattern that they've already coded up! You can find the code in the "Patterns" tab, under "Candlestick" and use that as a starting point to modify.
If you need help importing the an indicator into ThinkOrSwim, here's a step by step guide that should help you: tosindicators.com/thinkscript/how-to-import-thinkorswim
Here's the thinkScript code from the video:
def greenCandle = close > open;
def prevCandleLow = low < low[1] and close[1] < open[1];
def upperWick = high - close;
def lowerWick = open - low;
def wickCondition = lowerWick >= 4*upperWick;
plot signal = greenCandle and prevCandleLow and wickCondition;
signal.setPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
Thanks for sharing another useful idea, you're an excellent teacher.
Thank you for those kind words :) I appreciate that.
These vids are awesome!
Ofc you can combine various bar patterns with any number of other things, like MAs, crossovers, etc., etc., and have a nice little tradable system with edge.
Thanks Rob!
very good
This indicator is very useful. Thanks to you, this is where I learned how to Thinkscript. I've added this indicator, and I found an error. Because you have the wickCondition set with 4*upperWick, and when the greenCandle has no upper wick, then this value (high - close) becomes a zero thus the multiplier of 4 becomes zero too and you end up having a up arrow even a mini down wick on the green candle.
Glad it was helpful!
I don't know anything about coding, but is there a way to artificially add a constant to the upper wick to make it a positive number with which to run the tool?
i added
def adjustedUpperWick = upperWick + 0.0001;
and it appears to be functioning and has identified some no wick candles that appear to be reversal indicators. Let me know what you see.
Thumbs up and Like!
Thanks!
Thankyou for the awesome video. I appreciate your time and effort. I was confused about scripting and looking for some course to master this technique. I am new in trading (day). Need more help, do you have a course for beginners.
Glad to hear it was helpful! You can find more free, beginner-friendly tutorials on our website here: www.tosindicators.com/learn
SO you can scan for this pattern in a index?
This is amazing and I really love this. Can you do one for a shooting star?
TOS has a shooting star pattern that they've already coded up! You can find the code in the "Patterns" tab, under "Candlestick" and use that as a starting point to modify.
dope
Could you do the opposite of this to get a sell signal as well?
Just modify the code to the complete opposite. 🤦♀
Easier said than done. I tried multiple times and could not get it to work properly@@justtrade9903
try this:
def redCandle = close < open;
def prevCandleHigh = high > high[1] and close[1] > open[1];
def lowerWick = close - low;
def upperWick = high - open;
def adjustedLowerWick = lowerWick + 0.0001;
def wickCondition = upperWick >= 4*adjustedLowerWick;
plot signal = redCandle and prevCandleHigh and wickCondition;
signal.setPaintingStrategy(PaintingStrategy.Boolean_Arrow_Down);
signal.SetLineWeight(5);
Would this work as well on a shorter time frame chart? let's say 1min, or 5min, or 15min. 🤔 Also, another great video! Thank you for making it.😊
This might be a dumb question but how do u insert the code into tos ?
If you need help importing the an indicator into ThinkOrSwim, here's a step by step guide that should help you: tosindicators.com/thinkscript/how-to-import-thinkorswim
❤❤❤
Can you please post script it gives me an error while writing it.
Hi Nicolas - Added it for you in the pinned comment!