TradingView
PtGambler
2022年8月6日晚上8點25分

ZigZag with Retracement Levels 

US SPX 500OANDA

描述

This is a modification to "ZigZag with Fibonacci Levels" by LonesomeTheBlue. https://www.tradingview.com/script/vCJe18K3-ZigZag-with-Fibonacci-Levels/

By default, the script finds the ZigZag, draws Fibonacci lines and labels accordinly. ZigZag period can be set.

The modification to the original script provides the following features:

1) Option for user to customize retracement levels, if they don't want to use Fibonacci levels. This allows for different strategy adoptions.

2) Option to show Fibonacci or custom retracement levels based on the latest pivot (including the current bar)

For example:


Enjoy and happy trading~!!

發布通知

Fixed calculation error on current fib level 1 and level 5
評論
inv2019
Thank you for the Script. I have found it very very useful. I am using it now.
Here are the few thing I have in my mind while using it.
Can it be Changed to See the Fibo Levels in the Opposite Side as well with Single "Reverse Option" ??
Like If I want to See the 1.382 or 1.618 or 1.786 level in the Current Trending Direction, But.. it is showing in the Opposite Direction.
However I am managing it by Changing the Level Values to Negative Number. Like -0.618 for 1.618, -0.382 for 1.382 etc.
Also, few more Levels could be added. Only Five Levels are there.
Plus Text Position For the Previous Trend and the Current Trend both are going either left or right. Could it be individually controlled ? Like for the Past Trend on the Left Side and for the Current Trend it be on Right Side.
ralla1214
Nice script!
How do I put options that can be changed to log scale?
Food_Plus
Just to tell you that in your addition of fibo in yellow there is an error... it is upside down
PtGambler
@Food_Plus, hmmm is it? Seems to work fine for me. DM me if you can.
Food_Plus
@PtGambler, Thank you for answering.
I used the fibonacci retracement tool from Tradingview to overlay it with your fibo indicator and it doesn't match..

I traced from the top to the bottom because it's for a rebound (bullish trend)

Can you check on your side ?
Here is a screenshot

PtGambler
@Food_Plus, Thanks for noticing~ it should be fixed now with the latest update~!
Food_Plus
@PtGambler, thank you.. is it possible to know what you modified because I had tried but I had not succeeded in reversing it?
PtGambler
@Food_Plus, I think the only change i made was on line 144 and 146 to have (1-array.get(fibo_ratios, x)) for y1 and y2, instead of array.get(fibo_ratios, x)
Food_Plus
@PtGambler, Thank you
TraderMVP
Thanks for keeping it simple and accessible.
更多