TradingView
QuantNomad
Aug 13, 2019 12:09 PM

QuantNomad - Ultimate Pivot Points Alerts 

Bitcoin / United States DollarCoinbase

Description

Created 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.

Release Notes

adding max_bars_back

Release Notes

Updated number of bars back to 1000

Release Notes

Another fix to max bars back

Release Notes

Cleaning the code
Comments
TradeShotsPro
Very nice indicator, How can i gets the R/S levels in round figures?
I don't want 265.22
It should be 265
QuantNomad
@shri9891, you can use round function in the code
RHATrading1
wayfinder777
Hi, Thank you for the script. Could you please help me/guide me to make this work on Heikin Ashi Candles?
QuantNomad
@wayfinder777, You mean you want to calculate it on HA and apply on usual candles?
wayfinder777
@QuantNomad, No, I would like to apply it on HA and use it on HA itself. Currently its working fine on Normal candles but showing the same output on HA as well which should not right.
QuantNomad
@wayfinder777, well, it's weird. Will check it. It uses candles from your chart, should work on HA differently.
QuantNomad
@wayfinder777, just checked, on HA it is a bit different. Script uses low/high of the period to calculate pivot levels, on HA low/high is close to low/high of usual candles at a period of time.
sdi11a
is it possible to adjust the start time to London open ?
QuantNomad
@sdi11a, take a look at the in_newbar() function I have in the code. you can adjust condition for when it should start the day. You can use timezone parameter in time function for that.
More