OPEN-SOURCE SCRIPT
Renko Parabolic SAR + ADX Indicator (Need help on the alert)

//This script is made using scripts by other authors. All credit goes to them. I am only copying snippets and making it work for me//
Problem Statement:
The script seems to work best using a fixed renko brick. The indicators do work but I have problems with the alert.
What often happens is, the signal appears (condition is met) BRIEFLY as the bar forms, it disappears a few seconds later, but the alert is still sent on the close of the bar.
I wish to receive these alerts on the close of a bar only if the condition is still met on the close of the bar
I am hoping someone can guide or fix the alertcondition such that it checks for the firmed signal before triggering the alert.

BTCUSDT
Problem Statement:
The script seems to work best using a fixed renko brick. The indicators do work but I have problems with the alert.
What often happens is, the signal appears (condition is met) BRIEFLY as the bar forms, it disappears a few seconds later, but the alert is still sent on the close of the bar.
I wish to receive these alerts on the close of a bar only if the condition is still met on the close of the bar
I am hoping someone can guide or fix the alertcondition such that it checks for the firmed signal before triggering the alert.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.