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
Ta bort från favoritskript Lägg till som favoritskript
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Kommentarer

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
+6 Svara
@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')
+4 Svara
LonesomeTheBlue LonesomeTheBlue
I don't recommend to add alarm, it may not be usefull because of delay up to lb (leftbars).
Svara
aaahopper LonesomeTheBlue
@LonesomeTheBlue, Thank you very much
Svara
aaahopper aaahopper
@aaahopper, So When a buy an alert is triggered it will be"-lb" from the signal?
Svara
@aaahopper, yes that's true. better to use this for analysis purposes (not for buy/sell signals)
Svara
atodoonada 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?.
Svara
no repaint after bar is closed?
+3 Svara
mrgr888n mrgr888n
oh, I see.. it lags for an hour.
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Hänvisade vänner Mynt Mina kölappar Hjälpcenter Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut