TradingView
LonesomeTheBlue
3 Nis 2019 11:12

Pivot High Low Points 

Bitcoin / DollarBitfinex

Açıklama

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

Sürüm Notları

upgraded to v4
Yorumlar
aaahopper
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
LonesomeTheBlue
@aaahopper, if you add following 4 lines then you can set alarms

sellcondition = iff(not na(high[mb]), iff(highestbars(mb) == -lb, true, false), false)
buycondition = iff(not na(low[mb]), 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')
LonesomeTheBlue
I don't recommend to add alarm, it may not be usefull because of delay up to lb (leftbars).
aaahopper
@LonesomeTheBlue, Thank you very much
aaahopper
@aaahopper, So When a buy an alert is triggered it will be"-lb" from the signal?
LonesomeTheBlue
@aaahopper, yes that's true. better to use this for analysis purposes (not for buy/sell signals)
UnknownUnicorn10592196
@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?.
prafat
@LonesomeTheBlue, I tried adding this code but it gives the following error : Add to chart operation failed reason line 25: undeclared identifier "mb"
prafat
@prafat, is there a way to create the indicator with alert .Its a gret indicator !
Daha Fazla