ChrisMoody

TimWest Long Short Filters

TimWest Long Short Filters

Indicator Has 3 Separate Filters that Create Green( Bullish ) or Red( Bearish ) BackGround Highlights

If Price is Above or Below a certain LookBack Period - Tim Defaults to 63 on Daily Chart to Quickly View if Price is Above or Below it’s Price 1 Quarter Ago.

A Simple Moving Average Filter - Tim Defaults to 50 SMA and 200 SMA also known as the “Golden Cross”.

A Exponential Moving Average Filter - For Those Who Want To View Shorter Term Market Swings. Defaults to 50 EMA and 100 EMA used By Chuck Hughes, 7 Time World Trading Champion. Chuck Claims the 50/100 EMA's Show the Earliest Change in Market Direction the Equal - Sustainable Moves

Inputs Tab has Checkboxes to Turn On/Off any of the 3 Filters Above.

Reference Chart Post https://www.tradingview.com/v/UmsFo3hv/#tc108729
Remove from Favorite Scripts Add to Favorite Scripts
//Created by ChrisMoody for TimWest on 10/17/2014
study(title="TimWest_Long Short Filters", shorttitle="TimWest_Long-Short-Filters", overlay=true)
source = close
def = input(false, title="------Make Sure ONLY 1 Checkbox Below is checked!!! Or You WILL Get False Results!!!------")
def2 = input(false, title="You Can Check More Than 1 Box To Create Multiple True/False Condition BUT The Background Colors Will Change!!!")
def3 = input(false, title="------If You Select More Than ONE CheckBox Below - Test By Plotting Indicators On Chart To Understand BackGround Colors!!!")
def4 = input(false, title="------ACTIVE CheckBoxes Start BELOW This Line!!!---")
sp = input(true, title="Show BackGround Highlight based on Lookback Period of Price?")
len = input(63, title="Lookback Period to Compare Current Price To.  Tim's Default is 63-Approx. 1 Quarter")
ssma = input(false, title="Show BackGround Highlight based on Cross of Short/Long SMA?")
smas = input(50, title="Short SMA.  Tim's Default is 50 SMA and 200 SMA - Golden Cross - Major Market Trend")
smal = input(200, title="Long SMA.  Tim's Default is 50 SMA and 200 SMA - Golden Cross - Major Market Trend")
sema = input(false, title="Show BackGround Highlight based on Cross of Short/Long EMA?")
emas = input(50, title="Short EMA.  Used for Evaluating Shorter Term Moves -Chuck Hughes 7 Time WorldTradingChampion uses 50-100EMA")
emal = input(100, title="Long EMA.  Used for Evaluating Shorter Term Moves-Chuck Hughes 7 Time WorldTradingChampion uses 50-100EMA")
//Criteria for LookBack of Current Price Vs. Price X bars ago
condpru = close[1] > close[len] ? 1 : 0
condprd = close[1] < close[len] ? 1 : 0
condPrice = sp and condpru ? green : sp and condprd ? red : na
//SMA Criteria
condsmaU = sma(close, smas) > sma(close, smal) ? 1 : 0
condsmaD = sma(close, smas) < sma(close, smal) ? 1 : 0
condSMA = ssma and condsmaU ? green : ssma and condsmaD ? red : na
//EMA Criteria
condemaU = ema(close, emas) > ema(close, emal) ? 1 : 0
condemaD = ema(close, emas) < ema(close, emal) ? 1 : 0
condEMA = sema and condemaU ? green : sema and condemaD ? red : na
//BackGround Hilight Plots
bgcolor(condPrice, transp=70)
bgcolor(condSMA, transp=70)
bgcolor(condEMA, transp=70)

Related Ideas

fcha PRO
2 years ago
Chris and Tim, thanks! This is cool! What number has to be turn it off and how?
Reply
ChrisMoody PRO fcha
2 years ago
fcha...I can give you a hard time since your the first person I spoke to on TradingView a LONG time ago....

Just go to the Inputs Tab. I specifically say only use 1 checkbox BELOW This Line... Instructions are simple...contact me back if your having problems
Reply
fcha PRO ChrisMoody
2 years ago
Oh.... from the input tab, I thought that from the code, sorry!
Reply
ChrisMoody PRO fcha
2 years ago
Since I can give you a hard time...No Excuse FCHA for a 19 month Veteran...

You should be teaching on TradingView by now
Reply
fcha PRO ChrisMoody
2 years ago
I cannot teach people now. I m still learning and I joint on TV from zero and never trade, from loosing money to winner now. I mean not 100% but much better since I joint TV.
Reply
niroola fcha
2 years ago
That is a great story fcha. Following smart and generous folks like ChrisMoody, Tim West and many many others; I too hope to have a story similar to yours.
Reply
fcha PRO niroola
2 years ago
Thanks! I feel bless joint with TV and I wish to become millionaire one day, specially since Chris is here. I will not forget all from TV. Tim West is very good as well, I see all his great work on his chart but I dont really understand that. I m learning now and try to understand Tim's work. I love Adrian as well, I made profit with his chart.
Reply
fcha PRO niroola
2 years ago
You will niroola! I decided to learn my self because Broker just make you broke. I just wonder that all TV member become a millionaire one day.
Reply
ChrisMoody PRO fcha
2 years ago
fcha,

First...it's an Honor to have you as part of the TradingView community. Your recent success story is precisely what the TradingView community was created for. I'm sure the owners will be Smiling from Ear To Ear when they read how TradingView has helped you improve. Although the reality is people signed up on TradingView the same day you did....and many aren't here any more. Yes... TradingView is growing exponentially. Fortunately, TradingView is attracting many high quality people like yourself...BUT KNOW THIS...YOU deserve the credit for your success b/c your "Inner Drive" and passion for Trading is 100% the reason you have started to become profitable. GREAT JOB!!!

Let's touch base soon.
+1 Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out