Divergence for many indicator v3Hello Everyone. Almost one year later, with Pine version 4, I developed new version of the Divergence for many Indicator.
It analyses divergences for 10 predefined indicators and then draws line on the graph. Red for negatif divergence (means prices may go down or trend reversal), Lime for positive divergences (means prices may go up or trend reversal)
Divergences version 2 has latency because it waits higher time frame completion. in this new version the script uses Pivot Points and on every bar it checks divergence between last Pivot point and current bar and if it finds any then immediately draws line and removes old one. so there is no latency with this version.
There are predefined 10 indicators in the script, you have option to choose which indicators the script would analyse for divergence. (RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, Diosc, VWMACD and CMF)
In replay mode you can see how the script puts new divergence line and removes old one. you better see it for yourself by using replay mode.
Hope you Enjoy!
Pivotsupport
Trend LinesHello Everyone! This is my new trend lines script (after beta version that was published almost one year ago)
The idea is to find Pivot Highs (PH) and Pivot Lows(PL) first.
Then, If current PH is smaller then previous PH (means no new higher high and possible downtrend) then draw trend line using them. and also it checks previous trend line (if exits) and if current angle is smaller then don't extend previous one.
Same idea when using Pivot Lows, If current PL is higher then previous PL (means no new lower low and possible uptrend) then draw trend line using them. and also it checks previous trend line (if exits) and if current angle is smaller then don't extend previous one.
Optionally style of old trend lines drawn as dashed.
Hope you enjoy it!
BEST Pivots CloudHello traders,
This script is an adaption of an FXCM indicator called Pivots Cloud
Takes in input two timeframes, build the pivots based on them and fill the space between those pivots
Should be non-repainting
Best
Dave
Golden Pivot1. Golden Pivot indicator combines Central Pivot Range and Camarilla Pivots.
2. Pivot calculations are based on Secret of Pivot Boss book by Frank Ochoa.
3. One can also view tomorrow's pivots by today EOD.
Significant PP - Swing Failure / Stop Run Alerts [QN]Tried to create a script for Swing Failure / Stop Run patterns. It is based on my QuantNomad - "Significant Pivot Reversal" Indicator.
It's quite tricky to code these kinds of patterns, so it's really not ideal. I alert when a candle cross pivot level but close below (above for bottom) it and previous close was below (above) it as well.
You can setup params for pivot points and also by how much it should cross pivot level with "SF ATR Mult".
I have in mind a few other things I'd like to test:
* Different types of pivot points
* Few recent pivot levels at once
* Pivots from higher timeframe
* Different types of "touching" levels
* etc.
Ideally, I want to create a strategy from it, but I'm far from it for now.
Do you have any ideas on how to make it better?
Original Significant Pivot Reversal Indicator:
RSI PivotIt is based on RSI. When RSI crosses (70)up and (30)down bands, it draws a price line.
Cheers :)
Trend Direction Helper (ZigZag and S/R and HH/LL labels)Hey everyone
First of all, I'd like to thank Ricardo Santos, Backtest Rookies for the inspiration for this script.
Actually, most of it is coming from them and I only mixed them up (and added my secret sauce ^^). If some of you are not thinking about a trading secret sauce, please get serious for a moment :)
Some of you asked me how I do to set the trend direction. You all understood that if you get an UP label, then the price should go up and vice-versa for down.
But it's not so easy to define the good signals for each asset and each timeframe. I'm going to repeat what I said yesterday because ... well... that's what trading is about
So quoting myself here "The inputs set by default will have to be changed for your asset/timeframe and can't be generic for everything. You have to play with the inputs until the signals will make sense to you
The indicator/strategy with a unique configuration that you'll never check or update according to the market condition DOES NOT exit. "
BUT... a bit of patience and practice and you might do wonders.
The Method
I never realized until now but by connecting the higher highs/lower lows, I was drawing zigzag lines.
The Zig Zag Master is Ricardo Santos . Please give him a follow, he's awesome
For those who don't want to draw on the chart or (my preferred choice) need some inspiration to define your trend directions, this script is for YOU (and your family, your pet, your girlfriend/boyfriend, ...)
I think that each asset/timeframe chart has its own history. What worked in a post could work in the future.
In that regard, if a trend direction worked in the past, that's the parameter that I'll use to trade with it in a demo account and make sure it's relevant. If not then I will adjust
If you're trading with new indicators or a new method right away on your real trading account, you're gonna have a bad time imgflip.com
Lines EVERYWHERE
The script draws the classical horizontal pivots + the zig zag lines + the Higher Highs/Lower Lows label in just 1 script. I'm very excited to share a script (on which I coded 100 lines out of 500) but no one else did it
The horizontal pivots part are coming from Backtest Rookies
For more security, you can add a pullback on a moving average after getting a signal. Pullbacks are necessary to limit any eventual loss or maximize your gains by getting in the trend sooner.
I really give you a solid method and a great script in my opinion. 6 years of experience given away for FREE :p (when Dave will start thinking as a business man instead :O)
Does it repaint ?
Getting this question twice a day. You guys are obsessed with the repainting :)
Short answer, yes because it will calculate the pivots and zig zags whenever new higher highs/lower lows will be formed.
However, the trend direction code is based on the candle close so it shouldn't repaint. If it does, please let me know
See you all on Monday
Love you all
Dave
____________________________________________________________
Be sure to hit the thumbs up. Building those indicators take a lot of time and likes are always rewarding for me :) (tips are accepted too)
- If you want to suggest some indicators that I can develop and share with the community, please use my personal TRELLO board
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Disclaimer:
Trading involves a high level of financial risk, and may not be appropriate because you may experience losses greater than your deposit. Leverage can be against you.
Do not trade with capital that you can not afford to lose. You must be aware and have a complete understanding of all the risks associated with the market and trading. We can not be held responsible for any loss you incur.
Trading also involves risks of gambling addiction.
Please notice I do not provide financial advice - my indicators, strategies, educational ideas are intended to provide only some source code for anyone interested in improving their trading
The proprietary indicators and strategies developed by Best Trading Indicator, the object of intellectual property rights are and remain the exclusive property of Best Trading Indicator, at the exclusion of images and videos and texts free of rights or provided by the Company or external legal or physical person.
No assignment of intellectual property rights is carried out through these Terms and Conditions.
Any total or partial reproduction, modification or use of these properties for any reason whatsoever is strictly prohibited without the express written authorization of the Company.
QuantNomad - Ultimate Pivot Points AlertsCreated a universal script for pivot points alerts.
In the script, you can choose one of 4 pivot point types: Traditional, Fibonacci, Woodie, and Camarilla.
You are able to create separate alerts for every level or create one for price crossing any level.
For separate levels, you can choose: "Cross", "Crossover" and "Crossunder".
You can also choose to show/hide:
Historical Levels
Levels Values
Current Levels - Levels calculated on the current period, on close of the period they will become valid levels for next periods. These levels do not participate in alerts calculations.
Because of some TradingView limitations, alerts won't be fired for the first bar of the session.
In the script used new v4 plotting features, so will be able to plot levels and labels nicely. Unfortunately, there is a limit on the number of consecutive lines you can plot on the plot (around 50), so historical lines in the past will disappear after 6-7 periods.
And remember:
Past performance does not guarantee future results.
Traditional Pivot Points AlertsCreated a script for alerts on Traditional Pivot Points.
You will be able to create separate alerts for every level or create one for price crossing any level.
Because of some TradingView limitations, alerts won't be fired for the first bar of the session. Will try to solve that in the new versions.
In the script used new v4 plotting features, so will be able to plot levels and labels nicely. Unfortunately, there is a limit on the number of consecutive lines you can plot on the plot (around 50), so lines in the past will disappear.
You can enable/disable in params displaying level itself on the chart.
And remember:
Past performance does not guarantee future results.
Fibonacci Pivot Points AlertsCreated a script for alerts on Fibonacci Pivot Points.
You will be able to create separate alerts for every level or create one for price crossing any level.
Because of some TradingView limitations, alerts won't be fired for the first bar of the session. Will try to solve that in the new versions.
In the script used new v4 plotting features, so will be able to plot levels and labels nicely. Unfortunately, there is a limit on the number of consecutive lines you can plot on the plot (around 50), so lines in the past will disappear.
And remember:
Past performance does not guarantee future results.
Higher High Lower Low Strategy (With Source Code)This script finds pivot highs and pivot lows then calculates higher highs & lower lows. And also it calculates support/resistance by using HH-HL-LL-LH points.
Generally HH and HL shows up-trend, LL and LH shows down-trend.
If price breaks resistance levels it means the trend is up or if price breaks support level it means the trend is down, so the script changes bar color blue or black. if there is up-trend then bar color is blue, or if down-trend then bar color is black. also as you can see support and resistance levels change dynamically.
If you use smaller numbers for left/right bars then it will be more sensitive.
source code of :
QuantNomad - Pivot Points AlertsVery simple scripts that will allow you to receive alerts for new Pivot Lows/Highs Points.
A solid arrow points to actual point low/high point, transparent - to the bar, you'll receive alerts for (Shifter by rightBars).
And remember:
Past performance does not guarantee future results.
Pivot Points, by @juanmirocks# Advantages over TV's indicator "Pivot Points Standard"
1. Show pivot lines for all history, which lets you gauge trading strategies throughout time
2. More sensible Default/Auto time frame; e.g. on intradays only and always the market values of yesterday's Day are used
3. The halves between the key levels are also shown, which it's useful for some trading strategies
4. Arguably out-of-the-box nicer interface
Pivot Points as an indicator is a traditional strategy to draw resistance and support levels. It's best suited for intraday trading: the pivot points and resulting key levels are calculated from yesterday's market values (H, L, C). More details in the script's source.
Pivot Points trading is suitable for any market, and best for intraday (e.g. 3 min).
2R overlay positive biasHere is a pretty clean 2R - risk reward assessment that is overlaid on the price action. Positive bias, kind of lazy on the release but you can edit to change look back period or drop into one of your indicator edits as another metric for trade risk. If this helps drop a comment or thumbs up.
-Squam
Combined MTF Camarilla Pivots (HA + Candles)This is a fairly basic (but hopefully useful) indicator that combines three time-frames of Camarilla pivots into one.
Default time-frames are:
Weekly
Monthly
Yearly
Time-frames can be modified as you wish, they are just set to these as I generally only trade higher intervals (just note that formatting labels will not change - but you can update these as needed).
The Camarilla pivots displayed are as follows:
R3, R4, R5, R6
Pivot line (Middle/Base)
S3, S4, S5, S6
R1/S1 & R2/S2 are excluded to make way for R5/S5 & R6/S6 - as these are more useful for the majority of traders. The formula for levels 5/6 are always up for debate, as no official formula has ever been released. I've used what I consider a mid, or consensus calculation.
By default all historical pivot levels are displayed, as there can be some benefit to mapping these forward once the relevant period has ended. If people find it's too cluttered I'll look into having an option to display the current period only.
Unfortunately, TradingView doesn't allow labels on plots (seems like such a basic feature to be missing, but there you go), so you'll have to learn the colours/linewidths.
Oh, and there's a checkbox to enable pivots to be calculated on Heiken-Ashi prices/candles rather than default prices/candles. This heavily modifies the location of the Camarilla Pivots, but I've found that in certain situations you can get some great results.
Let me know your thoughts/comments/suggestions.
Cheers
DD
Pivot Point + MidPointsTraditional floor pivots with additional lines in between the s/r levels called Mid Points
If the Pivot Points are used as entering at s/r levels, you can use the Mid Points to scale out of a position or place Sl's behind
3/9/27/9 Zero Lag EMA / EMA / Pivots / Dynamic Support (Fixed)// Fixed error message "Index should not be negative(-8)"
//
// @author lonestar108
//
study(title = "3/9/27/9 Zero Lag EMA / EMA / Pivots / Dynamic Support", shorttitle="3/9/27/9 ZLEMA/EMA/Pivots/Support", overlay=true)
src=close
lengths=input(3, title="Short Period Length")
length=input(9, title="Fast Period Length")
length2=input(27, title="Slow Period Length")
plen=input(9, minval=1, title="Pivot Period Length")
// ema, zero lag ema
ema1=ema(src, length)
ema2=ema(ema1, length)
d=ema1-ema2
zlema=ema1+d
ema3=ema(src, length2)
// ema, zero lag ema
ema4=ema(src, length)
ema5=ema(ema4, length)
d2=ema4-ema5
zlema2=ema4+d
ema6=ema(src, length2)
// pivot points
highest_high = highest(high, plen)
highest_dev = dev(highest_high, plen) ? na : highest_high
high_pivot = highest_dev
high_series = fixnan(high_pivot)
lowest_low = lowest(low, plen)
lowest_dev = dev(lowest_low, plen) ? na : lowest_low
low_pivot = lowest_dev
low_series = fixnan(low_pivot)
// Sell Setup
priceflip = barssince(closeclose and priceflip
sell = sellsetup and barssince(priceflip!=9)
sell8 = sellsetup and barssince(priceflip!=8)
sellovershoot = sellsetup and barssince(priceflip!=13)
sellovershoot1 = sellsetup and barssince(priceflip!=14)
sellovershoot2 = sellsetup and barssince(priceflip!=15)
sellovershoot3 = sellsetup and barssince(priceflip!=16)
// Buy setup
priceflip1 = barssince(close>close )
buysetup = close<close and priceflip1
buy = buysetup and barssince(priceflip1!=9)
buy8 = buysetup and barssince(priceflip1!=8)
buyovershoot = barssince(priceflip1!=13) and buysetup
buyovershoot1 = barssince(priceflip1!=14) and buysetup
buyovershoot2 = barssince(priceflip1!=15) and buysetup
buyovershoot3 = barssince(priceflip1!=16) and buysetup
// TD lines
val= buy !=sell
TDhigh = valuewhen(val,high ,0)
val1= sell !=buy
TDlow = valuewhen(val1,low ,0)
////////////////////////////
// PLOTTING
icolor=rising(zlema,1) ? lime : red
plot(zlema, color=yellow, linewidth=1)
plot(ema3, color=lime, linewidth=1)
plot(high_series, style=circles, color=lime, linewidth=1)
plot(low_series, style=circles, color=red, linewidth=1)
plot(high_pivot + 1, color=red, style=circles, linewidth=3)
plot(low_pivot - 1, color=lime, style=circles, linewidth=3)
plot(cross(zlema, ema3) ? rising(zlema,1) ? low - 1 : high + 1 : na, color=icolor, style=cross, linewidth=2)
plot(cross(zlema2, ema3) ? rising(zlema2,1) ? low - 1.25 : high + 1.25 : na, color=yellow, style=circles, linewidth=2)
plot(cross(zlema2, ema6) ? rising(zlema2,1) ? low - 1.35 : high + 1.35 : na, color=orange, style=circles, linewidth=2)
plot(cross(close, ema3) ? rising(zlema,1) ? low - 1.15 : high + 1.15 : na, color=fuchsia, style=circles, linewidth=2)
plotchar(buy,'9b','9',location.belowbar,color=lime,transp=0)
plotchar(sell,'9s','9',location.abovebar,color=red,transp=0)
plotchar(buy8,'8b','8',location.belowbar,color=lime,transp=0)
plotchar(sell8,'8s','8',location.abovebar,color=red,transp=0)
plot(TDhigh ? TDhigh : na ,style=circles, linewidth=1, color=lime,offset=-9)
plot(TDlow ? TDlow : na ,style=circles, linewidth=1, color=red, offset=-9)
barcolor(sellovershoot? #FF66A3 : sellovershoot1? #FF3385 : sellovershoot2? #FF0066 : sellovershoot3? #CC0052 : buyovershoot? #D6FF5C : buyovershoot1? #D1FF47 : buyovershoot2? #B8E62E : buyovershoot3? #8FB224 : na)
// Uncode for line chart with indicators //
c = sell? #FF0000 : buy? #00FF00 : sellovershoot? #FF66A3 : sellovershoot1? #FF3385 : sellovershoot2? #FF0066 : sellovershoot3? #CC0052 : buyovershoot? #D6FF5C : buyovershoot1? #D1FF47 : buyovershoot2? #B8E62E : buyovershoot3? #8FB224 : #c0c0c0
plot(close, color=c, linewidth=1)
Auto DayWeekMonth Fib Levels R2 by JustUncleLThis indicator automatically draws up to Three Sets of Fibonacci Pivot levels based on the previous Candle period's Range (High-Low). The HLC3 is used as the default Pivotal level. Only the most Recent period Candle Levels are displayed. The longer Weekly and Monthly sets are particularly useful in finding long term Supply and Demand levels.
The three sets of selectable periods are spit into the following sets:
Daily Set (1,2,3,4,5,7,10 or 14 Days)
Weekly Set (1,2,3,4,5,10, or 13 Weeks)
Monthly Set (1,2,3,4,5,6,9 or 12 months)
Each set has the option to display Extension levels.
The Pivotal Level HLC3 and Range = (High - Low), are extracted from previous Period Candle.
FIB LEVELS Colours (same in each period set):
Yellow = Pivot and Pivot Zone (HLC3 by default)
Fuchsia = R1,S1 Levels 0.368 * Range
Lime = R2,S2 Levels 0.618 * Range
Red = R3,S3 Levels 0.786 * Range
Aqua = R4,S4 Levels 1.000 * Range
Green = R5,S5 Levels 1.236 * Range
Orange = R6,S6 Levels 1.382 * Range
Black = R7,S7 Levels 1.618 * Range
Maroon = R8,S8 Levels 2.000 * Range
ChartAdvise_Reaction_PointReaction Point Method is based on the concept of Pivot Points that can be used to identify a reversal. These reversals can be tracked for further action. Ideally this method is useful for Intraday play and gives defined opportunity to the traders.