Re: Mechanical MACD Divergence August 14, 2016 09:21AM |
Registered: 7 years ago Posts: 63 |
Quote
robert
This indicator is one that I have wanted to create since I very first began learning ThinkScript.
Re: Fun with ThinkScript August 22, 2016 09:48AM |
Registered: 7 years ago Posts: 5 |
Re: Fun with ThinkScript August 22, 2016 10:21AM |
Registered: 9 years ago Posts: 67 |
declare upper; def isAbove = ExpAverage(close, 8) crosses above ExpAverage(close, 20); def isBelow = ExpAverage(close, 8) crosses below ExpAverage(close, 20); AssignBackgroundColor(if isAbove then CreateColor(153, 255, 153) else if isBelow then CreateColor(255, 102, 255) else (color.current));
Re: Fun with ThinkScript August 22, 2016 10:40AM |
Registered: 7 years ago Posts: 5 |
Re: Fun with ThinkScript August 22, 2016 11:05AM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript August 22, 2016 11:24AM |
Registered: 7 years ago Posts: 5 |
Re: Fun with ThinkScript August 22, 2016 11:51AM |
Registered: 7 years ago Posts: 63 |
Quote
Erica, Netarchitech
I am trying to do a simple script that changes the background color of the upper panel when the 8ema crosses above or below the 20ema.
Maybe it's my computer? (MacBook Pro)
declare upper; def isAbove = ExpAverage(close, 8) > ExpAverage(close, 20); def isBelow = ExpAverage(close, 8) < ExpAverage(close, 20); AssignBackgroundColor(if isAbove then CreateColor(153, 255, 153) else if isBelow then CreateColor(255, 102, 255) else (color.current));
Re: Fun with ThinkScript August 22, 2016 12:04PM |
Registered: 7 years ago Posts: 5 |
Same concepts as Erica's. Colorize background August 24, 2016 06:46PM |
Registered: 7 years ago Posts: 59 |
Re: Same concepts as Erica's. Colorize background August 24, 2016 09:38PM |
Registered: 9 years ago Posts: 67 |
input price = close; input length = 20; input displace = 0; plot HMA = MovingAverage(AverageType.HULL, price, length)[-displace]; AssignBackgroundColor(if price > HMA then Color.GREEN else Color.RED);
Re: Fun with ThinkScript August 25, 2016 07:09AM |
Registered: 10 years ago Posts: 464 |
Re: Fun with ThinkScript August 25, 2016 01:19PM |
Admin Registered: 13 years ago Posts: 28 |
Re: Fun with ThinkScript August 25, 2016 03:24PM |
Registered: 10 years ago Posts: 464 |
Re: Fun with ThinkScript August 25, 2016 03:56PM |
Registered: 7 years ago Posts: 59 |
Re: Fun with ThinkScript August 25, 2016 06:26PM |
Registered: 7 years ago Posts: 1 |
Re: Fun with ThinkScript August 26, 2016 09:47PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript August 27, 2016 07:44AM |
Registered: 7 years ago Posts: 63 |
Re: Fun with ThinkScript August 27, 2016 09:18AM |
Registered: 10 years ago Posts: 615 |
Quote
mntman
would you guys happen to know if its possible to add a bubble to a lower study? i tried the "addchartbubble" using highestall(high) but it tries to add it as the upper price, but i may have been doing it wrong too.
i use roberts rising tide on a 30dma and was thinking it'd be kinda cool to see the dates of the top and bottom of the average curve in the study to see when they peak. (i currently have the upper price subgraph hidden so only the lower study shows)
def LL = condition == LowestAll(condition); def HH = condition == HighestAll(condition); AddChartBubble(LL, condition, GetMonth() + "/" + GetDayOfMonth(GetYYYYMMDD()), Color.WHITE, 0); AddChartBubble(HH, condition, GetMonth() + "/" + GetDayOfMonth(GetYYYYMMDD()), Color.WHITE);
Re: Fun with ThinkScript August 27, 2016 10:39AM |
Registered: 7 years ago Posts: 63 |
condition == LowestAll(condition)
Re: Fun with ThinkScript August 27, 2016 02:39PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript August 27, 2016 06:45PM |
Registered: 10 years ago Posts: 615 |
Re: Fun with ThinkScript August 27, 2016 11:44PM |
Registered: 7 years ago Posts: 59 |
Re: Fun with ThinkScript August 27, 2016 11:55PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript August 30, 2016 09:51PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript August 30, 2016 10:53PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript August 30, 2016 11:07PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript August 31, 2016 12:18AM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript August 31, 2016 06:37PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript August 31, 2016 09:24PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript September 03, 2016 12:22AM |
Registered: 8 years ago Posts: 59 |