Additional Volume on the right side of the chart? July 13, 2016 11:38PM |
Registered: 7 years ago Posts: 1 |
Re: Fun with ThinkScript July 15, 2016 04:12PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript July 16, 2016 09:10AM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript July 16, 2016 09:46AM |
Registered: 10 years ago Posts: 615 |
Quote
Passes syntax test, yet "no matching symbols" on various timeframes...
Any thoughts?
Re: Fun with ThinkScript July 16, 2016 02:18PM |
Registered: 9 years ago Posts: 67 |
Quote
Robert
That just means that there aren't any HA dojis at this time.
Re: Fun with ThinkScript July 16, 2016 05:47PM |
Registered: 10 years ago Posts: 615 |
Re: Fun with ThinkScript July 16, 2016 08:27PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript July 17, 2016 02:52AM |
Registered: 8 years ago Posts: 63 |
plot zero = if !comparisonChart then 0 else double.nan;
zero.SetPaintingStrategy(PaintingStrategy.DASHES);
zero.SetStyle(Curve.Medium_DASH);
zero.SetLineWeight(1);
zero.SetDefaultColor(Color.RED);
zero.HideBubble();
#AddCloud(if !comparisonChart then 0 else double.nan, lowestall(low), Color.pink );
Re: Fun with ThinkScript July 17, 2016 10:58AM |
Registered: 10 years ago Posts: 615 |
Quote
mntman
would anyone know how to plot a 0% line in a comparison chart?
# +--------------------------------------------------+ # | Example: compare multiple symbols | # | Robert Payne | # | rrpayne.blogspot.com | # +--------------------------------------------------+ declare lower; input Symbol01 = "SPY"; input Symbol02 = "AAPL"; input Symbol03 = "NFLX"; def c1 = close(Symbol01); def c2 = close(Symbol02); def c3 = close(Symbol03); def start01 = if BarNumber() == 1 then c1 else start01[1]; def start02 = if BarNumber() == 1 then c2 else start02[1]; def start03 = if BarNumber() == 1 then c3 else start03[1]; plot s1 = Round((c1 / start01 - 1) * 100, 2); s1.SetDefaultColor(Color.PINK); plot s2 = Round((c2 / start02 - 1) * 100, 2); s2.SetDefaultColor(Color.YELLOW); plot s3 = Round((c3 / start03 - 1) * 100, 2); s3.SetDefaultColor(Color.LIGHT_GREEN); plot zero = 0; zero.SetDefaultColor(Color.BLACK); AddLabel(yes, Symbol01 + ": " + s1 + "%", Color.PINK); AddLabel(yes, Symbol02 + ": " + s2 + "%", Color.YELLOW); AddLabel(yes, Symbol03 + ": " + s3 + "%", Color.LIGHT_GREEN);
Re: Fun with ThinkScript July 17, 2016 11:26AM |
Registered: 8 years ago Posts: 63 |
Re: Fun with ThinkScript July 22, 2016 06:13PM |
Registered: 7 years ago Posts: 3 |
Re: Fun with ThinkScript July 22, 2016 07:00PM |
Registered: 7 years ago Posts: 3 |
Re: Fun with ThinkScript July 22, 2016 07:36PM |
Registered: 7 years ago Posts: 3 |
declare lower; input fastLength = 12; input slowLength = 26; input MACDLength = 9; input averageType = AverageType.EXPONENTIAL; plot Value = MovingAverage(averageType, close, fastLength) - MovingAverage(averageType, close, slowLength); plot Avg = MovingAverage(averageType, Value, MACDLength); plot Diff = Value - Avg; plot ZeroLine = 0; Value.SetDefaultColor(GetColor(1)); Avg.SetDefaultColor(GetColor(8)); Diff.SetDefaultColor(GetColor(5)); Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM); Diff.SetLineWeight(3); Diff.DefineColor("Positive and Up", Color.GREEN); Diff.DefineColor("Positive and Down", Color.DARK_GREEN); Diff.DefineColor("Negative and Down", Color.RED); Diff.DefineColor("Negative and Up", Color.DARK_RED); Diff.AssignValueColor(if Diff >= 0 then if Diff > Diff[1] then Diff.Color("Positive and Up" ) else Diff.Color("Positive and Down" ) else if Diff < Diff[1] then Diff.Color("Negative and Down" ) else Diff.Color("Negative and Up" )); ZeroLine.SetDefaultColor(GetColor(0)); # ----- apply linear regression slope to macd line ----- def LRlength = 3; def angle = ATan(LinearRegressionSlope(Value, LRlength)) * 180 / Double.Pi; AddLabel(yes, "macd slope angle: " + round(angle,1), Color.WHITE); Edit Reply Quote Report
Re: Fun with ThinkScript July 24, 2016 08:35AM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript July 24, 2016 12:11PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript July 24, 2016 01:18PM |
Registered: 9 years ago Posts: 67 |
high(period="day" )[1]; #(array reference after the function)
Re: Fun with ThinkScript July 24, 2016 09:15PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript July 26, 2016 06:01PM |
Registered: 9 years ago Posts: 60 |
assignpricecolor( if A && B > overbought then Color.red else if A && B < overSold then Color.green else Color.yellow);
Re: Fun with ThinkScript August 07, 2016 09:57AM |
Registered: 8 years ago Posts: 63 |
NEED HELP WITH THINKSCRIPT August 07, 2016 05:15AM |
Registered: 8 years ago Posts: 3 |
Re: NEED HELP WITH THINKSCRIPT August 07, 2016 10:34AM |
Registered: 8 years ago Posts: 63 |
Re: NEED HELP WITH THINKSCRIPT August 07, 2016 10:36AM |
Registered: 8 years ago Posts: 63 |
Re: NEED HELP WITH THINKSCRIPT August 07, 2016 02:43PM |
Registered: 8 years ago Posts: 3 |
def haclose = (open + high + low + close) / 4; def haopen = CompoundValue(1, (haopen[1] + haclose[1]) / 2, (open[1] + close[1]) / 2); def closelower = haopen > haclose; def closehigher = haopen < haclose; AddLabel(yes, " ", color.current); AssignbackgroundColor(if closelower then color.downtick else if closehigher then color.uptick else color.current);
Re: Fun with ThinkScript August 08, 2016 05:22PM |
Registered: 7 years ago Posts: 1 |
MovAvgExponential("length" = 13) crosses close within 2 bars
Re: Fun with ThinkScript August 09, 2016 02:06AM |
Registered: 7 years ago Posts: 2 |
Re: Fun with ThinkScript August 09, 2016 07:36AM |
Registered: 10 years ago Posts: 465 |
Re: NEED HELP WITH THINKSCRIPT August 10, 2016 08:13AM |
Registered: 7 years ago Posts: 10 |
Re: Fun with ThinkScript August 10, 2016 03:49PM |
Registered: 7 years ago Posts: 2 |
Scalper Value Chart ! Trend Analyzer August 11, 2016 02:50AM |
Registered: 9 years ago Posts: 60 |
Mechanical MACD Divergence August 14, 2016 07:39AM |
Registered: 10 years ago Posts: 615 |