I've split the script in 3 separate ones:
Default settings are without lines (faster)
If you want to see the lines, enable the "Just show Arrows (No Lines)" button
Should it be that a message "Calculation timed out.Remove the indicator and reapply it to the chart" appears,
try to refresh or pick another TimeFrame (and return to the previous TF), normally it will work then.
Thank you very much!
also Divergences are loading quicker ;-)
ברוח TradingView אמיתית, מחבר סקריפט זה פרסם אותו עם קוד פתוח, כך שסוחרים יוכלו להבין ולאמת זאת. הידד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום הנו בכפוף ל כללי הבית . אתה יכול להגדירו כמועדף ולהשתמש בו בגרף.
"Length" = Length RSI
"Show Regular Divergences": = self explanatory
"Show Hidden Divergences": = self explanatory
"Just Show Arrows (No Lines)": or just arrows shown, or lines
Then you have the appearance settings of the labels
"LeftBars & RightBars": A high or low RSI is compared with Pivot points, the "LeftBars & RightBars" is the field where highest or lowest bars are found,
best to set "RightBars" as low as possible (min 1), these are the bars which are checked right of the concerning bar, "LeftBars" are the amount of bars checked at the leftside of the concerning bar (= history)
Margin: More margin gives more lines while margin 0 gives less lines
Both has it advantages and disadvantages, the one gives too much lines, the other misses sometimes lines,
so you can play with it until you find what is right for you,
Indeed, that is the reason that this happens, the script is too heavy for the server, but splitting it into 2 or 4 parts helps a lot!
Dank you so very much!