LonesomeTheBlue

Pivot High Low Points

by using this script you can find Pivot High-Low Points. This script works like Tradingview pivothigh & pivotlow functions.




If you find my works useful, please consider a donation
BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR


by LonesomeTheBlue
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Earn $30
https://www.tradingview.com/gopro/?share_your_love=LonesomeTheBlue

Comments

Great indicator. Love the simplicity.
How would you set an alert to buy or sell based on the plot parameters due to the offset?
Thanks
+8 Reply
@aaahopper, if you add following 4 lines then you can set alarms

sellcondition = iff(not na(high), iff(highestbars(mb) == -lb, true, false), false)
buycondition = iff(not na(low), iff(lowestbars(mb) == -lb, true, false), false)

alertcondition(buycondition, title='Pivot HL Signal', message='Pivot HL Buy Signal')
alertcondition(sellcondition, title='Pivot HL Sell Signal', message='Pivot HL Sell Signal')
+6 Reply
LonesomeTheBlue LonesomeTheBlue
I don't recommend to add alarm, it may not be usefull because of delay up to lb (leftbars).
Reply
aaahopper LonesomeTheBlue
@LonesomeTheBlue, Thank you very much
Reply
aaahopper aaahopper
@aaahopper, So When a buy an alert is triggered it will be"-lb" from the signal?
+1 Reply
@aaahopper, yes that's true. better to use this for analysis purposes (not for buy/sell signals)
Reply
UnknownUnicorn10592196 LonesomeTheBlue
@LonesomeTheBlue, Hi, if is not much trouble for you, can you tell me how can i make it trigger an alarm 2 minutes before the candle close?.
Reply
no repaint after bar is closed?
+4 Reply
mrgr888n mrgr888n
oh, I see.. it lags for an hour.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out