OPEN-SOURCE SCRIPT

LH → Close Above Alert

24
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.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.