OPEN-SOURCE SCRIPT

LH → Close Above Alert

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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.