I’ve added a variable value to an alert description (i.e. {{close}}), but it doesn’t work

The value substitution feature, in regards to alertcondition(), only works for scripts that were written in Pine v4 or higher. If, when the alert is fired, the variables in the description are not replaced with values (i.e. it displays Close = {{close}} instead of Close = 45.1), the indicator with the alertcondition() is probably written on earlier versions of Pine and variable descriptions will not work for it.

Here's how it works in Pine v4 or higher:


And here's how it works in earlier Pine versions:


This will happen even if you add the variable in the Message field in the Alert dialog (without editing the code itself). If you add the variable there and it isn’t replaced when the alert is fired, the indicator is most likely written in Pine v3 or lower.

If the script is yours, you can use our Converter to convert a v3 script to v4. You can read more about the feature here. If this script is from the public library, you can contact its author and ask them to update the indicator to v4.

홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃