Color Changing Chikou Indicator for ThinkorSwim

RedToGreen

New member
That's it...that's all you get :p

No other elements of the Ichimoku included...GL

TSLA 2 min chart 12/31/2020

Have a good new year

Should note that I'm using a 18/52 TK period

7wthla3.png


Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2020
#

input tenkan_period = 18;
input kijun_period = 52;

def Tenkan = (Highest(high, tenkan_period) + Lowest(low, tenkan_period)) / 2;
def Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;

plot Chikou = close[-kijun_period];


def DownChik = Chikou < High from 26 bars ago and Chikou < Close;
def UpChik = Chikou > High from 26 bars ago and Chikou > Close;


Chikou.assignValueColor( if UpChik then color.DARK_GREEN else if DownChik then color.DARK_RED else color.BLUE);
 
Last edited:

RedToGreen

New member
Updated. Notes in code

kAli4AN.png


DfLK82Y.png


Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2020
#
#1/1/2021 added code to reflect if longer Length Chikou is above or below shorter Chikou (Standard setting)
input tenkan_period = 18;
input kijun_period = 52;

input tenkan_periods = 9;
input kijun_periods = 26;

def Tenkan = (Highest(high, tenkan_period) + Lowest(low, tenkan_period)) / 2;
def Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;

def Tenkans = (Highest(high, tenkan_periods) + Lowest(low, tenkan_periods)) / 2;
def Kijuns = (Highest(high, kijun_periods) + Lowest(low, kijun_periods)) / 2;

#def Chikou = close[-kijun_period];
def Chikous = close[-kijun_periods];

plot Chikou = close[-kijun_period];


def LongPrice = Chikou > Close;
def ShortPrice = Chikou < Close;
def GreatHigh = Chikou > High from 26 bars ago;
def LessHigh = Chikou < High from 26 bars ago;
def GreatLow =  Chikou > Low from 26 bars ago;
def LessLow =  Chikou < Low from 26 bars ago;
def Chik_Gr_Chick = Chikou > Chikous;
def Chik_Lss_Chik = Chikou < Chikous;




Chikou.assignValueColor( if LongPrice and GreatHigh and chik_Gr_Chick then color.DARK_GREEN else if ShortPrice and lessLow and Chik_Lss_Chik then color.DARK_RED else color.BLUE);
 

XeoNoX

Well-known member
VIP
basic study with some kind of strategy, this should go more under strategy, however you didn't really explain the strategy. ;( @BenTen
 

RedToGreen

New member
basic study with some kind of strategy, this should go more under strategy, however you didn't really explain the strategy. ;( @BenTen

Ahhh...yeah..I didn't....:)

Use basically the same way you would if using the full Ichimoku, with a few caveats.....ex..Chikou is above price and turns red, can be used as a short signal..

Generally if chikou is below price and blue, think countertrend. same if above price below price and blue move up, possible just a CT
above price and blue, short CT

XcmW4a2.png


Can also look for chikou lower high pivots or vice versa.

ZJcKNvy.png
 

Similar threads

Top