Updated with V2a, corrected only the channel type names (for technical correctness).. Donchian Channel is the Highest/Lowest for a period, which produces a boxy-looking channel.. that's my favourite (google Donchain system). i don't know a technical term for the channel when you take an EMA of highest/lowest which produces a curvy-type channel, so i refer to it as DonchianEMA. the rest is the same .. no calculation changes...
Here's a "Swiss Army Knife" study for fellow ToS'ers .. big thank you to my good forum friend, HGuru, for helping me complete this ...
this is a many-in-1 study, that provides a choice of price channel of many that are commonly used (Keltner, Highest/Lowest, Elder, Keltner, Bollinger..etc), and provide 2 types of signals, based on momentum of 2 EMA lengths of price (Length & Fast_Length):
1 - the primary Momentum signal is based on the main length you set in the study, and is reflected in the color of the price channel itself (green = Up = go Long, red = Down = go short, yellow = retrace or "in-transition")
(pls remember this is momentum and not trend .. though the study has the word "Trender" in the name)
2 - the secondary signal is based on momentum of the fast length EMA. and is only Up or Down. (i would usually take Up position in a green channel or down position in Red channels, so maintain direction with the primary momentum)
there are many other settings we built-into the study to play with and customize for improved visualization. better visual = better decision.. you see in the screenclip how many "personalities" we can get with different options. from settings you can do anything from hiding all elements and leaving only the secondary signals, to fully using it as your trading system, if your system is built around ATR or BB, with the added benefit of the momentum signal. you can combine with other studies you have (i'd suggest a trend following study) for a compact system that won't require lower plots (beside volume if you need it).
the calculation/CPU load this study requires isn't that much, even though it looks packed.
Settings to change length, Fast, Channel Type, the factor for the channel (for BB this would be the StDev, for Keltner the ATR factor, for Shifted EMA's the percentage...etc) - Hide the channel shading, hide/show the lines (the EMA's, the mid-channel, channel bands..etc)
there's an aggressiveness factor built in that we can set - basically this is like saying, "if the Fast Trend is decreasing and becomes less than 10%, this is as good as a negative momentum, and i want to trigger a signal to go short". Leave at 0 until you test this in your own setup and get comfortable with it.
the code is commented, and i'd ask to please keep this study only within BMT as it took a lot of work.
feedback appreciated, happy trading.
RedK
Category The Elite Circle
|
|
|