Re: Fun with ThinkScript February 20, 2017 11:43AM |
Registered: 7 years ago Posts: 3 |
Re: Fun with ThinkScript February 20, 2017 02:19PM |
Registered: 7 years ago Posts: 3 |
Re: Fun with ThinkScript February 20, 2017 02:52PM |
Registered: 7 years ago Posts: 4 |
Re: Fun with ThinkScript February 22, 2017 09:09AM |
Registered: 9 years ago Posts: 38 |
Re: Fun with ThinkScript February 22, 2017 09:39AM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 22, 2017 12:47PM |
Registered: 10 years ago Posts: 615 |
Quote
rob miller
Robert, What color swatches (numbers) are you using for your chart color? I like it, but am unable to match it. Thank you
Re: Fun with ThinkScript February 22, 2017 02:21PM |
Registered: 10 years ago Posts: 615 |
Quote
MoneyMachine8253
Beautiful coding I hope to get as good as you one day. I was wondering if you could make me a code that for strangely that plots intraday high and low throughout the trading day.
def today = GetDay() == GetLastDay(); plot dailyHigh = if !today then Double.NaN else high(period = "day" ); plot dailyLow = if !today then Double.NaN else low(period = "day" );
Quote
Also one for extended hours as well
Re: Fun with ThinkScript February 22, 2017 02:29PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript February 22, 2017 03:11PM |
Registered: 10 years ago Posts: 615 |
Quote
SMcTrader
This should be a fairly simple request:
The thinkscript below adds a horizontal line on the chart to mark last week's closing price. Can anyone please tell me how to make an addition where I can have a visible text label above the horizontal line to say "LWC"? Thanks a million in advance.
plot closeLastWeek = close(period = "week" )[1]; closeLastWeek.SetPaintingStrategy(PaintingStrategy.HORIZONTAL); closeLastWeek.SetDefaultColor(Color.YELLOW); closeLastWeek.SetLineWeight(2); AddChartBubble(BarNumber() == HighestAll(BarNumber()), closeLastWeek, "LWC", Color.YELLOW, if close > closeLastWeek then 0 else 1);
Re: Fun with ThinkScript February 22, 2017 05:17PM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 22, 2017 05:23PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript February 22, 2017 05:25PM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 22, 2017 05:27PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript February 22, 2017 05:31PM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 22, 2017 06:04PM |
Registered: 9 years ago Posts: 67 |
def price = close; def displace = 0; def length = 20; def length2 = 14; def factor = 1.5; input averageType = {default sMA, eMA}; def averageType2 = AverageType.WILDERS; def num_Dev_Up = 2.0; def num_Dev_Dn = -2.0; #def shift = factor * Average(TrueRange(high, close, low), length); def shift = factor * MovingAverage(averageType2, TrueRange(high, close, low), length2); def average; switch (averageType) { case sMA: average = Average(price, length); case eMA: average = ExpAverage(price, length); } def sDev = StDev(data = price[-displace], length = length); def MidLine = MovingAverage(averageType, data = price[-displace], length = length); plot bbUpperBand = MidLine + num_Dev_Up * sDev; bbUpperBand.setDefaultColor(GetColor(3)); bbUpperBand.hideTitle(); plot bbLowerBand = MidLine + num_Dev_Dn * sDev; bbLowerBand.setDefaultColor(GetColor(3)); bbLowerBand.hideTitle(); def Avg = MovingAverage(averageType, data = price[-displace], length = length); plot kcUpperBand = Avg + shift[-displace]; kcUpperBand.setDefaultColor(GetColor(7)); kcUpperBand.hideTitle(); plot kcLowerBand = Avg - shift[-displace]; kcLowerBand.setDefaultColor(GetColor(7)); kcLowerBand.hideTitle(); addCloud(bbUpperBand, kcUpperBand, color.DARK_GRAY, color.UPTICK); addCloud(bbLowerBand, kcLowerBand, color.UPTICK, color.DARK_GRAY);
Re: Fun with ThinkScript February 22, 2017 06:37PM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 22, 2017 09:13PM |
Registered: 8 years ago Posts: 61 |
Re: Fun with ThinkScript February 23, 2017 06:40PM |
Registered: 7 years ago Posts: 1 |
Re: Fun with ThinkScript February 28, 2017 03:17PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript February 28, 2017 10:30PM |
Registered: 9 years ago Posts: 67 |
-Xmx8192m -Xms4096m -Djava.util.Arrays.useLegacyMergeSort=true -classpath/p launcher-first.jar -Dawt.useSystemAAFontSettings=lcd_hrgb -Dsun.net.http.allowRestrictedHeaders=true -XX:MaxPermSize=256mAny suggestions to further optimize these settings?
Re: Fun with ThinkScript February 28, 2017 11:38PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript February 28, 2017 11:57PM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript March 01, 2017 05:56PM |
Registered: 10 years ago Posts: 464 |
Re: Fun with ThinkScript March 01, 2017 09:36PM |
Registered: 9 years ago Posts: 31 |
Re: Fun with ThinkScript March 02, 2017 01:54AM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript March 02, 2017 07:17AM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript March 02, 2017 07:19AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript March 02, 2017 07:31AM |
Registered: 9 years ago Posts: 67 |
Quote
elovemer
simple things ... are the best indicators.
Re: Fun with ThinkScript March 02, 2017 08:21AM |
Registered: 10 years ago Posts: 464 |
Re: Fun with ThinkScript March 04, 2017 10:03AM |
Registered: 8 years ago Posts: 34 |