AlertaScript / 문서
구문과 타입
명확한 선언과 인수.
동작 원리
=는 선언, :=는 재할당입니다. int, float, bool, string, color는 서로 다른 타입입니다.
실전 적용
na로 초기화할 때 타입을 명시하세요. 함수 시그니처를 따르고 input.int 같은 타입 입력을 사용합니다.
코드 예제
AlertaScript
indicator("Typed inputs", overlay=true)int length = input.int(20, "Length", minval=1)float source = closebool rising = close > openplot(ta.ema(source, length), "EMA", color=rising ? color.green : color.red)