A Useful MA Weighting Function For Controlling Lag & SmoothnessSo far the most widely used moving average with an adjustable weighting function is the Arnaud Legoux moving average (ALMA), who uses a Gaussian function as weighting function. Adjustable weighting functions are useful since they allow us to control characteristics of the moving average such as lag and smoothness.
The following moving average has a simple adjustable weighting function that allows the user to have control over the lag and smoothness of the moving average, we will see that it can also be used to get both an SMA and WMA.
A high-resolution gradient is also used to color the moving average, makes it fun to watch, the plot transition between 200 colors, would be tedious to make but everything was made possible using a custom R script, I only needed to copy and paste the R console output in the Pine editor.
Settings
length : Period of the moving average
-Lag : Setting decreasing the lag of the moving average
+Lag : Setting increasing the lag of the moving average
Estimating Existing Moving Averages
The weighting function of this moving average is derived from the calculation of the beta distribution, advantages of such distribution is that unlike a lot of PDF, the beta distribution is defined within a specific range of values (0,1). Parameters alpha and beta controls the shape of the distribution, with alpha introducing negative skewness and beta introducing positive skewness, while higher values of alpha and beta increase kurtosis.
Here -Lag is directly associated to beta while +Lag is associated with alpha . When alpha = beta = 1 the distribution is uniform, and as such can be used to compute a simple moving average.
Moving average with -Lag = +Lag = 1 , its impulse response is shown below.
It is also possible to get a WMA by increasing -Lag , thus having -Lag = 2 and +Lag = 1 .
Using values of -Lag and +Lag equal to each other allows us to get a symmetrical impulse response, increasing these two values controls the heaviness of the tails of the impulse response.
Here -Lag = +Lag = 3 , note that when the impulse response of a moving average is symmetrical its lag is equal to (length-1)/2 .
As for the gradient, the color is determined by the value of an RSI using the moving average as input.
I don't promise anything but I will try to respond to your comments
Gradient
Trading With Colors7 hours ago
Hello friends. This is simply a moving average ribbon, per se. The values for the colored ribbon can have their length calculated to fit their chosen resolution on the current one. This solved problems for me, but it was my own solution. Maybe I'll learn something new from sharing this.
To everybody else who is learning as well, this script essentially serves to introduce other time-frame moving averages. This intends to helps traders find the scope of relevance and not get lost in the current time-frame.
Besides the colored moving averages (2 sets, different resolutions, great zoomed in our out), I included optional check-boxes to allow comparison of sets of moving averages at will, so that the most important to the individual trader can be compared and selected specifically.
I kept the default options set to keep it clean. It likely won't be the only indicator on one's chart, so it's naturally best to reduce indicator noise from one, as to not subtract from the benefit of the other indicators.
I integrated tons of acquired knowledge into this, so I hope somebody finds a missing piece to their collection or a solution to a coding problem within. I also hope this provides a new insight and helps others on their path to financial freedom.
Best wishes.
PS: I left some old code in comments in case it helps to understand the evolution of my code. I'll update this again once it works on the Daily. You might figure it out before I do, in wish case, do share :)
Combination Parabolic MA/IIR/ALMA Strategy, and other goodies Okay, so this is a lot. It started mostly with me combining indicators and looking for ideal entry criteria.
It is also a collection of conditions, whether used or unused, for my current chosen "best" strategy. It is currently set how I like it, but it has changed with time, and will continue to do so. Within, there are variables that are unused, but offer some insight into the overall odds of a trade. They were, in fact, once used but fell out of favor. And all details for this strategy are within the comment header of the script.
As this evolves, I most certainly wont keep any future findings and hope for profit from my peers (yinz). Also, I'd like to give a sincere thanks to the people of TV for what I learned in a few month's time and their flexible membership plans. Basically, I'm just a mad scientist, but this monster's a masterpiece and folks here before me made many indirect contributions to it.
--------------------------
Okay guys, lastly and most importantly,
Each smack of the like button is a vote of your confidence in me, to my beautiful landladies, Celeste and Adele, that my rent will be caught up and that it won't always be a problem. Which, in my mind, makes me a graph. And they've got strong hands and don't sell the low. I more than respect that. Seriously. And I'm very grateful for their willingness to work with me, but the thing is that I didn't ask first; life just happens. But few are tolerant of others. And quite importantly, I truly believe that I will be successful one day, and that "thumbs-up" button is your vote of confidence. If you're not sure, then don't hit it yet. Maybe my scripts will boost your confidence in me :)
-------------------------
PS: And you know what? I'ma give a shout-out to Philakone for teaching me everything that I know about Elliot Wave . Absolutely. Two years ago, I would keep telling myself that one day I will put something in his gratuity wallet or pursue the paid courses. And, I still plan on it, because I'm grateful. And so also, to everybody else, I'm recommending him to learn from. because as a trader who might not know everything for free, you can certainly fill in the gaps with his altruistic offerings. And I'm betting that you will then feel more than inclined to buy the Udemy course.
"If wave 2 retraces a lot; number 4 will not". Repetition. Philakone didn't fix my memory but he sure did find a workaround, haha
Okay, everyone, Thanks!
Combination Parabolic MA/IIR/ALMA Strategy, with other goodiesOkay, so this is a lot. It started mostly with me combining indicators and looking for ideal entry criteria.
It is also a collection of conditions, whether used or unused, for my current chosen "best" strategy. It is currently set how I like it, but it has changed with time, and will continue to do so. Within, there are variables that are unused, but offer some insight into the overall odds of a trade. They were, in fact, once used but fell out of favor. And all details for this strategy are within the comment header of the script.
As this evolves, I most certainly wont keep any future findings and hope for profit from my peers (yinz). Also, I'd like to give a sincere thanks to the people of TV for what I learned in a few month's time and their flexible membership plans. Basically, I'm just a mad scientist, but this monster's a masterpiece and folks here before me made many indirect contributions to it.
--------------------------
Okay guys, lastly and most importantly,
Each smack of the like button is a vote of your confidence in me, to my beautiful landladies, Celeste and Adele, that my rent will be caught up and that it won't always be a problem. Which, in my mind, makes me a graph. And they've got strong hands and don't sell the low. I more than respect that. Seriously. And I'm very grateful for their willingness to work with me, but the thing is that I didn't ask first; life just happens. But few are tolerant of others. And quite importantly, I truly believe that I will be successful one day, and that "thumbs-up" button is your vote of confidence. If you're not sure, then don't hit it yet. Maybe my scripts will boost your confidence in me :)
-------------------------
PS: And you know what? I'ma give a shout-out to Philakone for teaching me everything that I know about Elliot Wave . Absolutely. Two years ago, I would keep telling myself that one day I will put something in his gratuity wallet or pursue the paid courses. And, I still plan on it, because I'm grateful. And so also, to everybody else, I'm recommending him to learn from. because as a trader who might not know everything for free, you can certainly fill in the gaps with his altruistic offerings. And I'm betting that you will then feel more than inclined to buy the Udemy course.
"If wave 2 retraces a lot; number 4 will not". Repetition. Philakone didn't fix my memory but he sure did find a workaround, haha
Okay, everyone, Thanks!
[LunaOwl] Rainbow Color Gradient作品: 色彩漸變-彩虹帶
This script is about rainbow color gradient, there are 35 colors from red to purple. The color changes with the time series, from light to dark, and then to light, repeat. Maybe it's visually beautiful. Compared to practicality, I prefer to use it as a color gradient reference. for the later works.
色彩漸變彩虹帶,從紅到紫有35種色調,隨著時間序列進行而變化,由淺到深再到淺,或許視覺上很美。
相比於實用性,我覺得應該當成色彩漸層的參考,對於以後作品可以使用上。
--------------------------*
The changing process of the rainbow (resolution = 63).
彩虹帶的時序變化過程,分辨度是63格,充滿 (✪ω✪) 圖表藝術!
Fill Strength Gradient [BigBitsIO]This script plots two moving averages but is mostly designed to highlight a fill strength gradient. The fill strength gradient shows a more opaque fill based on the current percentage difference of the current difference to the maximum difference in two MAs in a trend.
Citation: PinceCoders - Slight modification on color functions
MTF Lag-Less RasterChart (Spectrogram/HeatMap)I present yet another state-of-the-art "MTF Lag-Less RasterChart" employing PSv4.0. Simply describing how this indicator works, the bottom of the indicator pane is most reactive and is highly effective at identifying reversal points quickly once they occur, while the upper portion of the indicator commonly shows enduring trends. This may be my finest multi-timeframe heatmap indicator that I have created so far, complete with multiple stunning gradient color schemes. I'm unsure if I will be able to pack any more tech into these RasterCharts. This may exclude additional algorithms or polychromatics I may discover later on that are worthy of other RasterChart releases. One last thing, this is a companion indicator to my "Lag-Less Rainbow Ribbon" indicator, because the heavily modified base algorithms are nearly identical.
I once again would like to personally thank Dr . John Ehlers for inspiring me to ponder into the realm of heatmap technology and all it has to offer. Your mathemagical splendor is most appreciated! You're a divine inspiration to the algorithmic trading community and forever shall be.
The MTF capabilities include seconds, minutes, and days. If the time frame settings are shorter in time than the current sampling interval, a warning notification will be appropriately displayed. I included a horizontal rule to approximately gauge at what level you may wish to have before entering/exiting a trade upon identifying a trend change. This gizmo functions on all assets on time frames ranging from one second bars up to the "All" chart having monthly bars.
Lastly, I have included so many color scheming techniques that I couldn't demonstrate all of them above. This indicator has what I would term as enhanced "predator" vision. For those of you who have witnessed these movies, you may understand what I have built. This indicator additionally includes a color morphing control to perfectly adjust the gradients to your visual liking, on any time frame whether it be seconds or daily chart preferences. The use of this indicator is just like any of my other RasterCharts or heatmap indicators found on the internet, except it has the greatest versatility I have accomplished as of yet.
Features List Includes:
"Source" selection
MTF controls for seconds, minutes, and days
Adjustable horizontal rule to differentiate between more reactive aspects of turning point fluctuations in the lower portion of the chart (visible above)
Window aperture control
Adjustable heatmap brightness control
Visual color scheme techniques (a few of many are displayed above)
Color gradient morphing
Color inversion control
This is not a freely available indicator, FYI. To witness my Pine poetry in action, properly negotiated requests for unlimited access, per indicator, may ONLY be obtained by direct contact with me using TV's "Private Chats" or by "Message" hidden in my member name above. The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
[e2] Color Gradient Function20 step red/green gradient function
The color gradient function allow colorize any source in 5% steps.
Define the source, minimum and maximum value (constant or , for example, bb (or any other channel)).
ADX & DI HistogramThis bad boy shows the same info as a normal ADX & DI but I've endeavoured to remove a lot of the confusion. I also added red/green colour gradients to show how much ADX is trending, the darker the colour, the stronger the trend. This should help to avoid the upsidedowniness and confusion I've always found with the original. I made this a while ago and have made a few changes recently but I can't remember where I go the basic ADX code from, so credit to whoever that was. Enjoy
Phase Change IndexPhase Change Index script.
This indicator was developed and described by M. H. Pee (Stocks & Commodities V.22:5 (28-37): Phase Change Index).
Other indicators of M. H. Pee: