OPEN-SOURCE SCRIPT

LH → Close Above Alert

22
Detects swing highs using ta.pivothigh().

Compares the last two swing highs → if the newest one is lower than the previous one → we store it as a Lower High.

Then, if a candle closes above that stored Lower High, it triggers the alert.

Resets the level after alert to avoid duplicates.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。