Christmas Tree Theme With Open Code To See Pine ScriptI had been trying to code a predictive algorithm working with sine waves, but I got distracted and made some snow and Christmas trees lol. I'm uploading this with the source code because I'm sure someone will be able to learn from it to create something useful.
Please follow me for some actual useful pine scripts and merry Christmas! :)
Cerca negli script per "wave"
Adaptive Bandpass Trigger OscillatorThis is based off of Ehler's Bandpass Filter system (link below slides 15-17). I then used Ehler's methods for finding the dominant cycle to automatically input the dominant cycle to the length. Essentially Ehler runs a band pass with a given period to detrend the price data and highlight a cycle with the given frequency(length). This represents the In phase cycle. Ehler then creates the trigger line by taking the one bar momentum of the In Phase line, multiplying by 2Pi and then using this to create a 60 degree leading signal. The triggers are crossovers of the In Phase and Lead lines. You can also use conservative signals by waiting for the In Phase line to trend in the direction of the trigger crossover as well.
Delta represents how much to influence the oscillator by the price (Delta 0 is a perfect wave)
Alpha represents how quickly to adapt between the dominant cycle changes in the price.
Thanks to LazyBear for implementing Ehler's original adaptive code, which I used for this system
Thanks to HPotter for the BandPass Filter code, which I used as a base for implementing the rest of the system
www.mesasoftware.com
Ehler Bandpass Trigger OscillatorThis is based off of Ehler's Bandpass Filter system (link below slides 15-17). Essentially Ehler runs a band pass with a given period to detrend the price data and highlight a cycle with the given frequency(length). This represents the In phase cycle. Ehler then creates the trigger line by taking the one bar momentum of the In Phase line, multiplying by 2Pi and then using this to create a 60 degree leading signal. The triggers are crossovers of the In Phase and Lead lines. You can also use conservative signals by waiting for the In Phase line to trend in the direction of the trigger crossover as well.
Length represent the cycle period you want to highlight.
Delta represents how much to influence the oscillator by the price (Delta 0 is a perfect wave)
Thanks to HPotter for the BandPass Filter code, which I used as a base for implementing the rest of the system
www.mesasoftware.com
Fractal FramerThis indicator constructs dynamic high/low price range levels, based on 3 point fractals. Trend lines are drawn (zigzag style) at fractal points when trend direction is clearly established.
This is a lagging indicator: fractals lag by one bar and trend lines can lag by many bars. However, its strength lays in objectively defining historic price action: e.g. support/resistance levels and waves within a trend.
See the comments at the beginning of the script for a complete description.
Golden Fib WavesDynamic Fibonacci levels in pleasing gold shades. Smoothing (SMA) of swing lows and highs enabled by default. Boldly, this just looks good. I am not sure whether it is of any help for trading purposes. If you do in fact find it useful, feel free to drop me a line and to share your insights.
Compare Wave IndexI built this indicator to compare the performance of multiple chart ID's, at the moment the chart analyses how far above or below the assets prices are compared to a moving average. In this first version, the indicator compares BTC against the current chart and also one customisable ticker, which by default is set to SLRBTC.
As I update the indicator I intend to make it possible to add many other chart IDs so that I can just take a quick look at the indicator to see how my faviorite assets are performing.
Any feedback is welcome, if anyone has any questions just leave me a comment.
Happy Trading,
Biffy
RSI TrendspotterHad a bit of a TA epiphany with RSI so bear with me. The time since RSI was last overbought/sold is a solid trend indicator. This may seem obvious but after x number of years trading it hit me like a smack in the face. I've coded this for easy visualisation. They're fairly simple changes but it's making a big difference in my trendspotting already.
In the example CMG hasn't been overbought for 183 days, so the RSI is mostly green:
Before that it hadn't been oversold for 199 days, so RSI is mostly red:
And before that it was ranging like a maf*ckin' sine wave, so the RSI shows green, red, green, red, etc.:
Finally, normal RSI for comparison. Same data, but now with pretty colours:
I've also added overbought/oversold highlights cause that just makes the whole charting thing a lot easier. Enjoy!
DVDIQQE [DW]This is an experimental study inspired by the Quantitative Qualitative Estimation indicator designed to identify trend and wave activity.
In this study, rather than using RSI for the calculation, the Dual Volume Divergence Index oscillator is utilized.
First, the DVDI oscillator is calculated by taking the difference between PVI and its EMA, and NVI and its EMA, then taking the difference between the two results.
Optional parameters for DVDI calculation are included within this script:
- An option to use tick volume rather than real volume for the volume source
- An option to use cumulative data, which sums the movements of the oscillator from the beginning to the end of TradingView's maximum window to give a more broad picture of market sentiment
Next, two trailing levels are calculated using the average true range of the oscillator. The levels are then used to determine wave direction.
Lastly, rather than using 0 as the center line, it is instead calculated by taking a cumulative average of the oscillator.
Custom bar colors are included.
Note: For charts that have no real volume component, use tick volume as the volume source.
Weis Wave Volume with alert [LazyBear]LFI added alert conditions to LazyBear's indicator on the second bar of a turn to bullish or bearish.
To use alerts:
be sure you are on the interval you want to create your alert,
be sure the indicator inputs are the way you want them,
create an alert, choose this indicator and then choose one of the 2 conditions.
Changes to the inputs after an alert was created require alerts to be recreated.
The alerts trigger on the second bar to avoid noise.
I also changed the default aesthetics, but more importantly the default period (from 2 to 5, because that's what I use most often).
Gain/Loss Moving Average [Cyrus c|:D]This is a simple momentum indicator. It calculates the moving average of gains and losses. As you can see in the chart above, gains have been decreasing in each wave which is also captured by this indicator. Its closest relative is RSI but unlike RSI it is not range bound. Divergence on indicators that are not range bound are generally more reliable.
Recommended settings:
- EMA as moving average type.
- EMA length 27 is equal to RSI length 14 (2 x RSI length - 1). You can sync the length on the two indicators using that equation.
- hlc3 (AKA typical price) as input source might be better than "close" as it captures more information. If you use hlc3 as a source, then change the chart type to line and set hlc3 as the source for identifying divergence.
PS: Let me know if you know any identical indicator. I may be re-inventing the wheel :)
Elliott Wave Oscillator w/ Signal LineI just added a signal line to Koryu's code to fit my trading style. When the signal line crosses zero, it confirms to me that it's safe to trade.
Bill Williams Trading Chaos Vol 1-NoviceThis is a revision of a script developed by tekolo. I hope tekolo takes a look. The concepts are here but I struggle with pine. I am very much a novice, but I tried to put information from the original book, Trading Chaos, Volume One by Bill Williams. There are too many plots to get this to wor. I made a lot of plot lines into comments to get it to run. I'm hoping someone with an interest in this material and some programming skills will be kind enough to take these thoughts and put them in a script that the Pine Editor would actually run. Thanks for taking a look. I do believe in these leading indicators. This is information included for Novice Level Trading in the Bill Williams book. There are more indicators developed in his material, but the jest is that Price is an end result of the marketplace. Market participation (Volume), Market Bias (Momentum), Increased Participation and Bias (Acceleration) all preceed the formation of the Trend. This along with Elliott Wave interpretation using his indicators as a basis for locating key points of the Elliott Wave, are most of what I understand about this interesting man's work. Again, I am a novice at all of this, but the leading indicators that result in price seem interesting. Thanks!
Original Wavy Tunnel This wavy tunnel setup is constructed according tu Jody Samuel's original Wavy Tunnel, consist of wave, tunnel & filter. Instead of dotted EMA like other user has constructed, this script uses smooth medium width EMAs & colored exactly like the formula Jody has instructed in her course.
Salty GRaB Wave with Highlights for Squeeze CCI-Arrows SlowStochThis indicator shows GRaB candles and allows several moving averages to be displayed at the same time.
It uses background coloring to identify momentum shifts. Wide bands of color can be used to identify trends while short bands of color can be used to identify reversals.
It has arrows above or below the candles to show CCI values above 100 or below -100 with the arrow pointing in the direction of the momentum.
It has red background coloring to show slow stochastic Overbought ranges and dark red signals indicating a cross of the fast and slow lines.
It has green background coloring to show slow stochastic Oversold ranges and dark green signals indicating a cross of the fast and slow lines.
It has yellow background to show squeezes with additional Squeeze information shown at the bottom of the chart in the form of letters and momentum arrows.
BE-RSI + Over Bought/Sold indicator. v1.05**Minor Fix: Colored when going up, AND down after the limit: 30 or 70.**
This is a Relative Strenght Index Indicator where you get a Colorful Mark when it's over bought / sold with it's respective color.
Strong indicator for starting a slow/correction movement.
If it goes over 70, it's overbought turning red indicating a possible Sell.
If it goes under 30, it's oversold turning green indicating a possible Buy.
It's another confirmation for trending lines to change direction.
snapshot
In the picture, we have BTC 1.76% -2.46% in a 1D chart. You can see the correlation is strong (Not 100% though)
Blue Empire is a Trading Academy teaching people how to do Wave Analysis and one important indicator is the RSI .
If you want to know more about learning, PM me for more information.
Added - Middle Trend Line. Below, it's going down. Above, It's going up.
##################
This is just an indicator, it doesn't predict the price. Use it at your own risk.
MG - Moving Average Offset AlertThe purpose of this indicator is to allow the user to get alerted when price gets within a certain threshold of an interesting moving average (which has a customizable length, type and source).
It can be used for a timely notification that the price is in an important area or used for alerts to trigger trades slightly above the moving average to provide a higher probability of getting an entry at a key level
Basic Example:
- A bullish impulse wave occurs
- You plan to join in the next wave as it bounces of the 50 SMA
- You would ideally like to do other things with your life than watch the screen all day but you would like some time beforehand to perfect your trade setup
- You therefore, could set an alert to let you know when price has dropped within 2% of the 50 SMA which would provide ample notice for a comfortable trade.
More interesting example - (Using autoview):
- A bullish impulse wave occurs late in the evening
- You would like to join in for the second wave but you are human and have to sleep
- You could identify sensible profit and stop loss targets beforehand
- You could then, in preparation:
- Set an alert at profit level to close any long positions
- Set an alert at stop level to close any long positions
- NOTE: If the alert is never reached, that is not a problem. You are simply closing a position (not applying the opposition action i.e. short)
- Once your targets are set up, you could add whatever offset you desire (if any), to your custom moving average and set a buy alert on that moving average.
- If the price bounces off the moving average, you have the whole trade set up and automatically put in to action whilst you're asleep!
Blue Empire - RSI with Over Bought/Sold indicator. v1.01**Minor Fix: Colored when going up, AND down after the limit: 30 or 70.**
This is a Relative Strenght Index Indicator where you get a Colorful Mark when it's over bought / sold with it's respective color.
If it goes over 70, it's overbought turning red indicating a possible Sell.
If it goes under 30, it's oversold turning green indicating a possible Buy.
It's another confirmation for trending lines to change direction.
In the picture, we have BTC -2.46% in a 1D chart. You can see the correlation is strong (Not 100% though)
Blue Empire is a Trading Academy teaching people how to do Wave Analysis and one important indicator is the RSI .
If you want to know more about learning, PM me for more information.
##################
This is just an indicator, it doesn't predict the price. Use it at your own risk.
Blue Empire - RSI with Overbought/sold indicator.This is a Relative Strenght Index Indicator where you get a Colorful Mark when it's over bought / sold with it's respective color.
If it goes over 70, it's overbought turning red indicating a possible Sell.
If it goes under 30, it's oversold turning green indicating a possible Buy.
It's another confirmation for trending lines to change direction.
In the picture, we have BTC in a 1D chart. You can see the correlation is strong (Not 100% though)
Blue Empire is a Trading Academy teaching people how to do Wave Analysis and one important indicator is the RSI.
If you want to know more about learning, PM me for more information.
##################
This is just an indicator, it doesn't predict the price. Use it at your own risk.
CMO_EMA (Chande Momentum Oscillator and EMA)
The absolute value of "CMO" alone makes it impossible to know the current location for the waves and there is a possibility of doing useless entry.
To prevent this, display EMA.
CMO_EMA (Chande Momentum Oscillator and EMA)The absolute value of "CMO" alone makes it impossible to know the current location for the waves and there is a possibility of making useless entries.
In order to prevent this, display EMA.