TradingView
tradearcher
Aug 4, 2015 10:54 PM

Trade Archer - Moving Averages - v1.4F 

Apple Inc.NASDAQ

Description

Trade Archer Moving Averages has been updated!

Description:
Moving averages are one of the cornerstones to technical analysts tool box. There are several different kinds of moving averages of which the most common can be selected. Up to four moving averages may be configured and displayed with the option to show clouds between them. Additionally I have added a trend identification system that analyzes the slopes of the moving averages instead of relying on moving average cross overs for long/short signals.

Features:
- Multiple Moving Average Choices including: SMA, EMA, DEMA, TEMA, RMA, HMA, WMA, and VWMA.
- Four fully customizable MAs including length, color, and/or optional clouds between the MAs.
- Three ways to display MA trends: bar color, background and/or colored shapes.

Notes:
The default settings for the MA lengths are: 9, 19, 50, 200. MAs default to EMAs if none are selected.
If you use a blend of MAs, like SMA and EMA, you can apply the indicator again to the same chart and enable/disable the ones you want visible, their type, and trend display.

If you have any questions or need help configuring, feel free to contact me.

Good luck
Trade Archer
tradearcher@gmail.com
tradearcher.com
@tradearcher
Comments
Kennyfoong
May I know what does it mean when the candlestick turn yellow at default setting?
scantor516
Hello sir. This is really good. Thanks for your work.
r.harbuz
Great job, very useful tool. Thanks a lot!
FractalEyeZ
Nice work and thanks for this. Is there a way to make the background cloud [Normal Cloud] plot two different colors depending on the direction of the trend? For example, I just want to use one instance of the indicator with 2 WMA's that crossover but I want the background cloud itself to change to a custom color of my choice on direction of the dominant trend. Maybe you could add a "Normal Cloud Up" custom color and a "Normal Cloud Down" custom color for example so the colors will change after the MA's crossover.

I have an indicator that does this for MT4 and I could post a picture of it so you can see what I mean if you need me to. It's some type of Filled Ribbon MA and if you set the thickness of the Lines to maximum it creates a filled in cloud with two colors that change when the trend changes. I just want my background to be light blue when the MA's cross up and a light gray when the MA's cross down.

tradearcher
Thanks for the feedback and comments. Excellent suggestion. I know what you are talking about with different colors for the zone between two MAs. I will try and update this weekend if I can find some time.
I have an OBV MA indicator as well.
FractalEyeZ
Oh cool man, and thanks for all your efforts.

Enjoy your weekend :)
tradearcher
Sorry. Been a bit swamped. I have found similar code to it. Little more involved than I thought at first. But it is on my todo list as it is a useful feature.
tradearcher
Do you know how to add code to a current script? If so, append the color below to the current script.
It will do cloud color changes only for Fast and MedFast MAs. Tweak the indicator 'Style' options to
get your desired effect.

//Created By User Trade Archer (Kevin Johnson), 4/9/2016
// Quick Cloud Color Patch with Fast and MedFast MAs.
// Cloud Color Changes based on: CM_Enhanced_Ichimoku Cloud-V5
usecldchg = input(true, defval=true, type=bool, title="Cloud Color Change")
fastAbove = mafast >= mamedfast ? 1 : na
medfastBelow = mafast <= mamedfast ? 1 : na

s1plotU = fastAbove ? mafast : na
s2plotU = fastAbove ? mamedfast : na
s1plotD = medfastBelow ? mafast : na
s2plotD = medfastBelow ? mamedfast : na

col = fastAbove ? lime : red
sp1 = plot(usecldchg and s1plotU ? s1plotU : na, title='1', style=linebr, linewidth=2, color=col)
sp2 = plot(usecldchg and s2plotU ? s2plotU : na, title='2', style=linebr, linewidth=2, color=col)
sp3 = plot(usecldchg and s1plotD ? s1plotD : na, title='3', style=linebr, linewidth=2, color=col)
sp4 = plot(usecldchg and s2plotD ? s2plotD : na, title='4', style=linebr, linewidth=2, color=col)
//Fills that color cloud based on Trend.
fill(sp1, sp2, color=lime, transp=70, title='Above')
fill(sp3, sp4, color=red, transp=70, title='Below')
tradearcher
Here we go with a sample setup with Cloud Color Change.

FractalEyeZ
Thank you Kev, I really appreciate your efforts because I tried to figure it out last week but was just left scratching my head! I did look at CM's Ichimoku Cloud code but could not figure out how to properly re-code it. You programmer guys are really smart and I knew you would figure it out.

I pasted the new updated lines of code right beneath this line:

fslowcloud = fill(pmedslow, pslow, color=red, transp=90, title="Slow Cloud")

and it works perfectly! Now I have the best MA and can customize it how I want...nice :)

Mine are currently set to 21 and 63 WMA's and I'm really diggin' the purple and grey...hehehe!!!

So this is now version v1.4G right?

More