Re: Fun with ThinkScript March 15, 2016 02:35PM |
Registered: 9 years ago Posts: 38 |
Re: Fun with ThinkScript March 15, 2016 04:39PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 15, 2016 06:15PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 15, 2016 07:02PM |
Registered: 8 years ago Posts: 20 |
Re: Fun with ThinkScript March 15, 2016 07:15PM |
Registered: 8 years ago Posts: 2 |
Re: Fun with ThinkScript March 17, 2016 07:57AM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 17, 2016 08:56AM |
Registered: 8 years ago Posts: 20 |
Re: Fun with ThinkScript March 17, 2016 07:22PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 19, 2016 07:51AM |
Registered: 9 years ago Posts: 60 |
Re: Fun with ThinkScript March 19, 2016 10:59AM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 19, 2016 01:56PM |
Registered: 9 years ago Posts: 60 |
ATR Trailing Stop Cross Over March 20, 2016 11:54AM |
Registered: 8 years ago Posts: 45 |
close is less than MovAvgExponential("length" = 8) and close is less than SimpleMovingAvg("length" = 21) and close crosses below ATRTrailingStop("atr period" = 9, "atr factor" = 2.9) or close is greater than MovAvgExponential("length" = 8) and close is greater than SimpleMovingAvg("length" = 21) and close crosses above ATRTrailingStop("atr period" = 9, "atr factor" = 2.9)
Re: ATR Trailing Stop Cross Over March 20, 2016 03:32PM |
Registered: 8 years ago Posts: 45 |
Re: Fun with ThinkScript March 22, 2016 06:27PM |
Registered: 8 years ago Posts: 22 |
Re: ATR Trailing Stop Cross Over March 23, 2016 11:40AM |
Registered: 8 years ago Posts: 45 |
Re: Fun with ThinkScript March 24, 2016 02:33PM |
Registered: 9 years ago Posts: 38 |
Re: Fun with ThinkScript March 25, 2016 12:48AM |
Registered: 9 years ago Posts: 60 |
# $ADVN - $DECN input AD_Trend_Length = 1; def AD = close("$ADVN" ) - close("$DECN" ); def ADtrend = Average(AD[1], 1); AddLabel(AD > ADtrend, "A/D: " + Round(AD, 2), Color.GREEN); AddLabel(AD <= ADtrend, "A/D: " + Round(AD, 2), Color.RED); # $TICK def tick = close("$TICK" ); def overbought = tick > 800; def oversold = tick < -800; AddLabel(overbought, "$TICK: " + Round(tick, 2), Color.RED); AddLabel(oversold, "$TICK: " + Round(tick, 2), Color.GREEN); AddLabel(!overbought and !oversold, "$TICK: " + Round(tick, 2), Color.LIGHT_GRAY); # TRAN input TRAN_Trend_Length = 1; def TRAN = close("TRAN" ); def TRANtrend = Average(TRAN[1], 1); AddLabel(TRAN > TRANtrend, "TRAN: " + Round(TRAN, 2), Color.GREEN); AddLabel(TRAN <= TRANtrend, "TRAN: " + Round(TRAN, 2), Color.RED); # XLF input XLF_Trend_Length = 1; def XLF = close("XLF" ); def XLFtrend = Average(XLF[1], 1); AddLabel(XLF > XLFtrend, "XLF: " + Round(XLF, 2), Color.GREEN); AddLabel(XLF <= XLFtrend, "XLF: " + Round(XLF, 2), Color.RED);
Re: Fun with ThinkScript March 25, 2016 10:09AM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 25, 2016 11:28AM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 25, 2016 12:39PM |
Registered: 8 years ago Posts: 7 |
Re: Fun with ThinkScript March 25, 2016 09:58PM |
Registered: 8 years ago Posts: 1 |
Re: Fun with ThinkScript March 28, 2016 01:54PM |
Registered: 8 years ago Posts: 25 |
Re: Fun with ThinkScript March 29, 2016 02:49PM |
Registered: 8 years ago Posts: 54 |
Re: Fun with ThinkScript March 29, 2016 04:59PM |
Registered: 8 years ago Posts: 25 |
Re: Fun with ThinkScript March 29, 2016 11:34PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 31, 2016 10:51AM |
Registered: 9 years ago Posts: 38 |
Re: Fun with ThinkScript March 31, 2016 02:45PM |
Registered: 8 years ago Posts: 45 |
alert(state != state[1], "ATR Trailing Stop Alert", alert.BAR, sound.ring); assignBackgroundColor(if state != state[1] or state != state[2] then color.yellow else color.current);
def alertup = close[2] <= highConf and close[1] > highConf and VolUp[1]; def alertdn = close[2] >= lowConf and close[1] < lowConf and VolUp[1]; alert(alertup, getsymbol() + " UP", alert.bar, sound.ring; alert(alertdn, getsymbol() + " DOWN", alert.bar, sound.ring);
Re: Fun with ThinkScript March 31, 2016 04:30PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 31, 2016 04:37PM |
Registered: 10 years ago Posts: 143 |
Re: Fun with ThinkScript March 31, 2016 06:57PM |
Registered: 9 years ago Posts: 38 |