8524 views
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
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9
Earn $30
https://www.tradingview.com/gopro/?share_your_love=LonesomeTheBlue
Comments
How would you set an alert to buy or sell based on the plot parameters due to the offset?
Thanks
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')