The guy from Trading Rush just made his own moving average that disappears in a range market to cut out false signals: Source code of the "Trading Rush Moving Average" (the one that disappears in range markets) that was tested 100 Times in the latest Trading Rush video:
Just wanted to share in case someone wanted to convert to thinkscript:
Original Source Code By Trading Rush (for TradingView) starts below this line:
Just wanted to share in case someone wanted to convert to thinkscript:
Original Source Code By Trading Rush (for TradingView) starts below this line:
Code:
//Created by Trading Rush
// © Trading Rush
//@version=4
study(title="Trading Rush Moving Average", shorttitle="TR EMA", overlay=true, resolution="")
len = 200
src = close
ema1 = ema(src, len)
maColor = if(close[5] > ema1[5] and close[10] > ema1[10] and close[15] > ema1[15] and close[20] > ema1[20] and close[30] > ema1[30] and close[40] > ema1[40] and close[50] > ema1[50] and close > ema1)
[URL='http://color.green/']color.green[/URL]
else if(close[5] < ema1[5] and close[10] < ema1[10] and close[15] < ema1[15] and close[20] < ema1[20] and close[30] < ema1[30] and close[40] < ema1[40] and close[50] < ema1[50] and close < ema1)
[URL='http://color.red/']color.red[/URL]
else
[URL='https://color.new/']color.new[/URL](color.white, 100)
plot(ema1, title="TR EMA", color=maColor, linewidth=4)