News Focus
News Focus
Followers 44
Posts 23451
Boards Moderated 2
Alias Born 10/16/2008

Re: desertcynlite post# 1014

Thursday, 03/08/2012 1:37:40 AM

Thursday, March 08, 2012 1:37:40 AM

Post# of 3673
D > I take it your messing in here
my middle lines are staying active and I use Black assignment
not certain what you are trying to do but I know who to ask
if he shows up for code questions


/http://demo.thinkorswim.com:7001/manual/dark/thinkscript/reference/Functions/Look%20&%20Feel/AddCloud.html

]===============================================================
input tenkan_period = 9;
input kijun_period = 26;

plot Tenkan = (Highest(high, tenkan_period) + Lowest(low, tenkan_period)) / 2;
plot Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;
plot "Span A" = (Tenkan[kijun_period] + Kijun[kijun_period]) / 2;
plot "Span B" = (Highest(high[kijun_period], 2 * kijun_period) + Lowest(low[kijun_period], 2 * kijun_period)) / 2;
plot Chikou = close[-kijun_period];

Tenkan.SetDefaultColor(GetColor(1));
Kijun.SetDefaultColor(GetColor(2));
"Span A".SetDefaultColor(GetColor(3));
"Span B".SetDefaultColor(GetColor(4));
Chikou.SetDefaultColor(GetColor(5));

DefineGlobalColor("Bullish", Color.YELLOW);
DefineGlobalColor("Bearish", Color.RED);
AddCloud("Span A", "Span B", globalColor("Bullish"), globalColor("Bearish"));
================================================================

Disaster is Only a Keystroke Away!

Discover What Traders Are Watching

Explore small cap ideas before they hit the headlines.

Join Today