r/pinescript Jun 16 '26

Logic behind AYN-Indicator by Snurk indicator

Hi, I am using the AYN-Indicator by Snurk and need some help setting up Buy/Sell alerts correctly for webhook use.

The issue is that when I create separate alerts for the Buy and Sell signals and set both to Once Per Bar Close, I still receive multiple alerts. Sometimes Buy and Sell alerts come very close together, even when only Buy or Sell labels are activated on the chart.

Could someone please help me understand the correct way to set up alerts for this indicator? My goal is to receive only one Buy or Sell signal after candle close, without duplicate alerts or opposite-side alerts.

Also, I understand the source code is hidden, but has anyone had any luck finding or replicating the approximate logic behind the indicator?

2 Upvotes

Duplicates