Ichimoku Scanner for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
Not sure how many people on here use the Ichimoku indicator, but I thought I share this list just in case. Here are a few different Ichimoku scanners for ThinkorSwim.

Ichimoku Cloud Scan by Linus

Code:
# Ichimoku cloud scan

input nTe = 9;  # Tenkan length
input nKi = 26; # Kijun length
input nSp = 52; # SpanB length
def Tenkan = (Highest(high, nTe) + Lowest(low, nTe)) / 2;
def Kijun = (Highest(high, nKi) + Lowest(low, nKi)) / 2;
def SpanA = (Tenkan[nKi] + Kijun[nKi]) / 2;
def SpanB = (Highest(high[nKi], nSp) + Lowest(low[nKi], nSp)) / 2;

# The cloud is made up of SpanA and SpanB, so use Max and Min to scan above and below the cloud.  Only one plot can be active in the scan, so comment out the plot not being used with #.

#plot IsAboveCloud = low > Max(SpanA, SpanB);
plot IsBelowCloud = high < Min(SpanA, SpanB);
A compilation of other related scanners:
https://tos.mx/wq9kYL – Ichimoku Break Above the Cloud – 5 Minute Chart
https://tos.mx/d7340d – Ichimoku Break Below the Cloud – 5 Minute Chart
https://tos.mx/30fZt5 – Ichimoku Chikou Line Crosses Above The Cloud
https://tos.mx/uOwZmL – Ichimoku Chiko Line Crosses Below The Cloud
https://tos.mx/GSfZab – Ichimoku 3 candles above the cloud
https://tos.mx/HnAeox – Ichimoku 3 candles above the cloud
https://tos.mx/0WReVp – Ichimoku 2 candles below the cloud
https://tos.mx/yGwahs – Ichimoku 3 candles below the cloud – click for the thinkorswim downloads
https://tos.mx/QZU8Rn – Ichimoku inside the cloud daily
https://tos.mx/iFlKxM – Ichimoku inside the cloud houry
https://tos.mx/CP91iY – Ichimoku inside the cloud 10 min
https://tos.mx/WZBbqo – Ichimoku T crossabove K Daily
https://tos.mx/PlVCiY – Ichimoku – Ichimoku T crossabove K 10 min
https://tos.mx/rkGFAn – Ichimoku T crossabove K 1 hour
 
A

abraham

New member
Hi Ben, How do you read these in terms of bullish vs. bearish?
 
television

television

Member
Code:
input nTe = 9;  # Tenkan length
input nKi = 26; # Kijun length
input nSp = 52; # SpanB length
def Tenkan = (Highest(high, nTe) + Lowest(low, nTe)) / 2;
def Kijun = (Highest(high, nKi) + Lowest(low, nKi)) / 2;
def SpanA = (Tenkan[nKi] + Kijun[nKi]) / 2;
def SpanB = (Highest(high[nKi], nSp) + Lowest(low[nKi], nSp)) / 2;


def X = Tenkan * .10;

plot scan = absvalue(close - Tenkan) is less than or equal to X ;

HAHAHA, YAS.
Decided to give it another shot and play around with the original code you gave me. I FINALLY got it to work for the specific thing I had in mind. I know it's elementary but I am a complete noob when it comes to this. I can't stress how happy I was when I finally executed the code with no problem!

Will backtest and share a strategy for y'all soon!
 
N

Ninja Bull

New member
Hey Ben, great Ichimoku Cloud Scanner!!! Plugged into TOS and works good! Quick question: can you modify it to show only those results with 3 bars ago. In other words, this will limit it to those breakouts that have recently happened and will allow you to quickly jump in the trade from the beginning. The other scanner scripts that have been posted don't work...Thanks in advance!
 
BenTen

BenTen

Administrative
Staff
VIP
@Ninja Bull I think you can. Use the "within X bar" in your scanner.
 
P

paperprinter

New member
VIP
Hey @BenTen ! I have a couple quick questions. is there a difference between the two "3 candles above the cloud" scans? Also for those scans TOS says "Add label" must be taken out so does that make the scan miss anything important?
 
B

Brettser16

New member
I was wondering if there's a way to get a scanner for the ichimoku clouds where it shows stocks that are 3 candles above the cloud also looking for 3 candles below the clouds also looking for a scan where the candles just cross above the clouds and below the clouds if thats possible any help will be much appreciated
Thank you
 
A

AriD

New member
Hello. I thank you for the indicators. I wanted to download the indicators above for Ichimoku, but they don't scan. In other words, I applied the Chikou above the cloud, and I can find it in the personal line-up, but the scanner button does not respond nor is it the greenish color. Please tell me what I am doing wrong? P.S I hope to have membership one day, but i have many medical bills, so be patient with me. Thats why i am trying to trade.
 
S

SparkyFlary

Member
I think the biggest problem is coming from that Chikou line. It doesn't seem to like to scan for the negative number in code that looks like close[-displace].
 
C

chia1668

New member
Hi guys, need help in code the following 2 ichimoku scans

Bullish Scan

Conditions:
  • Current closing price breaks above Kumo
  • Current closing price above Tenkan and Tenkan above Kijun
  • Chikou free or clear from any price interaction (meaning the chikou is not within the interference of any candles)
  • Future kumo is bullish
Bearish Scan

Conditions:
  • Current closing price breaks below Kumo
  • Current closing price below Tenkan and Tenkan below Kijun
  • Chikou free or clear from any price interaction (meaning the chikou is not within the interference of any candles)
  • Future kumo is bearish
Thank you so much
 

Similar threads

Top