Color Changing Chikou Indicator for ThinkorSwim

RedToGreen

Active 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:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

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);
 
basic study with some kind of strategy, this should go more under strategy, however you didn't really explain the strategy. ;( @BenTen
 
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
 
Thanks, @Jack Sprat I loaded the script to TOS and got this. It is different from RedToGreen's cloud version. But looks very interesting. Definitely much better than the standard MACD. I am gonna play with it in next few days.

grPer2m.jpg
thanks for sharing the chart. What is the study on top with cyan and red line, some kind of MA?
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
287 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top