Wellenanalyse
Fractal Composite Ribbon V2.1Added alerts when L1 fast or L2 med-fast pop out of grey hysteresis state into red or green. These new alerts do not require being in shaded overbought/oversold zones so they're better for catching continuation moves. Thanks to fbatistat for the suggestion.
Also exposed the "Cross Hysteresis" parameter for the width of ambiguous grey "slack" before lead lines push into red or green.
Fractal Composites Ribbon (V2)Compresses 8 fractal oscillator timescales into a ribbon of up to 5 composite lines.
This is a smoother version of the original Fractal Composite with alerts on reversals in the overbought/oversold zones.
Fractal Composites normalize and 'cartoonize' the price chart to fit and bounce between statistically-defined overbought and oversold zones. Each lines resembles the shape of the price wave on a different time/size scale, with some distortion as the size of price movement fluctuates. Conceptually, reaching the overbought/oversold zone corresponds to price reaching a ribbon of Bollinger bands, though our 'band statistics' are much smoother and more mathematically sophisticated than standard Bollinger.
Because markets have similar fractal behavior across all timescales, this indicator applies to any timescale, from 1 minute to 1 hour or 1 day. You shouldn't really need to futz with the numerical parameters -- the most important choice is your chart timescale for how fast you want to trade. A faster timescale will show you more dotted reversals in the overbought/oversold zones to trade. The 'Show...' checkboxes let you choose how many composite lines, lag lines, and crosses to see. Information overload? Or a reminder that any single indicator embeds many assumptions about time and price scale in its signal...
BullTrading Chaos Trend WaveHave you ever wonder how the Elliott Wave looks like?
If you trade with price action you are going to love this stuff... It is based on the same Mandelbrot Chaos Theory principles in order to trade with Bill Williams fractals. Chaos Trend Wave indicator displays in your chart the different Elliott wave layers making price action trading very intuitive.
The standard settings are 126, 1, 5, 21 displaying the immediate bigger wave from your current layer, display settings for your current layer and "balance point" are: 126, 1, 3, 13. Use Fib sequence in the last two numbers in order to correctly change between wave layers: 126, 1, 8, 34 and 126, 1, 13, 55 (This is the higher setting, it is very useful to spot and trade trending markets).
Fractal Quad Components8 Fractal Resonance Component indicators on a chart eats up LOTS of vertical space, so we're providing this Fractal Quad Components script to group 4 components a bit more compactly (eliminating the margin whitespace between indicator rows).
To view 8 components you'll need to add a second instance of this script to your chart and set its Base Timescale Multiplier to 16. Then grab the dividers to stretch both instances to a good viewing height.
One disadvantage of this grouping method is that to read off the x2, x4, and x8 lead and lag line values, you'll need to mentally add 200, 400 or 600 respectively.
We also replaced the "Extreme" > +-100% black crosses (+) with more subtle purple circle outlines. These extreme crosses are often (but not always) too early to be a major reversal so it's best not to overemphasize them.
Significant crosses (> +-75%) are still highlighted with black circle outlines, and are the most likely to be major reversals for buy/sell.
Note how the 30-minute oscillator (2nd row) showed the cleanest (black-outlined) reversals on the S&P for the last week of 2016, with just a bit more profit-eating lag than the 15-minute oscillator above.
Fractal Resonance CompositeFractal Resonance Composite compresses 8 timescales of stochastic oscillators into just 3 color-coded composite lines: fast, medium and slow. Fast emphasizes the shorter timescale oscillators, medium considers all 8 timescales evenly, and slow emphasizes the longer timeframe oscillators. The composite lines indicate how overbought/sold the market is relative to the size of its recent movements. Major buys occur when all three composites enter the Oversold (green shaded) range and turn up, and major sells when all three reach the Overbought (red shaded) range and turn down. The fast line's quicker reversals and exaggerated alternations on smaller price moves makes it more fit for scalping. Notice the fast and medium lines tend to snap back toward the slow line like stretched rubber bands.
As is particularly apparent in the slow line, the nifty mathematics of the compositing process reconstruct the topology (peaks and valleys) of the underlying price curve in a smoothly distorted "cartoon" form that has a very useful property: the composite lines are confined to +-100% Extreme Overbought/sold oscillatory ranges. (By definition, only extremely rare "parabolic" moves can push all 3 composites beyond +-100%). If we knew that price would always stay confined to a certain range, trading would be much easier, no? Always buy the bottom of the range and sell the top!
How it works
To understand what's behind this nifty property, consider the mathematics of LazyBear's WaveTrend port .
The formula is fairly simple as indicators go yet statistically fundamental in a way that suggests it should have been the grandfather of all market stochastic oscillators. It's just a running average of the ratio:
(price's current deviation from it's mean)
-----------------------------------------------------------
(running average of absolute |price deviation from the mean| )
In formal statistics notation this is written:
E{ (X - E{X}) / E{|X-E{X}|} }
Where X is the price random variable and E{} the averaging or Expectation operator, implemented in this oscillator as exponential moving averages.
Conceptually, the denominator measures and normalizes by the typical size of recent price moves. This normalization process is what stretches or compresses the local price movements such that the whole composite curve can stay within the oscillatory range.
Attributes
The default fast=.6, medium=1, slow=1.4 compositing factors give each line visually distinct behavior, but can be tweaked to emphasize different oscillator "speeds".
Particular lines can be disabled by setting their line width to 0.
Fractal Resonance BarLazyBear's WaveTrend port has been praised for highlighting trend reversals with precision and punctuality (minimal lag). But strong "3rd Wave" trends can "embed" or saturate any oscillator flashing several premature crosses while stuck overbought/oversold. This happens when the trend stretches over a longer timescale than the oscillator's averaging window or filter time constant. Our solution: monitor many timescales. With Fractal Resonance Bar's rich color codings, strong wavefronts form across timescales and jump out like an approaching line of thunderclouds!
Fractal Resonance Bar color-codes the status of eight underlying stochastic oscillators, with each row averaging over twice the time of the row above.
Fractal Resonance Bar shifts its timescales along with your choice of main chart timescale:
1 minute chart: 1 minute through 128 minute (~2 hour) oscillators.
15 minute chart: 15 minute through 1920 minute (~32 hour) oscillators.
1 hour chart: 1 hour through 128 hour (~2 week) oscillators.
Daily chart: 1 day through 128 day (~4 month) oscillators.
The color map is configured as follows:
Hot Pink: Extreme Overbought (> 100%) rolled over to sell, but oscillators probably embedded with more upside (revert to Dark Green) possible after a pause.
Deep Red: Overbought (> 75%) crossover ripe for selling (validated when red spreads to timescales below).
Brown: Minor (< 75%) crossover sell from which could bounce back green or start a plunge toward gray/black.
Gray/Black: Mature (< -75%) sells turning full black in a plunge before the dawn.
Lime Green: Extreme Oversold (< -100%) and bouncing, though may yet bottom even lower.
Green: Oversold (< -75%) crossover ripe for buy. Green spreading to all timescales below will validate bottom is in.
Dark Green/Teal: Mature buy in overbought (> 75%) range, waiting for sell crossover to Hot Pink for a pause or correction.
White Stripes are Impulsive Trend Warning
Fractal Resonance Bar warns of oscillator embedding by showing white stripes when it detects strong, early surges in the timescale rows below.The white stripes usually accompany Hot Pink warning it's too early to go short, or Lime Green warning it's too early to go long.
Heeding these warnings will probably miss the exact top or bottom, but you're less likely to get overrun in a momentum move.
Usually the market gives us a second opportunity to short very close to the top or buy very close to the bottom after the warning white stripes have subsided.
NOTE: Recently rolled over Futures contracts may not have enough history for all oscillator calculations, in which case no bar colors will appear.
Tweakable Attributes
The default Channel Length, Stochastic Ratio Length and Lag Length work reasonably well on all timescales in our experience. Minor tweaks don't hurt but this may just overfit to a particular chart history.
We don't recommend changing the 75% Overbought and 100% Extreme Overbought default levels as these are ideal numbers relative to the underlying oscillator statistic calculations. But these settings can shift the color transition levels.
Embedded attribute controls the sensitivity/conservativeness of the white strip embedding detectors. Closer to 75 increases the warning sensitivity while closer to 100 decreases the aggressiveness of blocking white stripes.
Embed Separation also affects the white stripe sensitivity.
Row width increases each row's thickness to fill the available screen height you've afforded the bar.
Fractal Resonance ComponentLazyBear's WaveTrend port has been praised for highlighting trend reversals with precision and punctuality (minimal lag). But strong "3rd Wave" trends can "embed" or saturate any oscillator flashing several premature crosses while stuck overbought/oversold. This happens when the trend stretches over a longer timescale than the oscillator's averaging window or filter time constant. Our solution: simultaneously monitor many oscillator timescales. Watch for fresh crossovers in "dominant" timescales alternating most smoothly between the overbought (red shade) and oversold (green shade) range.
Fractal Resonance Component facilitates simultaneous viewing of eight timescales that are power of 2 multiples of the chart timescale. Each timescale shows lead line, lag line, lead-lag difference, and crossover marks. Add 4 to 8 copies to your chart for a good multi-fractal read. Format * the "Timescale Multiplier" attribute of each row to be twice that of the row above for a sequence like 1, 2, 4, 8, 16, 32, 64, 128...
Fractal Resonance Component shifts its timescales along with your choice of main chart timescale:
1 minute chart: 1 minute through 128 minute (~2 hour) oscillators.
1 hour chart: 1 hour through 128 hour (~2 week) oscillators.
Daily chart: 1 day through 128 day (~4 month) oscillators.
Crossovers in different oscillator ranges tend to have different meanings:
Minor (< 75%) crossovers: small green/red dot
usually noise
Overbought/Sold crossovers (shaded 75 to 100%): black outlined dot (o)
reliable reversal indicators (when they appear alone)
Extreme Overbought (> 100%) crossovers: black outlined plus (+).
Can be a major reversal in fast markets, but usually portend the end of Elliot 3rd waves with just a small corrective (4th wave) retrace before the larger impulsive (5-wave) sequence resumes in original direction.
The final 5th-wave terminus should appear later as a lone non-extreme (black outlined circle) crossover on a slower timescale coincident with weaker (non-extreme) dot crosses on this timescale.
Careful examination of historical charts leads to many useful observations such as:
Dominant crossovers punctuating true reversals are usually in the green/red shaded ranges with black outlined dots (o) rather than minor or Extreme (+) ranges.
Due to market's fractal nature, two well-separated timescales like 1 minute and 1 hour can show dominant crosses simultaneously in opposite directions, e.g. the 1 minute showing a very short term high and the 1 hour a medium term low nearby.
Staying Nimble
Watch out for embedding on your supposedly dominant timescale -- a second cross while stuck in the overbought/oversold region suggests a stronger, longer trend than expected. Drop your eyes to a slower timescale below for the real dominant whose crossover will validate main trend reversal.
Embedding can often be predicted even at the first cross mark by checking whether the green lead line of the next slower timescale (one row below) has already hit the Overbought or especially the Extreme Overbought range but isn't close to rolling over. Fractal Resonance Bar (to be published) uses this principle to mark embedded timescales with white stripes, warning of a powerful trend wave on longer timescales you shouldn't fight until the white stripes subside.
Overnight gaps surge all timescales in ways that obscure the dominant timescale, so for shorter than daily charts, these methods work best on Futures contracts that only suffer weekend gaps.
Hilbert Sine Wave Support and ResistanceSupport and Resistance plotted to match John Ehler's Hilbert Sine Wave
[RS]Swing Charts V0 Trend Counter V0EXPERIMENTAL:
wave counting using swing charts, use at your own discretion.
[RS]3 Level ZigZag Semafor V0EXPERIMENTAL:
request for CharanTejaM
zigzag may be adjusted to use other methods.
zigzag repaints, use at your own discretion.
MACD Divergence MultiTimeFrame [FantasticFox]This is a MACD divergence on 3 time-frames, 1h, 4h and 1D.
Please insert the indicator into a 1h chart, otherwise change the lengths' inputs.
you will see H1,H2, H3, R1, R2 and R3 in green and maroon colors.
H means hidden divergence, 1 regards to 1h, 2 to 4h, and 3 to 1D. If the color is green, its bullish, and if its maroon the divergence is bearish.
Gray circles on 4h macd is for those traders who want to check the confirmation on Elliott wave changes.
*Thanks to RicardoSantos MACD divergence.
[RS]ZigZag PA V4 Advanced Patterns V0.01EXPERIMENTAL:
Method for detecting 4/5/6/7 point harmonics
included 3drive detection rates are rudimentary.
[STRATEGY][RS]ZigZag PA Strategy V4.1EXPERIMENTAL:
WARNING: this strategy repaints after reloading and results are heavily curve fitted, use at your own discretion.
UPDATE: (AleksanderThor) add option for a 2nd target, to use you need to activate pyramiding with a setting of 1 manually (not possible to change programatically) .
[STRATEGY][RS]ZigZag PA Strategy V4EXPERIMENTAL:
WARNING: highly curve fitted results, if you dont know whats going on stay away.
Madrid SinewaveThis implements the Even Better Sinewave indicator as described in the book Cycle Analysis for Traders by John F. Ehlers .
In the example I used 36 as the cycle to be analyzed and a second cycle with a shorter period, 9, the larger period tells where the dominant cycle is heading, and the faster cycle signals entry/exit points and reversals.
[RS]Fractals V9update: added optional option for marking the fractals with bgcolor (request for: faizal.mansor.908)
[RS]Neo Wave V0EXPERIMENTAL: Request for IvanLabrie.
Method for reading Neo Wave's.
note: some issues arent possible to work around/fix due to limitations in pinescript.
[RS]ZigZag PA V1ZigZag Based on price oscilation.
added pattern recognition, also added recognition of head and shoulders and contracting/expanding triangles to previous list of patterns :p
Use Alt Timeframe: enables optional timeframes, use higher timeframes to reduce noise.
Timeframe: said Alt Timeframe.
Show Patterns: toggles Pattern Recognition on.