Ichimoku Scanner for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
Warehouse
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:
http://tos.mx/wq9kYL – Ichimoku Break Above the Cloud – 5 Minute Chart
http://tos.mx/d7340d – Ichimoku Break Below the Cloud – 5 Minute Chart
http://tos.mx/30fZt5 – Ichimoku Chikou Line Crosses Above The Cloud
http://tos.mx/uOwZmL – Ichimoku Chiko Line Crosses Below The Cloud
http://tos.mx/GSfZab – Ichimoku 3 candles above the cloud
http://tos.mx/HnAeox – Ichimoku 3 candles above the cloud
http://tos.mx/0WReVp – Ichimoku 2 candles below the cloud
http://tos.mx/yGwahs – Ichimoku 3 candles below the cloud – click for the thinkorswim downloads
http://tos.mx/QZU8Rn – Ichimoku inside the cloud daily
http://tos.mx/iFlKxM – Ichimoku inside the cloud houry
http://tos.mx/CP91iY – Ichimoku inside the cloud 10 min
http://tos.mx/WZBbqo – Ichimoku T crossabove K Daily
http://tos.mx/PlVCiY – Ichimoku – Ichimoku T crossabove K 10 min
http://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?
 
T

television

New 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!
 
BenTen

BenTen

Administrative
Staff
VIP
Warehouse
@television That’s great to hear 👍🏻
 

Top