OPEN-SOURCE SCRIPT

Martyv Auto Fib Retracement with Logarithmic Support

Telah dikemas kini
Simple & easy auto-fib levels. Took the out-of-the-box version provided by TradingView and added Logarithmic support and a nicer palette, and made the controls a bit nicer to use (in my opinion lol). Enjoy.
Nota Keluaran
Updated depth to 18 periods, and set extended lines as the default setting.
Nota Keluaran
A few tweaks to default settings.
Nota Keluaran
Updated a few default settings. Primarily increased Deviation to 6 and Depth to 18 (you can change these in settings).
Nota Keluaran
A little housecleaning... minor visual adjustments and level tweaks.
Nota Keluaran
Began adding support for "dynamic fib multipliers" - meaning the multiplier adjusts itself according to the timeframe, basically automating some of the tweaks I like to make when switching timeframes, especially small ones. There's both a 'low multiplier' and a 'high multiplier' input (defaulting to 3, 6) and the retrace fibs will switch between those multipliers depending on your time multiple.
Nota Keluaran
Minor tweaks to fib timescale multipliers for more useful/"better" dynamic adjustments.
Nota Keluaran
Minor depth change for high multiplier
Nota Keluaran
Title update. Bothered me.
Nota Keluaran
Added support for dynamic threshold multipliers at key timeframe resolutions. The goal is to be able to slap a correct fib retrace on any chart and it adapt to the resolution so you avoid teeny-tiny barcode fibs or huge gaping chasm fibs (you can always draw those on as needed). Not a game changer or anything, but a nifty little tool that I enjoy building and using. I've found it helpful so far, hopefully others out there do too! 👻
Nota Keluaran
Minor changes to defaults
Nota Keluaran
Minor change to default values/colors.
Nota Keluaran
Minor default change.
Nota Keluaran
Minor default change
Nota Keluaran
Default values change - Getting closer to a more accurate dynamic detection system.
Nota Keluaran
Added dynamic depth options to go along with deviation options. Working towards having it default to calculating the best inputs for the currently viewed timeframe, and some cool new features both suggested by users and from my own machinations. Hehe >:)
Nota Keluaran
Updates to initial deviation and depth defaults. Fine-tuning the rough version of the dynamics.
Nota Keluaran
Minor default swap
Nota Keluaran
Color changes
Nota Keluaran
Minor default swap. Honing in on various "one size fits most" details.
Nota Keluaran
Name change.
Nota Keluaran
Small default swap.
Nota Keluaran
Default swap.
Nota Keluaran
Update: Found some variations on default values that should work well for most general uses. Also updated some of the line styles for more visual cues on important levels. In the future I'd like to make each level take user input on solid, dashed, dotted, etc.
Nota Keluaran
Minor color changes.
Nota Keluaran
Updated to use a higher timeframe ZigZag to find the most appropriate fib for the current timeframe (ZigZag scale can be changed in settings). Also added divergence detection across many different options, and additional fib levels are added as price action moves out of range. Currently there is a bug with the 'reverse' feature.
Nota Keluaran
Added a trend channel (basically a 2nd Zig Zag) that you can use to keep you in the proper trend. I've found it useful, no idea if anyone else will. But, you can easily turn it off. Also cleaned up the input panel and optimized the autofib extension a bit.
Nota Keluaran
Defaults update and screenshot update.
Nota Keluaran
Adjusted Fib lookback vs. Trend Channel lookback for better results (for me, so far...), it seems to work better in my strategies to have the autofib on a larger lookback than my trend channels. Helps with identifying fib level probabilities, hopefully this is helpful to others :)
Nota Keluaran
Made many changes, and divided the functionality up into 4 pieces: Fibonacci, Divergence, Trend Channels, Super Smooth. They can be turned on/off individually, and there are customizable settings for each feature. I am working on a more fully-featured indicator, so if you have things you'd like to see or if you catch any bugs please let me know. Thanks!

1. AutoFib
Uses a Zig-Zag with a specified lookback period (Default 34)
Customizable fib levels, colors, and styles
Automatically adds fib extensions as needed
Can change the lookback period and turn the visible Zig Zag and/or AutoFib on/off
Can turn Logarithmic on/off

2. Divergence
Can identify and mark divergences (regular and hidden) for MACD, MACD Histogram, RSI, Stochastic, CCI, Momentum, OBV, Diosc, VWmacd, and Chaikin Money Flow
Can turn divergences on/off individually
Can choose to show hidden divergence

3. Trend Channels
Uses a Zig-Zag with a specified lookback period (Default 21)
Setting AutoFIb to a longer lookback than Trend Channels is recommended, at least that has been working very well for myself
Can turn channels on/off
Can change the lookback period and turn the Zig Zag and/or Channels on/off

4. Super Smooth
Uses the John F. Ehlers Supersmooth method on a specified lookback period (Default 14)
Checks the current price action against the lookback period trend and if the Supersmooth signal aligns with the trend direction, it gives a strong signal (Bull/Bear). A continuation signal (Neutral) is given if these two don’t match, and often indicates trend continuation or trend reversal.
Can turn supersmooth and/or matching bar repaint on/off
Can choose between Bull/Bear/Neutral signals and only Bull/Bear signals
Alerts available for Bullish or Bearish change
Can choose current timeframe or any timeframe
Nota Keluaran
The autofib has been recalculated, and you can now choose to display the most recent "confirmed" fib retrace, or the more recent unconfirmed fib (this results in a direct 0-1 fib retrace containing recent price action). I also adjusted the lookback length to 21 for both the fib zigzag and the trend channel zigzag, which seems to yield better results for me.

- Can choose between AutoFib with manually defined levels or SmartFib with levels automatically calculated, including extensions as needed. You can change all values to suit your needs
- Choose between only using the most recent confirmed fib retrace, or the currently developing (non-confirmed) fib retrace - this will also contain price action within a 0-1 fib
- Adds fib extensions as needed, you can define extension levels
Nota Keluaran
Updated to provide 2 new retrace options,
1) Contain Price (will make sure current price action is between a 0-1 fibonacci retracement. Fibs are considered 'valid' once price action has retraced beyond 23.6%) - You can turn this off to activate fib extension levels, and
2) Manual fib levels - Will respect fib levels as you have them checked in settings, regardless of auto settings

Also a minor update to add a few more available fib levels. These two features have proved to be very useful in my own analysis, hopefully it helps you with yours.
Nota Keluaran
Updated Alert functions, there are two:

1) Bullish signal - alerts when the TREND RIBBON flips to bullish on the current timeframe
2) Bearish signal - alerts when the TREND RIBBON flips to bearish on the current timeframe

I don't have a signal included for the neutral state when using the 3-way ribbon color. If you think that would be useful let me know.
Nota Keluaran
Added 2 new options:

1) Weight bar colors by volume (you can adjust sensitivity)
2) Weight bar colors by momentum (you can adjust sensitivity)
Nota Keluaran
Added a current price tag that can be turned off, and lives within the margin between price action and the fib level labels. Found it was useful to have the current price on the screen next to the bar.
Nota Keluaran
This version has the Trend Ribbon removed, as we start the process of removing features to get back to the original idea of 'just' an autofib here. If you're really in love with the trend ribbon and must have it, message me here on TradingView and I'm happy to give you access to a version that still has it.
That's it for this update, thanks everyone for your support and keep the feedback coming! -E
Nota Keluaran
Continuing to pare down this indicator to its true initial purpose of being a simple autofib with logarithmic support - please note that all the features I'm removing are still available on the Technical Analysis Kit if you need them! Thanks everyone and best of luck in your trading :)
Nota Keluaran
Hey everyone, I have some news about this indicator. I decided to stick to the original goal of this project and remove the trend channels. I know, it’s sad 😢 but don’t worry, you can still find them in the TA Kit. Thanks for your support and happy trading! 🚀👍
Nota Keluaran
One of the final updates to make this a more pure fibonacci retracement measurement tool with logarithmic support. Any features removed can be found in the Technical Analysis Kit (patreon.com/anker). Thank you for the boosts!
autofibautofibonacciDivergencefibPivot PointsretraceretracementretracementlevelssmartfibSupport and ResistanceZig Zag Indicator

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Juga pada:

Penafian