Re: Fun with ThinkScript June 25, 2018 10:26PM |
Registered: 8 years ago Posts: 59 |
Symbol volume compared to index volume June 26, 2018 02:38PM |
Registered: 5 years ago Posts: 3 |
Re: Symbol volume compared to index volume June 26, 2018 04:28PM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 26, 2018 04:38PM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 26, 2018 06:31PM |
Registered: 5 years ago Posts: 5 |
Re: Fun with ThinkScript June 27, 2018 10:32PM |
Registered: 5 years ago Posts: 6 |
Re: Fun with ThinkScript June 27, 2018 11:56PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript June 28, 2018 11:08AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 28, 2018 11:13AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 28, 2018 12:30PM |
Registered: 5 years ago Posts: 5 |
Re: Fun with ThinkScript June 28, 2018 01:06PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript June 28, 2018 03:06PM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 28, 2018 09:26PM |
Registered: 5 years ago Posts: 6 |
Re: Fun with ThinkScript June 29, 2018 11:25PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript July 01, 2018 07:45PM |
Registered: 5 years ago Posts: 2 |
Re: Fun with ThinkScript July 02, 2018 03:11AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript July 02, 2018 07:17AM |
Registered: 7 years ago Posts: 126 |
Quote
solewind
The problem with my script is that it only green those bars which meet the closed price condition, as soon as price closed within the ATR range, they all go blue.
Re: Fun with ThinkScript July 02, 2018 04:11PM |
Registered: 7 years ago Posts: 126 |
input length = 21; input price = close; input ATRs=1; input trueRangeAverageType = AverageType.WILDERS; def flag; def EMA = ExpAverage(close, length); def shift1 = ATRs * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length); def neg = EMA - shift1; def pos = EMA + shift1; def TriggerBull= EMA > EMA[1] and close > pos; def TriggerBear=EMA < EMA[1] and close < neg; #----------------------------------------------------------- def trigger; if TriggerBull then { trigger=1; flag = 1; } else if TriggerBear then { trigger=-1; flag = -1; } else { trigger=0; flag = flag[1];#preserves previous flag value } #----------------------------------------------------------- def bullish = trigger== 1 or (flag==1 and EMA > EMA[1]) ; def bearish = trigger == -1 or (flag==-1 and EMA < EMA[1]); DefineGlobalColor("bullish", Color.UPTICK); DefineGlobalColor("neutral", Color.BLUE); DefineGlobalColor("bearish", Color.DOWNTICK); AssignPriceColor( if bullish then GlobalColor("bullish" ) else if bearish then GlobalColor("bearish" ) else GlobalColor("neutral" ));
Re: Fun with ThinkScript July 02, 2018 09:59PM |
Registered: 5 years ago Posts: 2 |
Re: Fun with ThinkScript July 06, 2018 05:50PM |
Registered: 6 years ago Posts: 32 |
Re: Fun with ThinkScript July 08, 2018 09:31AM |
Registered: 5 years ago Posts: 2 |
Re: Fun with ThinkScript July 08, 2018 10:02AM |
Registered: 5 years ago Posts: 2 |
TOS, get close or low of the highest high bar July 09, 2018 05:39PM |
Registered: 5 years ago Posts: 3 |
Re: Fun with ThinkScript July 10, 2018 03:10AM |
Registered: 7 years ago Posts: 126 |
Quote
ash
I want to add a filter to scanning stock which is ([ATR(14)/close] greater than .0007).
Re: Fun with ThinkScript July 10, 2018 03:33AM |
Registered: 7 years ago Posts: 126 |
Quote
Taz
I can't code the part in bold red.
Buy Criteria
1. Aapl 5ema crosses 15 ema on 15 min Chart. (this was the easy part lol)
2. Spy currently trading above 10 ema on 15 min chart.
input price = FundamentalType.CLOSE;
#--------------------------------- def secondaryPrice = Fundamental(price, "SPY" ); def emaspy = ExpAverage(secondaryPrice, 10); def cond2 = secondaryPrice > emaspy; #---------------------------------
AddOrder(OrderType.BUY_AUTO, FastMA crosses above SlowMA and cond2, tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "MovAvgTwoLinesStratLE" );
Re: Fun with ThinkScript July 10, 2018 11:57AM |
Registered: 5 years ago Posts: 2 |
Re: Fun with ThinkScript July 11, 2018 06:48PM |
Registered: 6 years ago Posts: 32 |
MVWAP July 12, 2018 09:12PM |
Registered: 5 years ago Posts: 3 |
Centered Moving Average (CMA) July 13, 2018 10:11AM |
Registered: 5 years ago Posts: 11 |
Re: Centered Moving Average (CMA) July 14, 2018 10:34AM |
Registered: 7 years ago Posts: 126 |