Quick scan for drift🙏🏻
ML based algorading is all about detecting any kind of non-randomness & exploiting it, kinda speculative stuff, not my way, but still...
Drift is one of the patterns that can be exploited, because pure random walks & noise aint got no drift.
This is an efficient method to quickly scan tons of timeseries on the go & detect the ones with drift by simply checking wherther drift < -0.5 or drift > 0.5. The code can be further optimized both in general and for specific needs, but I left it like dat for clarity so you can understand how it works in a minute not in an hour
^^ proving 0.5 and -0.5 are natural limits with no need to optimize anything, we simply put the metric on random noise and see it sits in between -0.5 and 0.5
You can simply take this one and never check anything again if you require numerous live scans on the go. The metric is purely geometrical, no connection to stats, TSA, DSA or whatever. I've tested numerous formulas involving other scaling techniques, drift estimates etc (even made a recursive algo that had a great potential to be written about in a paper, but not this time I gues lol), this one has the highest info gain aka info content.
The timeseries filtered by this lil metric can be further analyzed & modelled with more sophisticated tools.
Live Long and Prosper
P.S.: there's no such thing as polynomial trend/drift, it's alwasy linear, these curves you see are just really long cycles
P.S.: does cheer still work on TV? @admin
Angle
Trend AngleThe "Trend Angle" indicator serves as a tool for traders to decipher market trends through a methodical lens. It quantifies the inclination of price movements within a specified timeframe, making it easy to understand current trend dynamics.
Conceptual Foundation:
Angle Measurement: The essence of the "Trend Angle" indicator is its ability to compute the angle between the price trajectory over a defined period and the horizontal axis. This is achieved through the calculation of the arctangent of the percentage price change, offering a straightforward measure of market directionality.
Smoothing Mechanisms: The indicator incorporates options for "Moving Average" and "Linear Regression" as smoothing mechanisms. This adaptability allows for refined trend analysis, catering to diverse market conditions and individual preferences.
Functional Versatility:
Source Adaptability: The indicator affords the flexibility to select the desired price source, enabling users to tailor the angle calculation to their analytical framework and other indicators.
Detrending Capability: With the detrending feature, the indicator allows for the subtraction of the smoothing line from the calculated angle, highlighting deviations from the main trend. This is particularly useful for identifying potential trend reversals or significant market shifts.
Customizable Period: The 'Length' parameter empowers traders to define the observation window for both the trend angle calculation and its smoothing, accommodating various trading horizons.
Visual Intuition: The optional colorization enhances interpretability, with the indicator's color shifting based on its relation to the smoothing line, thereby providing an immediate visual cue regarding the trend's direction.
Interpretative Results:
Market Flatness: An angle proximate to 0 suggests a flat market condition, indicating a lack of significant directional movement. This insight can be pivotal for traders in assessing market stagnation.
Trending Market: Conversely, a relatively high angle denotes a trending market, signifying strong directional momentum. This distinction is crucial for traders aiming to capitalize on trend-driven opportunities.
Analytical Nuance vs. Simplicity:
While the "Trend Angle" indicator is underpinned by mathematical principles, its utility lies in its simplicity and interpretative clarity. However, it is imperative to acknowledge that this tool should be employed as part of a comprehensive trading strategy , complemented by other analytical instruments for a holistic market analysis.
In essence, the "Trend Angle" indicator exemplifies the harmonization of simplicity and analytical rigor. Its design respects the complexity of market behaviors while offering straightforward, actionable insights, making it a valuable component in the arsenal of both seasoned and novice traders alike.
Moving Average Exponential Angle DetectionMoving Average exponential angle detection use to find the angle of moving average so we can take trade according to our strategy.
Hope you like this.
Thanks and Regards,
TradingTail
VWAP angle TrendThe VWAP Angle Trend is an indicator built with the aim of providing valuable insights into the reversal points of the #VWAP using Angle
This is achieved by calculating the angle between the current VWAP and its previous value over a customizable lookback period and normalizing it with ATR
By analyzing the angle, we can gain an understanding of the strength and direction of the VWAP, which can help them identify potential trend reversals or continuations.
After observing the market over a lengthy period, I have come to realize that as the angle increases above 65 or decreases under -65 , it confirms a higher likelihood of a trend reversal.
the indicator highlights these zones where a trend reversal is more likely to occur.
The indicator can help you to assess the strength and direction of VWAP, enabling you to make more informed trading decisions.
By identifying periods of strong momentum or potential exhaustion, you can seek opportunities for entering or exiting positions, and potentially capitalize on trend movements in the market.
Ignition Cha Cha ChaIgnition Cha Cha Cha (ICCC) is a 3 color coded moving average indicator which numerically quantify the angle of their trends. I have labeled them as fast, medium and slow. The trend colors are Green for bullish, Red for bearish and Grey for sideways. The sideways movement can be user defined for all 3 in the settings under Threshold. If you regard for example anything under 10º as sideways then place 10 in the corresponding threshold and any angle under 10º will give a grey moving average and a grey labeled text. I use this chart in several ways. If you don't want moving averages all over your Chartistic Masterpiece you can turn off the plots and leave the numeric angles which will give you an overview of the trend. Conversely if you want to make the ultimate trend chart you can setup a 4 chart layout, Weekly, Daily, 12 hour and 4 hour and add the indicator with 200/50/25 moving averages and look for confluence. I find the best way for this is turn off the candles and use the moving averages with the numeric labels. You also have the ability to turn off and on different aspects of the indicator so that there is good control over its look. Also I have given the indicator lots of Alert presets for all 3 of the moving averages so you can avoid demented screen-stairing. Please forgive the name, my mother made me do Ballroom dancing lessons as a kid.
Ignition Band Angles are Bollinger Bands with numeric angleI developed Bollinger Bands that provide a numeric value indicating their strength. To achieve this, I used the degree of the angle of attack and color-coded the numbers. The top band displays the number in the upper corner of the chart, the bottom band in the bottom corner, and the Basis is in the left middle. These numbers quantify the slope of the bands, which can be difficult to discern on a chart because stretching out the x and y axis can flatten or exaggerate a slope. With my Bollinger Bands, you get a constant reading that provides an accurate measurement of the angle and strength of a trend. I hope this helps.
EMA Slope/Angle OscillatorEMA Slope/Angle Oscillator, Multiple Moving Average Oscillator, Multiple type
Moving Averages HMA,EMA,WMA,SMA, VWMA,VWAP provided.
The angle is calculated between the Slow MA and Fast MA and the difference between the angle is plotted as Histogram.
Additionally Buy Sell Signals are plotted as green and red Dots.
its very easy to judge the movement of price Bearish/Bullish.
Bearish if price below 0 line
Bullish if price above 0 line
Zero crossing is Moving Average Crossover.
Trend Filter is provided to filter opposite signals.
Angle Threshold is provided to filter low angle false signals.
Dead zone is plotted around Zero Line. Trades can be taken after Threshold angle or Dead zone is crossed
Its interesting to see how different Moving Averages move along with price Action.
Triple-Angle Trend SignalAn enhancement and iteration of lmatl's "angle bar colors " to enable multiple angle bars (up to 3) each with customisable price sources, angle periods, thresholds of degrees, line thicknesses and colours. Full history is displayed of when the selected angle bars have all been within higher degrees (green background) and lower degrees (red background).
This indicator is useful when it is customised to suit individual charts where it can specify conditions to find entries on uptrends and exits on downtrends.
Angle Baby from JuiidaEasy and Simple
whenever fast moving average crossunder slow moving average, the bullish angle is created. A positive value in bull angle implies ticker is in bull mode from the reference point of crossunder.
Again, whenever fast moving average crossover slow moving average, the bearish angle is created. A negative value in bear angle implies ticker is in bear mode from the reference point of crossover.
!!!!enjoy!!!!
Cosmic VectorThis indicator will copy a moving average's plot and show whether its angle vector is negative or positive. In other words, it will show when the moving average starts to "accelerate" / "decelerate".
To use:
Add any moving average indicator to the chart
Click that indicator's More > Add Indicator on (MA)
Select the Cosmic Angle Gravity indicator
Cosmic AngleThis is a histogram that can display a moving average's angle and also show how volatile the change in angle is.
To use:
Add any moving average indicator to the chart
Click that indicator's More > Add Indicator on (MA)
Select the Cosmic Angle indicator
Adjust the Cosmic Angle 's Price To Bar Ratio value to reflect that of your chart's
Adjust the Cosmic Angle 's Threshold as per your liking (*1)
(*1) This setting affects the bar colors. It represents the minimum difference in degrees between the n and n-1 bars' angle to force a change of color.
angle bar colors [LM]Hello guys,
I would like to introduce you angle bar colors indicator. It colors bars depending the angle of the bar x length back and current one
lime angle > 70 degrees
green 20 < angle < 70 degrees
orange 0 > angle <= 20 degrees
purple 0 > angle >= -20 degrees
red -20 > angle > -70 degrees
maroon angle < -70 degrees
Any suggestions are welcome
Radar Screen v3This is a combination of various indicators that very rarely conflict, thus giving us a good understanding:
- "Price Rally" detecting whether price is rallying, giving us confidence it will continue.
- Volume - knowing volume is going with the trend is a good confidence check.
- Trend Angle - This will go red or green depending on whether the price angle is going up or down, taken over three bars.
- VWAP for all of these stock traders.
- EMA8 is a very sensitive moving average, good for short term trades.
- CCI SMA is a strategy I commonly use, please check out my other indicators for a functional description.
- Stochastics is used throughout many systems.
- RSI BB shows where price is rebounding of the bollinger band and then moving up or down.
As per all of my indicators, the system is simple - The more green lines you see, the stronger the buy signal. The more red lines you see, the stronger the sell. If its a 50/50 mix of red and green, then don't trade.
I can customise this further or add other strategies, please message me.
Angle & Price FlowThis is a simple end of the day indicator based on open and close values.
Angles:
Identifying narrow angles helps to find breakouts
Maximum angle = High chance of reversal
Minimum angle = Chance of breakouts on the next day or upcoming days.
Price Flow:
I personally use price flow to simplify the flow of candlestick chart and to identify breakouts using rounding bottoms and rounding top patterns, sharp corners for reversals.
Features:
Multi time frame
Labels
Hide previous period
Combine it with other indicators for better result.
Angle & Price FlowThis is a simple end of the day indicator based on open and close values.
Angles:
Identifying narrow angles helps to find breakouts
Maximum angle = High chance of reversal
Minimum angle = Chance of breakouts on the next day or upcoming days.
Price Flow:
I personally use price flow to simplify the flow of candlestick chart and to identify breakouts using rounding bottoms and rounding top patterns, sharp corners for reversals.
Features:
Multi time frame
Labels
Hide previous period
Combine it with other indicators for better result.
Ehlers Correlation Angle IndicatorThe Correlation Angle Indicator was created by John Ehlers (Stocks & Commodities V. 38:06 (8–15)) and this is technically three indicators in one so I'm splitting each one to a separate script. This particular indicator was designed for trend termination and simply buy when it is green and sell when it turns red.
Let me know if you would like to see me publish other scripts or if you want something custom done!
Correlation Cycle, CorrelationAngle, Market State - John EhlersHot off the press, I present this "Correlation Cycle, CorrelationAngle, and Market State" multicator employing PSv4.0, originally formulated by Dr. John Ehlers for TASC - June 2020 Traders Tips. Basically it's an all-in-one combination of three Ehlers' indicators. This power packed triplet indicator, being less than a 100 line implementation at initial release, is a heavily modified version of the original indicator using novel techniques that surpass John Ehlers' original intended design.
This is also a profound script in numerous ways. First of all, these three indicators are directly from the illustrious mastermind himself Dr. John Ehlers. Secondarily, this is my "50th" script published on TV, which makes it even more significant. I'm especially proud of this script to "degrees" of imagination I once didn't know was theoretically possible in code. My intellect has once again been mathemagically unlocked pondering new innovations with this code revelation. Thirdly, this PSv4.0 script shows the empowering beauty and elegance of hacking the stock markets with TV's ultra utilitarian Pine Editor(PE) in a common browser! Some of you may be wondering if I worked on this for days... nope! This only took a few hours, followed by writing this description for another hour plus.
I have created many of Ehlers' indicators in PE, a few of which I have published in my profile, but I wanted to show how programming with Pine Script can be an artistic form of craftsmanship and poetry. None of this would be possible without the ingeniously minded Tradingview staff revolutionizing algorithmic trading at it's finest. If you should ever encounter them by chance, ponder humbly thanking these computing wizards for their diligence and dedication. They are providing, and shall award to us members, some of the most fascinating conceptualized tech imaginable in the coming future. I can assure you, much, much more is yet to be unveiled for us TV members/enthusiasts. Thank you TV and all you offer to this community.
As always, I have included advanced Pine programming techniques that conform to proper "Pine Etiquette" by example. There are so many Pine mastery techniques included, I don't have an abundance of time to elaborate on all of them. For those of you are code savvy, you may have notice I only used one "for" loop for increased server efficiency, instead of the two "for" loops in the original formulation. For those of you who are newcomers to Pine Script, this code release may also help you comprehend the immense "Power of Pine" by employing advanced programming techniques while exhibiting code utilization in a most effective manner. This is commonly what my dense intricate code looks like behind the veil. If you are wondering why there is hardly any notes, that's because the notation is primarily in the variable naming.
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND a few more... Why list them, when you have the source code!
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!
Moving Average Slope [aamonkey]This indicator tries to identify ranging and trending markets.
It measures the angle of a Moving Average in order to filter out ranging markets.
The idea is to only enter a trend following trade if the slope is steep enough.
In order to create this indicator, I used a strategy script from bennef called "Trend Angle BF" and slightly modified it to transform it from an entry/exit indicator to a filter.
The calculations are based on Evergrets "Jurik MA" and angle calculation by KyJ.
Angular MomentumEXPERIMENTAL:
Returns a smoothed non lagging(peaks are convergent time wise) angular motion.